Skip to content

Commit 5756193

Browse files
committed
Use base: with Dir.glob for bundler.gemspec
1 parent 83e0807 commit 5756193

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/bundler/bundler.gemspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ Gem::Specification.new do |s|
3434
# It should match the RubyGems version shipped with `required_ruby_version` above
3535
s.required_rubygems_version = ">= 3.4.1"
3636

37-
s.files = Dir.glob("lib/bundler{.rb,/**/*}", File::FNM_DOTMATCH).reject {|f| File.directory?(f) }
37+
base = File.expand_path('../../..', __FILE__)
38+
s.files = Dir.glob("lib/bundler{.rb,/**/*}", File::FNM_DOTMATCH, base: base).reject {|f| File.directory?(File.join(base, f)) }
3839

3940
# include the gemspec itself because warbler breaks w/o it
4041
s.files += %w[lib/bundler/bundler.gemspec]

0 commit comments

Comments
 (0)