ruby-changes:45241
From: kazu <ko1@a...>
Date: Thu, 12 Jan 2017 21:17:41 +0900 (JST)
Subject: [ruby-changes:45241] kazu:r57314 (trunk): lib/net/smtp.rb: Specify frozen_string_literal: true.
kazu 2017-01-12 21:17:33 +0900 (Thu, 12 Jan 2017) New Revision: 57314 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57314 Log: lib/net/smtp.rb: Specify frozen_string_literal: true. Modified files: trunk/lib/net/smtp.rb trunk/test/net/smtp/test_response.rb trunk/test/net/smtp/test_smtp.rb trunk/test/net/smtp/test_ssl_socket.rb Index: lib/net/smtp.rb =================================================================== --- lib/net/smtp.rb (revision 57313) +++ lib/net/smtp.rb (revision 57314) @@ -1,4 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/lib/net/smtp.rb#L1 -# frozen_string_literal: false +# frozen_string_literal: true # = net/smtp.rb # # Copyright (c) 1999-2007 Yukihiro Matsumoto. @@ -945,7 +945,7 @@ module Net https://github.com/ruby/ruby/blob/trunk/lib/net/smtp.rb#L945 end def recv_response - buf = '' + buf = ''.dup while true line = @socket.readline buf << line << "\n" Index: test/net/smtp/test_response.rb =================================================================== --- test/net/smtp/test_response.rb (revision 57313) +++ test/net/smtp/test_response.rb (revision 57314) @@ -1,4 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/test/net/smtp/test_response.rb#L1 -# frozen_string_literal: false +# frozen_string_literal: true require 'net/smtp' require 'test/unit' Index: test/net/smtp/test_smtp.rb =================================================================== --- test/net/smtp/test_smtp.rb (revision 57313) +++ test/net/smtp/test_smtp.rb (revision 57314) @@ -1,4 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/test/net/smtp/test_smtp.rb#L1 -# frozen_string_literal: false +# frozen_string_literal: true require 'net/smtp' require 'stringio' require 'test/unit' Index: test/net/smtp/test_ssl_socket.rb =================================================================== --- test/net/smtp/test_ssl_socket.rb (revision 57313) +++ test/net/smtp/test_ssl_socket.rb (revision 57314) @@ -1,4 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/test/net/smtp/test_ssl_socket.rb#L1 -# frozen_string_literal: false +# frozen_string_literal: true require 'net/smtp' require 'test/unit' -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/