culqi-ruby 0.0.7 → 0.0.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5036f9e3089cc3a4b9055d03083c917b6783d9e2
4
- data.tar.gz: bd42a33c4215c298b615568f3399c1688b3d273b
3
+ metadata.gz: bd9ccaf9d7ec3cac25c9420edff01fbb16baaebb
4
+ data.tar.gz: 00db87838f215d136064a1bc0711a283e864ac47
5
5
  SHA512:
6
- metadata.gz: bee2b83eb59e9d5cc997a1d6397b230521b163197be2db064258e320ae0f5d613cc2743ac5eccf5c925eab76122099ef030d0d2f53b1c403ad38f45934db2d06
7
- data.tar.gz: 8e2326bab8c637d88658405edcdf75a05a8b6e8b73a563b025a2df8536e78f4d9661348237039340c458555dc8ed12a8fbf7c968362d71a631b0c229d9a27a7e
6
+ metadata.gz: 2d9aa863476e925180caec3c07b14128c1da82815241f1ce1c2d62bab8ac4705aac6fb34b5268d92fa1ad262a284e0ff7084fcd56b2c405485b3752eff87cd11
7
+ data.tar.gz: bac4124bbb1bd81bec4217e1c95bb28953b082eb9384835091fb69d6718e5fe1b2c76667b4002293dff218b1b1bb4de68e2e4897d8e5cf1de85931e4f73c2b92
@@ -11,7 +11,7 @@ module Culqi
11
11
  @url = URL
12
12
 
13
13
  def self.capture(id)
14
- response = Culqi.connect(URL+id+"/capture/", Culqi.secret_key, nil, "post", Culqi::READ_TIMEOUT)
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
 
@@ -1,3 +1,3 @@
1
1
  module Culqi
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
@@ -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+id+'/', Culqi.secret_key, nil, 'delete', Culqi::READ_TIMEOUT)
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
 
@@ -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+id+'/', Culqi.secret_key, nil, 'get', Culqi::READ_TIMEOUT)
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
 
@@ -1,6 +1,6 @@
1
1
  require 'util/connect'
2
2
 
3
- module List
3
+ module Culqi::List
4
4
 
5
5
  def initialize
6
6
  @url = ''
@@ -1,6 +1,6 @@
1
1
  require 'util/connect'
2
2
 
3
- module Post
3
+ module Culqi::Post
4
4
 
5
5
  def initialize
6
6
  @url = ''
@@ -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+id+'/', Culqi.secret_key, params, 'patch', Culqi::READ_TIMEOUT)
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
@@ -8,7 +8,7 @@ module Culqi
8
8
 
9
9
  def self.connect(url, api_key, data, type, time_out)
10
10
 
11
- url = URI(Culqi::API_BASE+"#{url}")
11
+ url = URI("#{Culqi::API_BASE}#{url}")
12
12
 
13
13
  http = Net::HTTP.new(url.host, url.port)
14
14
  http.read_timeout = time_out
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.7
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-08 00:00:00.000000000 Z
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: