diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-12-12 17:05:37 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-12-12 17:05:37 +0900 |
commit | 0ba65c689e27b0b6229fbb40fc6794d0c853a33f (patch) | |
tree | 3c10c28549e438de1a28ec83fbbfd6e0e09a2dc9 /tool/outdate-bundled-gems.rb | |
parent | ff6831c3343a3d30fdccb0932b8ae0834ee85709 (diff) | |
download | ruby-0ba65c689e27b0b6229fbb40fc6794d0c853a33f.tar.gz |
outdate-bundled-gems.rb: check for gemspec files for extensions
https://github.com/ruby/setup-ruby/issues/415#issuecomment-1345662263
Diffstat (limited to 'tool/outdate-bundled-gems.rb')
-rwxr-xr-x | tool/outdate-bundled-gems.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tool/outdate-bundled-gems.rb b/tool/outdate-bundled-gems.rb index c396c1ff17..10c182d837 100755 --- a/tool/outdate-bundled-gems.rb +++ b/tool/outdate-bundled-gems.rb @@ -95,7 +95,9 @@ curdir.glob(".bundle/specifications/*.gemspec") do |spec| end curdir.glob(".bundle/gems/*/") do |dir| - unless curdir.exist?(".bundle/specifications/#{File.basename(dir)}.gemspec") + base = File.basename(dir) + unless curdir.exist?(".bundle/specifications/#{base}.gemspec") or + curdir.exist?("#{dir}/.bundled.#{base}.gemspec") curdir.rmdir(dir) end end |