Skip to content

Commit 6b90fbd

Browse files
philnashcodejudas
authored andcommitted
Adds frozen_string_literal magic comment. (#403)
This should help reduce the memory footprint of the gem as reported in #396.
1 parent 5bbc21a commit 6b90fbd

23 files changed

+46
-0
lines changed

lib/rack/twilio_webhook_authentication.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
module Rack
24
# Middleware that authenticates webhooks from Twilio using the request
35
# validator.

lib/twilio-ruby.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require 'net/http'
24
require 'net/https'
35
require 'nokogiri'

lib/twilio-ruby/framework/domain.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
module Twilio
24
module REST
35
class Domain

lib/twilio-ruby/framework/error.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
module Twilio
24
module REST
35
class TwilioError < StandardError

lib/twilio-ruby/framework/helper.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
module Twilio
24
module REST
35
def url_join(left, right)

lib/twilio-ruby/framework/obsolete_client.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
module Twilio
24
module REST
35
class ObsoleteClient

lib/twilio-ruby/framework/page.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
module Twilio
24
module REST
35
# Page Base Class

lib/twilio-ruby/framework/request.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
module Twilio
24
class Request
35
attr_reader :host, :port, :method, :url, :params, :data, :headers, :auth, :timeout

lib/twilio-ruby/framework/resource.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
module Twilio
24
module REST
35
class ListResource

lib/twilio-ruby/framework/response.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
module Twilio
24
class Response
35
attr_accessor :status_code, :body, :headers

lib/twilio-ruby/framework/serialize.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
module Twilio
24
def self.serialize_iso8601_date(date)
35
if date.eql?(:unset)

lib/twilio-ruby/framework/twilio_response.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
module Twilio
24
class TwilioResponse
35
attr_accessor :status_code, :body

lib/twilio-ruby/framework/values.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
module Twilio
24
class Values
35
def self.of(hash)

lib/twilio-ruby/framework/version.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
module Twilio
24
module REST
35
class Version

lib/twilio-ruby/http/http_client.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require 'faraday'
24

35
module Twilio

lib/twilio-ruby/jwt/access_token.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
module Twilio
24
module JWT
35
module AccessTokenGrant

lib/twilio-ruby/jwt/client_capability.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
module Twilio
24
module JWT
35
module Scope

lib/twilio-ruby/jwt/jwt.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
module Twilio
24
module JWT
35
class BaseJWT

lib/twilio-ruby/jwt/task_router.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
module Twilio
24
module JWT
35
class TaskRouterCapability < BaseJWT

lib/twilio-ruby/security/request_validator.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
module Twilio
24
module Security
35
class RequestValidator

lib/twilio-ruby/util.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
module Twilio
24
module Util
35
def url_encode(hash)

lib/twilio-ruby/util/configuration.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
module Twilio
24
module Util
35
class Configuration

lib/twilio-ruby/version.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
module Twilio
24
VERSION = '5.8.1'
35
end

0 commit comments

Comments
 (0)