lib/twilio-ruby.rb in twilio-ruby-3.2.0 vs lib/twilio-ruby.rb in twilio-ruby-3.3.0
- old
+ new
@@ -1,52 +1,37 @@
-TWILIO_RUBY_ROOT = File.expand_path(File.dirname(__FILE__))
-
require 'net/http'
require 'net/https'
require 'builder'
-require 'json'
+require 'multi_json'
require 'cgi'
require 'openssl'
require 'base64'
require 'jwt'
-
-require "#{TWILIO_RUBY_ROOT}/twilio-ruby/util"
-require "#{TWILIO_RUBY_ROOT}/twilio-ruby/util/request_validator"
-require "#{TWILIO_RUBY_ROOT}/twilio-ruby/util/capability"
-require "#{TWILIO_RUBY_ROOT}/twilio-ruby/rest/errors"
-require "#{TWILIO_RUBY_ROOT}/twilio-ruby/rest/utils"
-require "#{TWILIO_RUBY_ROOT}/twilio-ruby/rest/list_resource"
-require "#{TWILIO_RUBY_ROOT}/twilio-ruby/rest/instance_resource"
-require "#{TWILIO_RUBY_ROOT}/twilio-ruby/rest/sandbox/sandbox"
-require "#{TWILIO_RUBY_ROOT}/twilio-ruby/rest/accounts/account"
-require "#{TWILIO_RUBY_ROOT}/twilio-ruby/rest/accounts/accounts"
-require "#{TWILIO_RUBY_ROOT}/twilio-ruby/rest/calls/call"
-require "#{TWILIO_RUBY_ROOT}/twilio-ruby/rest/calls/calls"
-require "#{TWILIO_RUBY_ROOT}/twilio-ruby/rest/sms/sms"
-require "#{TWILIO_RUBY_ROOT}/twilio-ruby/rest/sms/message"
-require "#{TWILIO_RUBY_ROOT}/twilio-ruby/rest/sms/messages"
-require "#{TWILIO_RUBY_ROOT}/twilio-ruby/rest/sms/short_code"
-require "#{TWILIO_RUBY_ROOT}/twilio-ruby/rest/sms/short_codes"
-require "#{TWILIO_RUBY_ROOT}/twilio-ruby/rest/applications/application"
-require "#{TWILIO_RUBY_ROOT}/twilio-ruby/rest/applications/applications"
-require "#{TWILIO_RUBY_ROOT}/twilio-ruby/rest/outgoing_caller_ids/outgoing_caller_id"
-require "#{TWILIO_RUBY_ROOT}/twilio-ruby/rest/outgoing_caller_ids/outgoing_caller_ids"
-require "#{TWILIO_RUBY_ROOT}/twilio-ruby/rest/incoming_phone_numbers/incoming_phone_number"
-require "#{TWILIO_RUBY_ROOT}/twilio-ruby/rest/incoming_phone_numbers/incoming_phone_numbers"
-require "#{TWILIO_RUBY_ROOT}/twilio-ruby/rest/available_phone_numbers/available_phone_number"
-require "#{TWILIO_RUBY_ROOT}/twilio-ruby/rest/available_phone_numbers/available_phone_numbers"
-require "#{TWILIO_RUBY_ROOT}/twilio-ruby/rest/available_phone_numbers/country"
-require "#{TWILIO_RUBY_ROOT}/twilio-ruby/rest/available_phone_numbers/local"
-require "#{TWILIO_RUBY_ROOT}/twilio-ruby/rest/available_phone_numbers/toll_free"
-require "#{TWILIO_RUBY_ROOT}/twilio-ruby/rest/conferences/conference"
-require "#{TWILIO_RUBY_ROOT}/twilio-ruby/rest/conferences/conferences"
-require "#{TWILIO_RUBY_ROOT}/twilio-ruby/rest/conferences/participant"
-require "#{TWILIO_RUBY_ROOT}/twilio-ruby/rest/conferences/participants"
-require "#{TWILIO_RUBY_ROOT}/twilio-ruby/rest/recordings/recording"
-require "#{TWILIO_RUBY_ROOT}/twilio-ruby/rest/recordings/recordings"
-require "#{TWILIO_RUBY_ROOT}/twilio-ruby/rest/transcriptions/transcription"
-require "#{TWILIO_RUBY_ROOT}/twilio-ruby/rest/transcriptions/transcriptions"
-require "#{TWILIO_RUBY_ROOT}/twilio-ruby/rest/notifications/notification"
-require "#{TWILIO_RUBY_ROOT}/twilio-ruby/rest/notifications/notifications"
-require "#{TWILIO_RUBY_ROOT}/twilio-ruby/rest/client"
-require "#{TWILIO_RUBY_ROOT}/twilio-ruby/twiml/response"
+require 'twilio-ruby/version'
+require 'twilio-ruby/util'
+require 'twilio-ruby/util/request_validator'
+require 'twilio-ruby/util/capability'
+require 'twilio-ruby/twiml/response'
+require 'twilio-ruby/rest/errors'
+require 'twilio-ruby/rest/utils'
+require 'twilio-ruby/rest/list_resource'
+require 'twilio-ruby/rest/instance_resource'
+require 'twilio-ruby/rest/sandbox'
+require 'twilio-ruby/rest/accounts'
+require 'twilio-ruby/rest/calls'
+require 'twilio-ruby/rest/sms'
+require 'twilio-ruby/rest/sms/messages'
+require 'twilio-ruby/rest/sms/short_codes'
+require 'twilio-ruby/rest/applications'
+require 'twilio-ruby/rest/outgoing_caller_ids'
+require 'twilio-ruby/rest/incoming_phone_numbers'
+require 'twilio-ruby/rest/available_phone_numbers'
+require 'twilio-ruby/rest/available_phone_numbers/country'
+require 'twilio-ruby/rest/available_phone_numbers/local'
+require 'twilio-ruby/rest/available_phone_numbers/toll_free'
+require 'twilio-ruby/rest/conferences'
+require 'twilio-ruby/rest/conferences/participants'
+require 'twilio-ruby/rest/recordings'
+require 'twilio-ruby/rest/transcriptions'
+require 'twilio-ruby/rest/notifications'
+require 'twilio-ruby/rest/client'