Sha256: af36efec8449f8832591992c322637441c9f56907f2d522f3a4c1f69000b3bc4

Contents?: true

Size: 1.59 KB

Versions: 20

Compression:

Stored size: 1.59 KB

Contents

require 'net/http'
require 'net/https'
require 'libxml'
require 'cgi'
require 'openssl'
require 'base64'
require 'forwardable'
require 'jwt'
require 'time'
require 'json'

require 'twilio-ruby/version' unless defined?(Twilio::VERSION)
require 'rack/twilio_webhook_authentication'

require 'twilio-ruby/util'
require 'twilio-ruby/jwt/jwt'
require 'twilio-ruby/jwt/access_token'
require 'twilio-ruby/jwt/client_capability'
require 'twilio-ruby/jwt/task_router'
require 'twilio-ruby/security/request_validator'
require 'twilio-ruby/util/configuration'

require 'twilio-ruby/twiml/twiml'
require 'twilio-ruby/twiml/voice_response'
require 'twilio-ruby/twiml/messaging_response'

Dir[File.dirname(__FILE__) + '/twilio-ruby/http/**/*.rb'].each do |file|
  require file
end
Dir[File.dirname(__FILE__) + '/twilio-ruby/framework/**/*.rb'].each do |file|
  require file
end
Dir[File.dirname(__FILE__) + '/twilio-ruby/rest/*.rb'].each do |file|
  require file
end
Dir[File.dirname(__FILE__) + '/twilio-ruby/rest/**/*.rb'].each do |file|
  require file
end
Dir[File.dirname(__FILE__) + '/twilio-ruby/compatibility/**/*.rb'].each do |file|
  require file
end

module Twilio
  extend SingleForwardable

  def_delegators :configuration, :account_sid, :auth_token

  ##
  # Pre-configure with account SID and auth token so that you don't need to
  # pass them to various initializers each time.
  def self.configure(&block)
    yield configuration
  end

  ##
  # Returns an existing or instantiates a new configuration object.
  def self.configuration
    @configuration ||= Util::Configuration.new
  end
  private_class_method :configuration
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
twilio-ruby-5.4.5 lib/twilio-ruby.rb
twilio-ruby-5.4.4 lib/twilio-ruby.rb
twilio-ruby-5.4.3 lib/twilio-ruby.rb
twilio-ruby-5.4.2 lib/twilio-ruby.rb
twilio-ruby-5.4.1 lib/twilio-ruby.rb
twilio-ruby-5.4.0 lib/twilio-ruby.rb
twilio-ruby-5.2.3 lib/twilio-ruby.rb
twilio-ruby-5.2.2 lib/twilio-ruby.rb
twilio-ruby-5.2.1 lib/twilio-ruby.rb
twilio-ruby-5.2.0 lib/twilio-ruby.rb
twilio-ruby-5.1.2 lib/twilio-ruby.rb
twilio-ruby-5.1.1 lib/twilio-ruby.rb
twilio-ruby-5.1.0 lib/twilio-ruby.rb
twilio-ruby-5.0.0.alpha1 lib/twilio-ruby.rb
twilio-ruby-5.0.0 lib/twilio-ruby.rb
twilio-ruby-5.0.0.rc26 lib/twilio-ruby.rb
twilio-ruby-5.0.0.rc25 lib/twilio-ruby.rb
twilio-ruby-5.0.0.rc24 lib/twilio-ruby.rb
twilio-ruby-5.0.0.rc23 lib/twilio-ruby.rb
twilio-ruby-5.0.0.rc22 lib/twilio-ruby.rb