lib/rubygems/ext/rake_builder.rb in rubygems-update-1.7.2 vs lib/rubygems/ext/rake_builder.rb in rubygems-update-1.8.0
- old
+ new
@@ -15,10 +15,10 @@
cmd << " #{Gem::Command.build_args.join " "}" unless Gem::Command.build_args.empty?
run cmd, results
end
# Deal with possible spaces in the path, e.g. C:/Program Files
- dest_path = '"' + dest_path + '"' if dest_path.include?(' ')
+ dest_path = '"' + dest_path.to_s + '"' if dest_path.to_s.include?(' ')
rake = ENV['rake']
rake ||= begin
"\"#{Gem.ruby}\" -rubygems #{Gem.bin_path('rake', 'rake')}"