We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f16cac commit 396aa15Copy full SHA for 396aa15
tool/rbinstall.rb
@@ -1146,12 +1146,7 @@ class << (w = [])
1146
"#{srcdir}/.bundle/gems/#{gem_name}/#{gem_name}.gemspec",
1147
# original gemspec generated by rubygems
1148
"#{srcdir}/.bundle/specifications/#{gem_name}.gemspec"
1149
- ].each do |gemspec|
1150
- if File.exist?(gemspec)
1151
- path = gemspec
1152
- break
1153
- end
1154
+ ].find { |gemspec| File.exist?(gemspec) }
1155
if path.nil?
1156
skipped[gem_name] = "gemspec not found"
1157
next
0 commit comments