culqi-ruby 0.0.4 → 0.0.5
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/lib/culqi-ruby.rb +2 -1
- data/lib/culqi/version.rb +1 -1
- data/lib/operation/delete.rb +1 -1
- data/lib/operation/get.rb +1 -1
- data/lib/operation/list.rb +1 -1
- data/lib/operation/post.rb +3 -3
- data/lib/operation/update.rb +1 -1
- data/lib/util/connect.rb +2 -2
- 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: 7ad2c11e9d328321081b1a112f04953add5c4991
|
4
|
+
data.tar.gz: de50a7fb512e8c258720949c9e67526ce564ddee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ceddcb8a4f4d968f255e602645c8b9561833d674311c2958de3b614b475b2ded14e7abb469e1fa670a81e887986a46d3c1bea335ea7de8559e3a3352065ba44d
|
7
|
+
data.tar.gz: 5316dbf54c9c260580f4e1208f3069adbad73eed2221e9bb32fcbcb9a70c2fc625f8b3c28130640262c37c918f30133f22e72a4b965b0d5444c8c0cf3ed612a4
|
data/lib/culqi-ruby.rb
CHANGED
data/lib/culqi/version.rb
CHANGED
data/lib/operation/delete.rb
CHANGED
data/lib/operation/get.rb
CHANGED
data/lib/operation/list.rb
CHANGED
data/lib/operation/post.rb
CHANGED
@@ -9,11 +9,11 @@ module Post
|
|
9
9
|
def create(params={})
|
10
10
|
key = ''
|
11
11
|
if @url.include? 'token'
|
12
|
-
key = Culqi.
|
12
|
+
key = Culqi.public_key
|
13
13
|
else
|
14
|
-
key = Culqi.
|
14
|
+
key = Culqi.secret_key
|
15
15
|
end
|
16
|
-
response = Culqi.connect(@url, key, params, 'post')
|
16
|
+
response = Culqi.connect(@url, key, params, 'post', Culqi::READ_TIMEOUT)
|
17
17
|
return response.read_body
|
18
18
|
end
|
19
19
|
|
data/lib/operation/update.rb
CHANGED
data/lib/util/connect.rb
CHANGED
@@ -6,12 +6,12 @@ require 'culqi-ruby'
|
|
6
6
|
|
7
7
|
module Culqi
|
8
8
|
|
9
|
-
def self.connect(url, api_key, data, type)
|
9
|
+
def self.connect(url, api_key, data, type, time_out)
|
10
10
|
|
11
11
|
url = URI(Culqi::API_BASE+"#{url}")
|
12
12
|
|
13
13
|
http = Net::HTTP.new(url.host, url.port)
|
14
|
-
http.read_timeout =
|
14
|
+
http.read_timeout = time_out
|
15
15
|
http.use_ssl = true
|
16
16
|
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
17
17
|
|
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.5
|
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-
|
11
|
+
date: 2017-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Biblioteca de Culqi en Ruby API v2
|
14
14
|
email:
|