From 54c23ed4007904a361b45a77363f4b9ca2f3d7f5 Mon Sep 17 00:00:00 2001 From: naruse Date: Wed, 16 Dec 2015 05:07:31 +0000 Subject: Add frozen_string_literal: false for all files When you change this to true, you may need to add more tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/net/http.rb | 1 + lib/net/http/backward.rb | 1 + lib/net/http/exceptions.rb | 1 + lib/net/http/generic_request.rb | 1 + lib/net/http/header.rb | 1 + lib/net/http/proxy_delta.rb | 1 + lib/net/http/request.rb | 1 + lib/net/http/requests.rb | 1 + lib/net/http/response.rb | 1 + lib/net/http/responses.rb | 1 + lib/net/https.rb | 1 + lib/net/pop.rb | 1 + lib/net/protocol.rb | 1 + lib/net/smtp.rb | 1 + 14 files changed, 14 insertions(+) (limited to 'lib/net') diff --git a/lib/net/http.rb b/lib/net/http.rb index 70f5165e91..eb08edf0f7 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false # # = net/http.rb # diff --git a/lib/net/http/backward.rb b/lib/net/http/backward.rb index faf47b8489..9e24eae32c 100644 --- a/lib/net/http/backward.rb +++ b/lib/net/http/backward.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false # for backward compatibility # :enddoc: diff --git a/lib/net/http/exceptions.rb b/lib/net/http/exceptions.rb index 6c5d81cb04..0d34526616 100644 --- a/lib/net/http/exceptions.rb +++ b/lib/net/http/exceptions.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false # Net::HTTP exception class. # You cannot use Net::HTTPExceptions directly; instead, you must use # its subclasses. diff --git a/lib/net/http/generic_request.rb b/lib/net/http/generic_request.rb index 9b7d28757d..19602da27c 100644 --- a/lib/net/http/generic_request.rb +++ b/lib/net/http/generic_request.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false # HTTPGenericRequest is the parent of the HTTPRequest class. # Do not use this directly; use a subclass of HTTPRequest. # diff --git a/lib/net/http/header.rb b/lib/net/http/header.rb index 8afa32a422..a911d5d255 100644 --- a/lib/net/http/header.rb +++ b/lib/net/http/header.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false # The HTTPHeader module defines methods for reading and writing # HTTP headers. # diff --git a/lib/net/http/proxy_delta.rb b/lib/net/http/proxy_delta.rb index b16c9f1ed8..a2f770ebdb 100644 --- a/lib/net/http/proxy_delta.rb +++ b/lib/net/http/proxy_delta.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false module Net::HTTP::ProxyDelta #:nodoc: internal use only private diff --git a/lib/net/http/request.rb b/lib/net/http/request.rb index e8b0f48fcc..1e86f3e4b4 100644 --- a/lib/net/http/request.rb +++ b/lib/net/http/request.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false # HTTP request class. # This class wraps together the request header and the request path. # You cannot use this class directly. Instead, you should use one of its diff --git a/lib/net/http/requests.rb b/lib/net/http/requests.rb index c1f8360479..d4c80a3812 100644 --- a/lib/net/http/requests.rb +++ b/lib/net/http/requests.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false # # HTTP/1.1 methods --- RFC2616 # diff --git a/lib/net/http/response.rb b/lib/net/http/response.rb index f51d6b1373..349812834f 100644 --- a/lib/net/http/response.rb +++ b/lib/net/http/response.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false # HTTP response class. # # This class wraps together the response header and the response body (the diff --git a/lib/net/http/responses.rb b/lib/net/http/responses.rb index 284bfcfe7f..a5b8ddc68b 100644 --- a/lib/net/http/responses.rb +++ b/lib/net/http/responses.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false # :stopdoc: class Net::HTTPUnknownResponse < Net::HTTPResponse HAS_BODY = true diff --git a/lib/net/https.rb b/lib/net/https.rb index 4351cae360..58cb6ddf19 100644 --- a/lib/net/https.rb +++ b/lib/net/https.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false =begin = net/https -- SSL/TLS enhancement for Net::HTTP. diff --git a/lib/net/pop.rb b/lib/net/pop.rb index db7192c95a..00209fec46 100644 --- a/lib/net/pop.rb +++ b/lib/net/pop.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false # = net/pop.rb # # Copyright (c) 1999-2007 Yukihiro Matsumoto. diff --git a/lib/net/protocol.rb b/lib/net/protocol.rb index 28833a25ef..b53370931a 100644 --- a/lib/net/protocol.rb +++ b/lib/net/protocol.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false # # = net/protocol.rb # diff --git a/lib/net/smtp.rb b/lib/net/smtp.rb index 64e536a12a..d634274c3e 100644 --- a/lib/net/smtp.rb +++ b/lib/net/smtp.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false # = net/smtp.rb # # Copyright (c) 1999-2007 Yukihiro Matsumoto. -- cgit v1.2.3