Skip to content

Commit

Permalink
set faraday adapter to excon by default (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
neerfri authored Oct 26, 2016
1 parent 1120106 commit d54d6b2
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/applicaster/accounts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def connection(options = {})
# conn.response :logger, Logger.new(STDOUT)
conn.response :raise_error

conn.adapter Faraday.default_adapter
conn.adapter config.faraday_adapter
end
end

Expand Down
2 changes: 2 additions & 0 deletions lib/applicaster/accounts/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ class Configuration
attribute :timeout, Float,
default: 1

attribute :faraday_adapter, nil, default: :excon


def default_base_url
ENV["ACCOUNTS_BASE_URL"] || "https://accounts.applicaster.com/"
Expand Down
2 changes: 1 addition & 1 deletion lib/omniauth-applicaster/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module OmniAuth
module Applicaster
VERSION = "1.6.1"
VERSION = "1.7.0"
end
end
1 change: 1 addition & 0 deletions omniauth-applicaster.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ Gem::Specification.new do |spec|
spec.add_dependency "omniauth-oauth2"
spec.add_dependency "faraday", "~> 0.9.1"
spec.add_dependency "faraday_middleware"
spec.add_dependency "excon"
spec.add_dependency "virtus"
end
1 change: 1 addition & 0 deletions spec/lib/applicaster/accounts/configuration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
client_secret: nil,
retries: 2,
timeout: 1.0,
faraday_adapter: :excon,
})
end

Expand Down

0 comments on commit d54d6b2

Please sign in to comment.