diff --git a/lib/rubygems.rb b/lib/rubygems.rb index 6de5b6e68c..b2b77e3be8 100644 --- a/lib/rubygems.rb +++ b/lib/rubygems.rb @@ -780,6 +780,7 @@ An Array (#{env.inspect}) was passed in from #{caller[3]} ## # Safely write a file in binary mode on all platforms. + def self.write_binary(path, data) open_file(path, "wb") do |io| io.write data