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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6a8889c68951dde9cdb420b191c358483146dbc5
4
- data.tar.gz: 71ab79035ccba3063b8d9cf8211fe7834a0fc274
3
+ metadata.gz: 3a075f6a1468835721458f3a2d098432e49d04a9
4
+ data.tar.gz: e1c2e70fbc9c19f7996da49e8f52a807a7f3c998
5
5
  SHA512:
6
- metadata.gz: f4f202fe47fa0cfd20250ed140523984375dbf952f6bbb4045e7cefbc16772b34d082c2fb45786f739ee07afae4e91563ded50a6a82ed4cf7d33719aa6b50ec1
7
- data.tar.gz: 2fb2e0c78fb943467f18c25305dc148d015b12407b7f554730e14cdc42fd739d89339324db884ee2fa578cbc6c92c527a71b6dd8b315c1bbbc238723223f5150
6
+ metadata.gz: d40776a7fadd4200881fe6364cca35d3e69430dfc6a4c6da2cb7b38b3460ad4de7a4af559016affcf9ce19bb2baa1ec6347538b486356b9275b807841a5bfb6e
7
+ data.tar.gz: 454167830c75728e220f7c2eb38772af5ccd54b429393f3083362799da8fe1bc16d7ea3aab0c4e3db51da4dfe56e96413dea75ef58697d04926542a7bfa388e2
data/lib/webpay.rb CHANGED
@@ -30,7 +30,7 @@ class WebPay
30
30
 
31
31
  "Accept" => "application/json",
32
32
 
33
- "User-Agent" => "Apipa-webpay/3.1.1 ruby",
33
+ "User-Agent" => "Apipa-webpay/3.1.2 ruby",
34
34
 
35
35
  "Accept-Language" => "en",
36
36
  }
@@ -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] = v.is_a?(Entity) ? v.to_h : v
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.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.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-07-30 00:00:00.000000000 Z
12
+ date: 2014-08-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday