stripe 1.5.18 → 1.5.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/stripe.rb +2 -2
  2. data/lib/stripe/version.rb +1 -1
  3. metadata +4 -4
@@ -35,7 +35,7 @@ module Stripe
35
35
  h.id
36
36
  when Hash
37
37
  res = {}
38
- h.each { |k, v| res[k] = objects_to_ids(v) }
38
+ h.each { |k, v| res[k] = objects_to_ids(v) if v }
39
39
  res
40
40
  when Array
41
41
  h.map { |v| objects_to_ids(v) }
@@ -82,7 +82,7 @@ module Stripe
82
82
  when Hash
83
83
  new = {}
84
84
  object.each do |key, value|
85
- key = key.to_sym rescue key
85
+ key = (key.to_sym rescue key) || key
86
86
  new[key] = symbolize_names(value)
87
87
  end
88
88
  new
@@ -1,3 +1,3 @@
1
1
  module Stripe
2
- VERSION = '1.5.18'
2
+ VERSION = '1.5.19'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stripe
3
3
  version: !ruby/object:Gem::Version
4
- hash: 39
4
+ hash: 37
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 5
9
- - 18
10
- version: 1.5.18
9
+ - 19
10
+ version: 1.5.19
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ross Boucher
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-10-04 00:00:00 Z
19
+ date: 2011-10-05 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: rest-client