Skip to content

Commit

Permalink
Adds frozen_string_literal magic comment.
Browse files Browse the repository at this point in the history
This should help reduce the memory footprint of the gem as reported in twilio#396.
  • Loading branch information
philnash committed Apr 24, 2018
1 parent 5bbc21a commit 9ebb437
Show file tree
Hide file tree
Showing 23 changed files with 46 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/rack/twilio_webhook_authentication.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Rack
# Middleware that authenticates webhooks from Twilio using the request
# validator.
Expand Down
2 changes: 2 additions & 0 deletions lib/twilio-ruby.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'net/http'
require 'net/https'
require 'nokogiri'
Expand Down
2 changes: 2 additions & 0 deletions lib/twilio-ruby/framework/domain.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Twilio
module REST
class Domain
Expand Down
2 changes: 2 additions & 0 deletions lib/twilio-ruby/framework/error.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Twilio
module REST
class TwilioError < StandardError
Expand Down
2 changes: 2 additions & 0 deletions lib/twilio-ruby/framework/helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Twilio
module REST
def url_join(left, right)
Expand Down
2 changes: 2 additions & 0 deletions lib/twilio-ruby/framework/obsolete_client.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Twilio
module REST
class ObsoleteClient
Expand Down
2 changes: 2 additions & 0 deletions lib/twilio-ruby/framework/page.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Twilio
module REST
# Page Base Class
Expand Down
2 changes: 2 additions & 0 deletions lib/twilio-ruby/framework/request.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Twilio
class Request
attr_reader :host, :port, :method, :url, :params, :data, :headers, :auth, :timeout
Expand Down
2 changes: 2 additions & 0 deletions lib/twilio-ruby/framework/resource.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Twilio
module REST
class ListResource
Expand Down
2 changes: 2 additions & 0 deletions lib/twilio-ruby/framework/response.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Twilio
class Response
attr_accessor :status_code, :body, :headers
Expand Down
2 changes: 2 additions & 0 deletions lib/twilio-ruby/framework/serialize.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Twilio
def self.serialize_iso8601_date(date)
if date.eql?(:unset)
Expand Down
2 changes: 2 additions & 0 deletions lib/twilio-ruby/framework/twilio_response.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Twilio
class TwilioResponse
attr_accessor :status_code, :body
Expand Down
2 changes: 2 additions & 0 deletions lib/twilio-ruby/framework/values.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Twilio
class Values
def self.of(hash)
Expand Down
2 changes: 2 additions & 0 deletions lib/twilio-ruby/framework/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Twilio
module REST
class Version
Expand Down
2 changes: 2 additions & 0 deletions lib/twilio-ruby/http/http_client.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'faraday'

module Twilio
Expand Down
2 changes: 2 additions & 0 deletions lib/twilio-ruby/jwt/access_token.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Twilio
module JWT
module AccessTokenGrant
Expand Down
2 changes: 2 additions & 0 deletions lib/twilio-ruby/jwt/client_capability.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Twilio
module JWT
module Scope
Expand Down
2 changes: 2 additions & 0 deletions lib/twilio-ruby/jwt/jwt.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Twilio
module JWT
class BaseJWT
Expand Down
2 changes: 2 additions & 0 deletions lib/twilio-ruby/jwt/task_router.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Twilio
module JWT
class TaskRouterCapability < BaseJWT
Expand Down
2 changes: 2 additions & 0 deletions lib/twilio-ruby/security/request_validator.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Twilio
module Security
class RequestValidator
Expand Down
2 changes: 2 additions & 0 deletions lib/twilio-ruby/util.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Twilio
module Util
def url_encode(hash)
Expand Down
2 changes: 2 additions & 0 deletions lib/twilio-ruby/util/configuration.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Twilio
module Util
class Configuration
Expand Down
2 changes: 2 additions & 0 deletions lib/twilio-ruby/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Twilio
VERSION = '5.8.1'
end

0 comments on commit 9ebb437

Please sign in to comment.