mp_api 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mp_api/payment.rb +2 -2
- data/lib/mp_api/version.rb +1 -1
- data/lib/mp_api.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7c492b403e79687fa0fe34c11ad29b6bf7fecbda22c889cd151be33fa6b482f
|
4
|
+
data.tar.gz: 7cd934a18f470716d0f6f7d619f97ce494b55d9654eb0f6505e611307ed8524b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c6818d74c058ac341de843addd497f2de744833a617bc5d679f4c558615661cfb0f59fac55e59f9c1fdf7e3bd8ca729b0d91d234a69b36eec9f2e9ea1553127
|
7
|
+
data.tar.gz: 8c15ce999b917187760871c198e69837960916973329d37ed539aa5361f1c756a88e3d349d1e0d03fd8e310367846c96b4bf889f70005a76b916202572e85f5b
|
data/lib/mp_api/payment.rb
CHANGED
@@ -5,7 +5,7 @@ module MpApi
|
|
5
5
|
begin
|
6
6
|
response = Client.new.get_payment(payment_id)
|
7
7
|
rescue RuntimeError => e
|
8
|
-
e.message == 'Too many retries' ? raise(
|
8
|
+
e.message == 'Too many retries' ? raise(TooManyRequestsError) : raise(e)
|
9
9
|
end
|
10
10
|
new(**build_hash(response))
|
11
11
|
end
|
@@ -69,7 +69,7 @@ module MpApi
|
|
69
69
|
begin
|
70
70
|
response = Client.new.create_payment(JSON.dump(build_json))
|
71
71
|
rescue RuntimeError => e
|
72
|
-
e.message == 'Too many retries' ? raise(
|
72
|
+
e.message == 'Too many retries' ? raise(TooManyRequestsError) : raise(e)
|
73
73
|
end
|
74
74
|
self.class.new(**self.class.build_hash(response))
|
75
75
|
end
|
data/lib/mp_api/version.rb
CHANGED
data/lib/mp_api.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mp_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- caio
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-12-
|
11
|
+
date: 2023-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ac
|