Skip to content

Commit

Permalink
gemspec: Include fewer files. (#172)
Browse files Browse the repository at this point in the history
Also: This gem exposes 0 executables. And the test_files directive is no longer in use anywhere.

Example where the diff between versions shows unnecessary files: https://my.diffend.io/gems/slim-rails/3.2.0/3.3.0
  • Loading branch information
olleolleolle authored Aug 23, 2021
1 parent e1c9f67 commit 28e932c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions slim-rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ Gem::Specification.new do |spec|
spec.homepage = 'https://github.com/slim-template/slim-rails'
spec.license = 'MIT'

spec.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
spec.files = `git ls-files`.split("\n")
spec.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
spec.files = Dir["{lib}/**/*", "README.md", "CHANGELOG.md", "LICENSE"]
spec.require_paths = ['lib']

spec.required_ruby_version = '>= 2.0.0'
Expand Down

0 comments on commit 28e932c

Please sign in to comment.