Skip to content

Modernize tests & linting#114

Merged
jekyllbot merged 7 commits intomasterfrom
update-tests
Dec 3, 2017
Merged

Modernize tests & linting#114
jekyllbot merged 7 commits intomasterfrom
update-tests

Conversation

@parkr
Copy link
Copy Markdown
Member

@parkr parkr commented Oct 30, 2017

No description provided.

Copy link
Copy Markdown
Member

@mattr- mattr- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have anything blocking in here, only the one question.


s.add_dependency "jekyll", ">= 2.4"
all_files = `git ls-files -z`.split("\x0")
s.files = all_files.grep(%r!^(lib)/!)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use Dir globbing instead of git to get the file list? There's a growing practice of folks not depending on git to get the file list for gems in order to avoid putting git on production like systems.

else
Utils.deep_merge_hashes(DEFAULTS, config["jekyll-archives"])
end
@config = Utils.deep_merge_hashes(DEFAULTS, config.fetch("jekyll-archives", {}))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️
Hash#fetch is my jam

Rake::TestTask.new(:test) do |test|
test.libs << "lib" << "test"
test.pattern = "test/**/test_*.rb"
test.warning = false
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this do? Suppress ruby warnings in the test output?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes!

@DirtyF
Copy link
Copy Markdown
Member

DirtyF commented Dec 3, 2017

@jekyllbot: merge +dev

@jekyllbot jekyllbot merged commit a7a5a84 into master Dec 3, 2017
@jekyllbot jekyllbot deleted the update-tests branch December 3, 2017 21:12
jekyllbot added a commit that referenced this pull request Dec 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants