stripe 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.txt +4 -0
- data/VERSION +1 -1
- data/lib/stripe/stripe_object.rb +6 -1
- data/lib/stripe/version.rb +1 -1
- data/test/stripe/stripe_object_test.rb +9 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 08477fe3a7d16944c6bb51978cfb8490fa353951
|
4
|
+
data.tar.gz: 8ded44a9360759b46bbe1624284e48c238795cb0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5485338b4e399f6fd47f77e73995764d73fbfe75cbec8e67bb3650650972104a6b86d12b9ab3bcd32826574e211078bf9f12106eae0f156cccd8f383c08af37e
|
7
|
+
data.tar.gz: f4f25a6d1ccae7103d8c3ff3f2289dbb127f7246895fffa9d80d02da3c32a629f41894e5541f19dcc0f1c515f5912048d6ef970b2a7026427bc8d9dc2bbfc5cd
|
data/History.txt
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.
|
1
|
+
2.0.3
|
data/lib/stripe/stripe_object.rb
CHANGED
@@ -137,7 +137,12 @@ module Stripe
|
|
137
137
|
end
|
138
138
|
|
139
139
|
def _dump(level)
|
140
|
-
|
140
|
+
# The StripeClient instance in @opts is not serializable and is not
|
141
|
+
# really a property of the StripeObject, so we exclude it when
|
142
|
+
# dumping
|
143
|
+
opts = @opts.clone
|
144
|
+
opts.delete(:client)
|
145
|
+
Marshal.dump([@values, opts])
|
141
146
|
end
|
142
147
|
|
143
148
|
def self._load(args)
|
data/lib/stripe/version.rb
CHANGED
@@ -36,7 +36,15 @@ module Stripe
|
|
36
36
|
end
|
37
37
|
|
38
38
|
should "marshal a stripe object correctly" do
|
39
|
-
obj = Stripe::StripeObject.construct_from(
|
39
|
+
obj = Stripe::StripeObject.construct_from(
|
40
|
+
{ :id => 1, :name => 'Stripe' },
|
41
|
+
{
|
42
|
+
:api_key => 'apikey',
|
43
|
+
# StripeClient is not serializable and is expected to be removed
|
44
|
+
# when marshalling StripeObjects
|
45
|
+
:client => StripeClient.active_client,
|
46
|
+
}
|
47
|
+
)
|
40
48
|
m = Marshal.load(Marshal.dump(obj))
|
41
49
|
assert_equal 1, m.id
|
42
50
|
assert_equal 'Stripe', m.name
|