cloud_payments 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/cloud_payments.gemspec +1 -1
- data/lib/cloud_payments/client.rb +9 -1
- data/lib/cloud_payments/version.rb +1 -1
- data/spec/support/helpers.rb +1 -1
- metadata +5 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c4990b4c0e90d444b09179475ce9c3e2ff4c50d8a2af87bd25d676f18ed399e
|
4
|
+
data.tar.gz: 8702f0a17b461fb582d79cf79382fb72af93ac86429bcc9ef26f1979cb4ab619
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e860f4b88400e9f8eeb97c380448a7fa45f37bf7cee3304dbb44b3f09204e32c503a98f31fe629f891f7777c036df23f41de7b532e3078c77f6562be2267540e
|
7
|
+
data.tar.gz: 3b70dedae8ce944c98a68cdfa80fd4aaa3ef3c8e766a30237b138ff4af73ce9a146a363f6eabbcfb86c66f4786650388dc342ae2edc70b338b14b278517e183e
|
data/cloud_payments.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
20
20
|
spec.require_paths = ['lib']
|
21
21
|
|
22
|
-
spec.add_dependency 'faraday', '<
|
22
|
+
spec.add_dependency 'faraday', '< 3.0'
|
23
23
|
spec.add_dependency 'multi_json', '~> 1.11'
|
24
24
|
spec.add_dependency 'hashie', '~> 3.4'
|
25
25
|
|
@@ -45,7 +45,15 @@ module CloudPayments
|
|
45
45
|
|
46
46
|
def build_connection
|
47
47
|
Faraday::Connection.new(config.host, config.connection_options) do |conn|
|
48
|
-
|
48
|
+
|
49
|
+
# https://github.com/lostisland/faraday/blob/main/UPGRADING.md#authentication-helper-methods-in-connection-have-been-removed
|
50
|
+
# https://lostisland.github.io/faraday/#/middleware/included/authentication?id=faraday-1x-usage
|
51
|
+
if Faraday::VERSION.start_with?("1.")
|
52
|
+
conn.request :basic_auth, config.public_key, config.secret_key
|
53
|
+
else
|
54
|
+
conn.request :authorization, :basic, config.public_key, config.secret_key
|
55
|
+
end
|
56
|
+
|
49
57
|
config.connection_block.call(conn) if config.connection_block
|
50
58
|
end
|
51
59
|
end
|
data/spec/support/helpers.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloud_payments
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- undr
|
8
8
|
- kirillplatonov
|
9
|
-
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2025-04-27 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: faraday
|
@@ -17,14 +16,14 @@ dependencies:
|
|
17
16
|
requirements:
|
18
17
|
- - "<"
|
19
18
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
19
|
+
version: '3.0'
|
21
20
|
type: :runtime
|
22
21
|
prerelease: false
|
23
22
|
version_requirements: !ruby/object:Gem::Requirement
|
24
23
|
requirements:
|
25
24
|
- - "<"
|
26
25
|
- !ruby/object:Gem::Version
|
27
|
-
version: '
|
26
|
+
version: '3.0'
|
28
27
|
- !ruby/object:Gem::Dependency
|
29
28
|
name: multi_json
|
30
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -195,7 +194,6 @@ homepage: https://github.com/platmart/cloud_payments
|
|
195
194
|
licenses:
|
196
195
|
- MIT
|
197
196
|
metadata: {}
|
198
|
-
post_install_message:
|
199
197
|
rdoc_options: []
|
200
198
|
require_paths:
|
201
199
|
- lib
|
@@ -210,8 +208,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
210
208
|
- !ruby/object:Gem::Version
|
211
209
|
version: '0'
|
212
210
|
requirements: []
|
213
|
-
rubygems_version: 3.2
|
214
|
-
signing_key:
|
211
|
+
rubygems_version: 3.6.2
|
215
212
|
specification_version: 4
|
216
213
|
summary: CloudPayments ruby client
|
217
214
|
test_files:
|