Skip to content

Commit

Permalink
Replaces uses of git ls-files in your gemspec (#9)
Browse files Browse the repository at this point in the history
The use of `git ls-files` in the gemspec file
causes fatal error warning when loading the gem.

See rubygems/bundler#2039

Solution was found here:
rubygems/bundler#2039 (comment)
  • Loading branch information
sfroehler authored Sep 21, 2016
1 parent 0167906 commit 51190c8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pactas_itero.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ Gem::Specification.new do |spec|
spec.homepage = 'https://github.com/webionate/pactas_itero'
spec.license = 'MIT'

spec.files = `git ls-files`.split("\n")
spec.test_files = `git ls-files -- spec/*`.split("\n")
spec.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
spec.files = Dir["lib/**/*.rb"] + Dir["bin/*"]
spec.files += Dir["[A-Z]*"] + Dir["spec/**/*"]
spec.test_files = spec.files.grep(%r{^spec/})
spec.executables = spec.files.grep(%r{^bin/}).map { |f| File.basename(f) }
spec.require_paths = ['lib']

spec.required_ruby_version = ">= 2.0"
Expand Down

0 comments on commit 51190c8

Please sign in to comment.