pandapay 0.0.0.dev1 → 0.0.0.dev2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 361f1d465d8bc6b66f93c1767d91efd6cc7a0f08
4
- data.tar.gz: 39e3401e4b8d8dc9cceb4f118f87359d7b411e87
3
+ metadata.gz: c3afe1e94336472524517d3ef0c229b19ee70463
4
+ data.tar.gz: 54e5a2d6e6e17c66567a137d74419f96f76fe395
5
5
  SHA512:
6
- metadata.gz: a1b55dfd2384e1af166686fa9cc06733f4840d6ea685490032b7b3b490787815a3c6d03795dcc7939a627754e8e2e7003fc53a406dea251ecb3749a72d897766
7
- data.tar.gz: 337f6314efd77ad4f1a1406d27fbfd99fbfc12161346064d2e03c396d1e1974b8ec5f06e2d43b20cf79f05dc359d3ea36c0e8d913b96420d7c342b5fcce5aa81
6
+ metadata.gz: 0189380489960786b58d7bd5a1a36be9ac52720ef0dcba2ab9611c2a735404930d7e53b141f96f9e56fd56318348033adbc865b55d2349f81dabca07460189c3
7
+ data.tar.gz: 15acaeeea7051f00469101e50c549111faebb1e7094b359b17cb4f84075b43f09f4bcc17e433744368e0c6d3dd62b1f20d3c8aef0dc5eea5d16bd2abf48cd7a8
@@ -34,14 +34,16 @@ module PandaPay
34
34
  end
35
35
 
36
36
  headers = {
37
- accept: :json,
38
- content_type: :json,
39
- params: params_to_use
37
+ accept: :json,
38
+ content_type: :json,
39
+ params: params_to_use
40
40
  }.merge opts
41
41
 
42
42
  api_key = headers.delete(:api_key) || PandaPay.api_key
43
43
  api_base = headers.delete(:api_base) || "https://api.pandapay.io/v1"
44
44
 
45
+ response = nil
46
+
45
47
  begin
46
48
  response = RestClient::Request.new(
47
49
  method: :post,
@@ -74,7 +76,7 @@ module PandaPay
74
76
  self.send "#{attr}=", value
75
77
  end
76
78
  end
77
- end
79
+ end
78
80
  end
79
81
  end
80
82
  end
@@ -1,3 +1,3 @@
1
1
  module PandaPay
2
- VERSION = "0.0.0.dev1"
2
+ VERSION = "0.0.0.dev2"
3
3
  end
@@ -19,6 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
 
21
21
  spec.add_dependency "stripe", "~> 1.43.0"
22
+ spec.add_dependency "rest-client", "1.8.0"
22
23
 
23
24
  spec.add_development_dependency "bundler", "~> 1.11"
24
25
  spec.add_development_dependency "rake", "~> 10.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pandapay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0.dev1
4
+ version: 0.0.0.dev2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Benvenuti
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-14 00:00:00.000000000 Z
11
+ date: 2016-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: stripe
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 1.43.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: rest-client
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '='
32
+ - !ruby/object:Gem::Version
33
+ version: 1.8.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '='
39
+ - !ruby/object:Gem::Version
40
+ version: 1.8.0
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: bundler
29
43
  requirement: !ruby/object:Gem::Requirement