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 +4 -4
- data/lib/pandapay/stripe_ecommerce/charge.rb +6 -4
- data/lib/pandapay/version.rb +1 -1
- data/pandapay.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3afe1e94336472524517d3ef0c229b19ee70463
|
4
|
+
data.tar.gz: 54e5a2d6e6e17c66567a137d74419f96f76fe395
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0189380489960786b58d7bd5a1a36be9ac52720ef0dcba2ab9611c2a735404930d7e53b141f96f9e56fd56318348033adbc865b55d2349f81dabca07460189c3
|
7
|
+
data.tar.gz: 15acaeeea7051f00469101e50c549111faebb1e7094b359b17cb4f84075b43f09f4bcc17e433744368e0c6d3dd62b1f20d3c8aef0dc5eea5d16bd2abf48cd7a8
|
@@ -34,14 +34,16 @@ module PandaPay
|
|
34
34
|
end
|
35
35
|
|
36
36
|
headers = {
|
37
|
-
|
38
|
-
|
39
|
-
|
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
|
data/lib/pandapay/version.rb
CHANGED
data/pandapay.gemspec
CHANGED
@@ -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.
|
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-
|
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
|