diff options
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 |