We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9eed30 commit f8e002aCopy full SHA for f8e002a
lib/English.gemspec
@@ -15,8 +15,13 @@ Gem::Specification.new do |spec|
15
16
# Specify which files should be added to the gem when it is released.
17
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
18
- spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
19
- `git ls-files -z 2>#{IO::NULL}`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
+ excludes = %W[
+ :^/test :^/spec :^/feature :^/bin
20
+ :^/Rakefile :^/Gemfile\* :^/.git*
21
+ :^/#{File.basename(__FILE__)}
22
+ ]
23
+ spec.files = IO.popen(%W[git ls-files -z --] + excludes, err: IO::NULL) do |f|
24
+ f.readlines("\x0", chomp: true)
25
end
26
spec.require_paths = ["lib"]
27
0 commit comments