[ruby-cvs:65138] glass:r57972 (trunk): Fix bug of Tempfile#size if nothing is written [Bug #13198]

glass at ruby-lang.org glass at ruby-lang.org
Tue Mar 14 21:53:32 JST 2017


glass	2017-03-14 21:53:32 +0900 (Tue, 14 Mar 2017)

  New Revision: 57972

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57972

  Log:
    Fix bug of Tempfile#size if nothing is written [Bug #13198]
    
    * lib/tempfile.rb (Tempfile#size): Fix its behavior when nothing
      is written. Tempfile#size should return 0 in this case.
      The patch is from nobu <nobu at ruby-lang.org>.

  Modified files:
    trunk/lib/tempfile.rb
    trunk/test/test_tempfile.rb


More information about the ruby-cvs mailing list