Skip to content

Commit 281c235

Browse files
Merge pull request #180 from Adyen/automation/release
Release v7.3.1
2 parents e4694a3 + a0b0dc4 commit 281c235

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

lib/adyen/client.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,13 @@ def initialize(ws_user: nil, ws_password: nil, api_key: nil, oauth_token: nil, e
2323
@oauth_token = oauth_token
2424
@env = env
2525
@adapter = adapter || Faraday.default_adapter
26-
@adapter_options = adapter_options || Faraday.default_adapter_options
26+
if Gem::Version.new(Faraday::VERSION) >= Gem::Version.new('2.1')
27+
# for faraday 2.1 and higher
28+
@adapter_options = adapter_options || Faraday.default_adapter_options
29+
else
30+
# for faraday 1.x and 2.0
31+
@adapter_options = adapter_options || {}
32+
end
2733
@mock_service_url_base = mock_service_url_base || "http://localhost:#{mock_port}"
2834
@live_url_prefix = live_url_prefix
2935
@connection_options = connection_options || Faraday::ConnectionOptions.new

lib/adyen/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module Adyen
22
NAME = 'adyen-ruby-api-library'.freeze
3-
VERSION = '7.3.0'.freeze
3+
VERSION = '7.3.1'.freeze
44
end

0 commit comments

Comments
 (0)