Skip to content

Commit 627521e

Browse files
committedJul 17, 2021
make gemspec file list narrower
1 parent f1aba35 commit 627521e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
 

‎censorius.gemspec

+2-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ Gem::Specification.new do |spec|
1919

2020
# Specify which files should be added to the gem when it is released.
2121
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
22-
spec.files = Dir.chdir(File.expand_path(__dir__)) do
23-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
24-
end
22+
spec.files = %w[README.md] + Dir['lib/**/*.rb']
23+
2524
spec.bindir = 'exe'
2625
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
2726
spec.require_paths = ['lib']

0 commit comments

Comments
 (0)
Please sign in to comment.