diff options
| -rw-r--r-- | lib/bundler/bundler.gemspec | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bundler/bundler.gemspec b/lib/bundler/bundler.gemspec index 49319e81b4..350292772a 100644 --- a/lib/bundler/bundler.gemspec +++ b/lib/bundler/bundler.gemspec @@ -34,7 +34,8 @@ Gem::Specification.new do |s| # It should match the RubyGems version shipped with `required_ruby_version` above s.required_rubygems_version = ">= 3.4.1" - s.files = Dir.glob("lib/bundler{.rb,/**/*}", File::FNM_DOTMATCH).reject {|f| File.directory?(f) } + base = File.expand_path('../../..', __FILE__) + s.files = Dir.glob("lib/bundler{.rb,/**/*}", File::FNM_DOTMATCH, base: base).reject {|f| File.directory?(File.join(base, f)) } # include the gemspec itself because warbler breaks w/o it s.files += %w[lib/bundler/bundler.gemspec] |
