add frozen_string_literal pragma to all files
This commit is contained in:
parent
e40a88626d
commit
16b37b31bd
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'pathname'
|
||||
require 'net/http'
|
||||
require 'net/https'
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module HTTParty
|
||||
# Default connection adapter that returns a new Net::HTTP each time
|
||||
#
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class HTTParty::CookieHash < Hash #:nodoc:
|
||||
CLIENT_COOKIES = %w(path expires domain path secure httponly samesite)
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module HTTParty
|
||||
# @abstact Exceptions raised by HTTParty inherit from Error
|
||||
class Error < StandardError; end
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'erb'
|
||||
|
||||
module HTTParty
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module HTTParty
|
||||
class HeadersProcessor
|
||||
attr_reader :headers, :options
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module HTTParty
|
||||
module Logger
|
||||
class ApacheFormatter #:nodoc:
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module HTTParty
|
||||
module Logger
|
||||
class CurlFormatter #:nodoc:
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'httparty/logger/apache_formatter'
|
||||
require 'httparty/logger/curl_formatter'
|
||||
require 'httparty/logger/logstash_formatter'
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module HTTParty
|
||||
module Logger
|
||||
class LogstashFormatter #:nodoc:
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module HTTParty
|
||||
module ModuleInheritableAttributes #:nodoc:
|
||||
def self.included(base)
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'digest/md5'
|
||||
require 'net/http'
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module HTTParty
|
||||
# The default parser used by HTTParty, supports xml, json, html, csv and
|
||||
# plain text.
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'erb'
|
||||
|
||||
module HTTParty
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require_relative 'multipart_boundary'
|
||||
|
||||
module HTTParty
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'securerandom'
|
||||
|
||||
module HTTParty
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module HTTParty
|
||||
class Response < Object
|
||||
def self.underscore(string)
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'delegate'
|
||||
|
||||
module HTTParty
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'delegate'
|
||||
|
||||
module HTTParty
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module HTTParty
|
||||
class TextEncoder
|
||||
attr_reader :text, :content_type, :assume_utf16_is_big_endian
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module HTTParty
|
||||
module Utils
|
||||
def self.stringify_keys(hash)
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module HTTParty
|
||||
VERSION = "0.18.1"
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue