webpay 3.1.1 → 3.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/webpay.rb +1 -1
- data/lib/webpay/data_types.rb +9 -1
- data/webpay.gemspec +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: 3a075f6a1468835721458f3a2d098432e49d04a9
|
4
|
+
data.tar.gz: e1c2e70fbc9c19f7996da49e8f52a807a7f3c998
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d40776a7fadd4200881fe6364cca35d3e69430dfc6a4c6da2cb7b38b3460ad4de7a4af559016affcf9ce19bb2baa1ec6347538b486356b9275b807841a5bfb6e
|
7
|
+
data.tar.gz: 454167830c75728e220f7c2eb38772af5ccd54b429393f3083362799da8fe1bc16d7ea3aab0c4e3db51da4dfe56e96413dea75ef58697d04926542a7bfa388e2
|
data/lib/webpay.rb
CHANGED
data/lib/webpay/data_types.rb
CHANGED
@@ -11,7 +11,15 @@ class WebPay
|
|
11
11
|
@attributes.each_with_object({}) do |kv, obj|
|
12
12
|
k, v = kv
|
13
13
|
next if v == nil
|
14
|
-
obj[k] =
|
14
|
+
obj[k] =
|
15
|
+
case v
|
16
|
+
when Entity
|
17
|
+
v.to_h
|
18
|
+
when Array
|
19
|
+
v.map { |elem| elem.respond_to?(:to_h) ? elem.to_h : elem }
|
20
|
+
else
|
21
|
+
v
|
22
|
+
end
|
15
23
|
end
|
16
24
|
end
|
17
25
|
|
data/webpay.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = 'webpay'
|
5
|
-
spec.version = '3.1.
|
5
|
+
spec.version = '3.1.2'
|
6
6
|
spec.authors = ['webpay', 'tomykaira']
|
7
7
|
spec.email = ['administrators@webpay.jp', 'tomykaira@webpay.jp']
|
8
8
|
spec.description = 'WebPay is payment gateway service in Japan. see also https://webpay.jp/'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webpay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- webpay
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-08-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|