add frozen_string_literal pragma to all files

This commit is contained in:
Ritikesh 2020-10-16 23:41:38 +05:30
parent e40a88626d
commit 16b37b31bd
22 changed files with 44 additions and 0 deletions

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'pathname'
require 'net/http'
require 'net/https'

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module HTTParty
# Default connection adapter that returns a new Net::HTTP each time
#

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
class HTTParty::CookieHash < Hash #:nodoc:
CLIENT_COOKIES = %w(path expires domain path secure httponly samesite)

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module HTTParty
# @abstact Exceptions raised by HTTParty inherit from Error
class Error < StandardError; end

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'erb'
module HTTParty

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module HTTParty
class HeadersProcessor
attr_reader :headers, :options

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module HTTParty
module Logger
class ApacheFormatter #:nodoc:

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module HTTParty
module Logger
class CurlFormatter #:nodoc:

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'httparty/logger/apache_formatter'
require 'httparty/logger/curl_formatter'
require 'httparty/logger/logstash_formatter'

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module HTTParty
module Logger
class LogstashFormatter #:nodoc:

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module HTTParty
module ModuleInheritableAttributes #:nodoc:
def self.included(base)

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'digest/md5'
require 'net/http'

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module HTTParty
# The default parser used by HTTParty, supports xml, json, html, csv and
# plain text.

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'erb'
module HTTParty

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require_relative 'multipart_boundary'
module HTTParty

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'securerandom'
module HTTParty

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module HTTParty
class Response < Object
def self.underscore(string)

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'delegate'
module HTTParty

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'delegate'
module HTTParty

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module HTTParty
class TextEncoder
attr_reader :text, :content_type, :assume_utf16_is_big_endian

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module HTTParty
module Utils
def self.stringify_keys(hash)

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module HTTParty
VERSION = "0.18.1"
end