* lib/rubygems: Update RubyGems to master 0886307. This commit

improves documentation and should bring ruby above 75% documented on
  rubyci.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2013-10-20 01:33:19 +00:00
parent 8552f7aa68
commit 3f15d35f83
13 changed files with 306 additions and 54 deletions

View file

@ -168,6 +168,10 @@ end
# This class was added to flush out problems in Rubinius' IO implementation.
class TempIO < Tempfile
##
# Creates a new TempIO that will be initialized to contain +string+.
def initialize(string = '')
super "TempIO"
binmode
@ -175,6 +179,9 @@ class TempIO < Tempfile
rewind
end
##
# The content of the TempIO as a String.
def string
flush
Gem.read_binary path