Skip to content

Commit

Permalink
Merge pull request #7 from payrollhero/feauture/use-updated-faraday-e…
Browse files Browse the repository at this point in the history
…ncoding-gem

Use updated 'faraday-encoding' gem.
  • Loading branch information
mykola-kyryk committed Feb 18, 2016
2 parents 7cfae0e + 7099e66 commit bb005b7
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 23 deletions.
21 changes: 0 additions & 21 deletions lib/faraday_middleware/encoding.rb

This file was deleted.

2 changes: 1 addition & 1 deletion lib/webhook_system.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
require 'ph_model'
require 'validate_url'
require 'faraday'
require 'faraday_middleware/encoding'
require 'faraday-encoding'

module WebhookSystem
extend ActiveSupport::Autoload
Expand Down
2 changes: 1 addition & 1 deletion lib/webhook_system/job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def self.log_response(subscription, event, request, response)
def self.build_client
Faraday.new do |faraday|
faraday.response :logger if ENV['WEBHOOK_DEBUG']
# use Faraday::Encoding middleware, libfaraday_middleware/encoding.rb
# use Faraday::Encoding middleware
faraday.response :encoding
faraday.adapter Faraday.default_adapter
end
Expand Down
1 change: 1 addition & 0 deletions webhook_system.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Gem::Specification.new do |gem|
gem.add_runtime_dependency 'activerecord', '> 3.2'
gem.add_runtime_dependency 'activejob'
gem.add_runtime_dependency 'faraday', '~> 0.9'
gem.add_runtime_dependency 'faraday-encoding', '>= 0.0.2', '< 1.0'
gem.add_runtime_dependency 'ph_model'
gem.add_runtime_dependency 'validate_url', '~> 1.0'

Expand Down

0 comments on commit bb005b7

Please sign in to comment.