Gemspec cleanup

- Remove test_files
 - Only include files from lib/
 - Use the `z` flag with git-ls-files for UTF-8 support
This commit is contained in:
Joseph Wynn 2016-09-02 22:48:11 +01:00
parent a7d96b2bf8
commit 3383c75f53
1 changed files with 3 additions and 4 deletions

View File

@ -17,10 +17,9 @@ Gem::Specification.new do |spec|
Its intended use is for sites which want to display responsive images using something like srcset or Imager.js.
}
spec.files = `git ls-files`.split($/)
spec.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
spec.files = `git ls-files -z lib/`.split("\u0000")
spec.executables = []
spec.require_path = 'lib'
spec.require_paths = ['lib']
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.0.0')
max_jekyll_version = '3.0'