Skip to content

Commit 86a31fc

Browse files
authored
Replace FileList with Dir to fix error
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) } # -------------------------------------------
1 parent 168d4bb commit 86a31fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

launchdarkly-server-sdk.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
1515
spec.homepage = "https://github.com/launchdarkly/ruby-server-sdk"
1616
spec.license = "Apache-2.0"
1717

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

0 commit comments

Comments
 (0)