cobrato-client 0.17.0 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/lib/cobrato/resources/charge.rb +11 -1
- data/lib/cobrato/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81b548e336a99c23dc58b09e7e7d271be9b9ee88
|
4
|
+
data.tar.gz: ba75d109743591bfee93a543279560a63180a040
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c0b3435ce6f2af5322f79cd3886515345e3f28f135741f12836a50819654af684d23877daf30c03c7a3593920e0645eed95d7cbfdf5444379fe2f9f6cd29c0d
|
7
|
+
data.tar.gz: 4289bbada76d368e6f5411ca03154edb8a381c420b1a07c3a1eea12b95be954eee010c34f3c6d18fe61a87b14355f8eec986f8db77ffc95070c4855b5d24ee63
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -30,7 +30,17 @@ module Cobrato
|
|
30
30
|
|
31
31
|
def cancel(id)
|
32
32
|
http.post("#{resource_base_path}/#{id}/cancel") do |response|
|
33
|
-
response
|
33
|
+
respond_with_entity response
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
def revoke(id)
|
38
|
+
http.post("#{resource_base_path}/#{id}/revoke") do |response|
|
39
|
+
if response.code == 200
|
40
|
+
respond_with_entity response
|
41
|
+
else
|
42
|
+
response.code == 204
|
43
|
+
end
|
34
44
|
end
|
35
45
|
end
|
36
46
|
|
data/lib/cobrato/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cobrato-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.18.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcio Ricardo Santos
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-
|
13
|
+
date: 2017-02-07 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: typhoeus
|