From 76d06bc6f8ac3d92fdff19321126ff1462a4b69e Mon Sep 17 00:00:00 2001 From: Javier Julio Date: Wed, 6 Nov 2024 13:09:41 -0500 Subject: [PATCH] fix: Allow gem to be installed from source (#305) --- launchdarkly-server-sdk.gemspec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/launchdarkly-server-sdk.gemspec b/launchdarkly-server-sdk.gemspec index 4f63c8b2..2a5dc609 100644 --- a/launchdarkly-server-sdk.gemspec +++ b/launchdarkly-server-sdk.gemspec @@ -3,7 +3,6 @@ lib = File.expand_path("lib", __dir__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require "ldclient-rb/version" -require "rake" # rubocop:disable Metrics/BlockLength Gem::Specification.new do |spec| @@ -16,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"