aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-01-12 12:17:33 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-01-12 12:17:33 +0000
commit6ca3028eecbd43a7ffa415748a866482bd159b53 (patch)
tree3f3dacc62805b552bdf9a63e7615cf25061c391b
parent14a730e91ee6176cc60ba3fc1cd368e47bd2f7b0 (diff)
downloadruby-6ca3028eecbd43a7ffa415748a866482bd159b53.tar.gz
lib/net/smtp.rb: Specify frozen_string_literal: true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--lib/net/smtp.rb4
-rw-r--r--test/net/smtp/test_response.rb2
-rw-r--r--test/net/smtp/test_smtp.rb2
-rw-r--r--test/net/smtp/test_ssl_socket.rb2
4 files changed, 5 insertions, 5 deletions
diff --git a/lib/net/smtp.rb b/lib/net/smtp.rb
index 1302f3aa1d..a485fff9b4 100644
--- a/lib/net/smtp.rb
+++ b/lib/net/smtp.rb
@@ -1,4 +1,4 @@
-# frozen_string_literal: false
+# frozen_string_literal: true
# = net/smtp.rb
#
# Copyright (c) 1999-2007 Yukihiro Matsumoto.
@@ -945,7 +945,7 @@ module Net
end
def recv_response
- buf = ''
+ buf = ''.dup
while true
line = @socket.readline
buf << line << "\n"
diff --git a/test/net/smtp/test_response.rb b/test/net/smtp/test_response.rb
index 79ac1d2d32..3cf909a762 100644
--- a/test/net/smtp/test_response.rb
+++ b/test/net/smtp/test_response.rb
@@ -1,4 +1,4 @@
-# frozen_string_literal: false
+# frozen_string_literal: true
require 'net/smtp'
require 'test/unit'
diff --git a/test/net/smtp/test_smtp.rb b/test/net/smtp/test_smtp.rb
index 89a08cb17b..3a9749504d 100644
--- a/test/net/smtp/test_smtp.rb
+++ b/test/net/smtp/test_smtp.rb
@@ -1,4 +1,4 @@
-# frozen_string_literal: false
+# frozen_string_literal: true
require 'net/smtp'
require 'stringio'
require 'test/unit'
diff --git a/test/net/smtp/test_ssl_socket.rb b/test/net/smtp/test_ssl_socket.rb
index 354f413040..342391f159 100644
--- a/test/net/smtp/test_ssl_socket.rb
+++ b/test/net/smtp/test_ssl_socket.rb
@@ -1,4 +1,4 @@
-# frozen_string_literal: false
+# frozen_string_literal: true
require 'net/smtp'
require 'test/unit'