File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,10 @@ Gem::Specification.new do |spec|
1717 # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
1818 excludes = %w[
1919 bin/ test/ spec/ features/ rakelib/
20- .git .github .mailmap appveyor Rakefile Gemfile
20+ .git* .mailmap appveyor Rakefile Gemfile
2121 ]
22- spec . files = Dir . chdir ( __dir__ ) do
23- `git ls-files -z` . split ( "\x0 " ) . reject do |f |
24- File . identical? ( f , __FILE__ ) || f . start_with? ( *excludes )
25- end
26- end
22+ git_files = %w[ git ls-files -z -- ] + excludes . map { |x | ":^/#{ x } " }
23+ spec . files = IO . popen ( git_files , chdir : __dir__ , &:read ) . split ( "\x0 " )
2724 spec . bindir = "exe"
2825 spec . executables = spec . files . grep ( %r{\A exe/} ) { |f | File . basename ( f ) }
2926 spec . require_paths = [ "lib" ]
You can’t perform that action at this time.
0 commit comments