culqi-ruby 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/culqi/charge.rb +1 -1
- data/lib/culqi/version.rb +1 -1
- data/lib/operation/delete.rb +2 -2
- data/lib/operation/get.rb +2 -2
- data/lib/operation/list.rb +1 -1
- data/lib/operation/post.rb +1 -1
- data/lib/operation/update.rb +3 -3
- data/lib/util/connect.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: bd9ccaf9d7ec3cac25c9420edff01fbb16baaebb
|
4
|
+
data.tar.gz: 00db87838f215d136064a1bc0711a283e864ac47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d9aa863476e925180caec3c07b14128c1da82815241f1ce1c2d62bab8ac4705aac6fb34b5268d92fa1ad262a284e0ff7084fcd56b2c405485b3752eff87cd11
|
7
|
+
data.tar.gz: bac4124bbb1bd81bec4217e1c95bb28953b082eb9384835091fb69d6718e5fe1b2c76667b4002293dff218b1b1bb4de68e2e4897d8e5cf1de85931e4f73c2b92
|
data/lib/culqi/charge.rb
CHANGED
@@ -11,7 +11,7 @@ module Culqi
|
|
11
11
|
@url = URL
|
12
12
|
|
13
13
|
def self.capture(id)
|
14
|
-
response = Culqi.connect(
|
14
|
+
response = Culqi.connect("#{@url}#{id}/capture/", Culqi.secret_key, nil, "post", Culqi::READ_TIMEOUT)
|
15
15
|
return response.read_body
|
16
16
|
end
|
17
17
|
|
data/lib/culqi/version.rb
CHANGED
data/lib/operation/delete.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
require 'util/connect'
|
2
2
|
|
3
|
-
module Delete
|
3
|
+
module Culqi::Delete
|
4
4
|
|
5
5
|
def initialize
|
6
6
|
@url = ''
|
7
7
|
end
|
8
8
|
|
9
9
|
def delete(id)
|
10
|
-
response = Culqi.connect(@url
|
10
|
+
response = Culqi.connect("#{@url}#{id}/", Culqi.secret_key, nil, 'delete', Culqi::READ_TIMEOUT)
|
11
11
|
return response.read_body
|
12
12
|
end
|
13
13
|
|
data/lib/operation/get.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
require 'util/connect'
|
2
2
|
|
3
|
-
module Get
|
3
|
+
module Culqi::Get
|
4
4
|
|
5
5
|
def initialize
|
6
6
|
@url = ''
|
7
7
|
end
|
8
8
|
|
9
9
|
def get(id)
|
10
|
-
response = Culqi.connect(@url
|
10
|
+
response = Culqi.connect("#{@url}#{id}/", Culqi.secret_key, nil, 'get', Culqi::READ_TIMEOUT)
|
11
11
|
return response.read_body
|
12
12
|
end
|
13
13
|
|
data/lib/operation/list.rb
CHANGED
data/lib/operation/post.rb
CHANGED
data/lib/operation/update.rb
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
require 'util/connect'
|
2
2
|
|
3
|
-
module Update
|
3
|
+
module Culqi::Update
|
4
4
|
|
5
5
|
def initialize
|
6
6
|
@url = ''
|
7
7
|
end
|
8
8
|
|
9
9
|
def update(id, params={})
|
10
|
-
response = Culqi.connect(@url
|
10
|
+
response = Culqi.connect("#{@url}#{id}/", Culqi.secret_key, params, 'patch', Culqi::READ_TIMEOUT)
|
11
11
|
return response.read_body
|
12
12
|
end
|
13
13
|
|
14
|
-
end
|
14
|
+
end
|
data/lib/util/connect.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: culqi-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Willy Aguirre
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04
|
11
|
+
date: 2017-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Biblioteca de Culqi en Ruby API v2
|
14
14
|
email:
|