Skip to content

Commit

Permalink
fix: don't load webhook authentication if Rack not present (#602)
Browse files Browse the repository at this point in the history
  • Loading branch information
philnash authored Mar 9, 2022
1 parent f947d94 commit 74178d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/twilio-ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
require 'json'

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

require 'twilio-ruby/util'
require 'twilio-ruby/security/request_validator'
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
require_relative './holodeck/holodeck.rb'
require_relative './holodeck/hologram.rb'

require 'twilio-ruby'
require 'rack'
require 'twilio-ruby'
require 'rspec/matchers'
require 'equivalent-xml'

Expand Down

0 comments on commit 74178d6

Please sign in to comment.