Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernize tests & linting #114

Merged
merged 7 commits into from
Dec 3, 2017
Merged

Modernize tests & linting #114

merged 7 commits into from
Dec 3, 2017

Conversation

parkr
Copy link
Member

@parkr parkr commented Oct 30, 2017

No description provided.

Copy link
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
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
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

@@ -21,6 +21,7 @@ require "rake/testtask"
Rake::TestTask.new(:test) do |test|
test.libs << "lib" << "test"
test.pattern = "test/**/test_*.rb"
test.warning = false
Copy link
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
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
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