Skip to content

Commit

Permalink
Replace FileList with Dir to fix error
Browse files Browse the repository at this point in the history
This causes an error on bundle install when installing the gem from source. FileList comes from Rake but it's unnecessary as Dir is a very common use in popular gemspecs.

[!] There was an error while loading `launchdarkly-server-sdk.gemspec`: uninitialized constant FileList. Bundler cannot continue.

 #  from /Users/j.julio/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/bundler/gems/launchdarkly-ruby-server-sdk-b8220416fe3f/launchdarkly-server-sdk.gemspec:18
 #  -------------------------------------------
 #  
 >    spec.files         = FileList["lib/**/*", "README.md", "LICENSE.txt"]
 #    spec.executables   = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
 #  -------------------------------------------
  • Loading branch information
javierjulio authored Nov 5, 2024
1 parent 168d4bb commit 86a31fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion launchdarkly-server-sdk.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
spec.homepage = "https://github.com/launchdarkly/ruby-server-sdk"
spec.license = "Apache-2.0"

spec.files = FileList["lib/**/*", "README.md", "LICENSE.txt"]
spec.files = Dir["lib/**/*.rb", "README.md", "LICENSE.txt"]
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
spec.required_ruby_version = ">= 3.0.0"
Expand Down

0 comments on commit 86a31fc

Please sign in to comment.