lib/rubygems/commands/lock_command.rb in rubygems-update-3.0.9 vs lib/rubygems/commands/lock_command.rb in rubygems-update-3.1.0.pre1

- old
+ new

@@ -98,12 +98,12 @@ end end end def spec_path(gem_full_name) - gemspecs = Gem.path.map { |path| + gemspecs = Gem.path.map do |path| File.join path, "specifications", "#{gem_full_name}.gemspec" - } + end gemspecs.find { |path| File.exist? path } end end