stripe 1.32.0 → 1.32.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/History.txt +5 -0
- data/VERSION +1 -1
- data/lib/stripe/bitcoin_receiver.rb +1 -1
- data/lib/stripe/list_object.rb +1 -5
- data/lib/stripe/stripe_object.rb +1 -0
- data/lib/stripe/version.rb +1 -1
- data/test/stripe/stripe_object_test.rb +7 -0
- data/test/test_data.rb +1 -0
- 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: d2d2a6395d80bde7fc0021ce5774016af214c990
|
|
4
|
+
data.tar.gz: 71f7a568f9e60ae0a696c2e43a31ba963ca05ae6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6e2a2dc5678a605a941e28c2332383c8cebb1be58406881db0d0d1ed47a47f692be87868eb917aedd6ff8f231c4a7b92889c33b65e37bdb459e8fd8f827d8cfe
|
|
7
|
+
data.tar.gz: 20ce1c2d6be1316ef740ab3ad469fa676e1ada2e5d92cd7bd4587d4b3f0c574284e6b3392d29ed8b8bace956d9ea16c420495de373cebe3b3f00b4b2662a006a
|
data/History.txt
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
=== 1.32.1 2016-01-07
|
|
2
|
+
|
|
3
|
+
* Fix bug where ivar left uninitialized in StripeObject could error on serialization
|
|
4
|
+
* Fix bug where a nil customer from API could error Bitcoin model on refresh
|
|
5
|
+
|
|
1
6
|
=== 1.32.0 2016-01-05
|
|
2
7
|
|
|
3
8
|
* Add configuration to optionally retry network failures
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.32.
|
|
1
|
+
1.32.1
|
data/lib/stripe/list_object.rb
CHANGED
|
@@ -3,6 +3,7 @@ module Stripe
|
|
|
3
3
|
include Enumerable
|
|
4
4
|
include Stripe::APIOperations::List
|
|
5
5
|
include Stripe::APIOperations::Request
|
|
6
|
+
include Stripe::APIOperations::Create
|
|
6
7
|
|
|
7
8
|
# This accessor allows a `ListObject` to inherit various filters that were
|
|
8
9
|
# given to a predecessor. This allows for things like consistent limits,
|
|
@@ -67,11 +68,6 @@ module Stripe
|
|
|
67
68
|
Util.convert_to_stripe_object(response, opts)
|
|
68
69
|
end
|
|
69
70
|
|
|
70
|
-
def create(params={}, opts={})
|
|
71
|
-
response, opts = request(:post, url, params, opts)
|
|
72
|
-
Util.convert_to_stripe_object(response, opts)
|
|
73
|
-
end
|
|
74
|
-
|
|
75
71
|
# Fetches the next page in the resource list (if there is one).
|
|
76
72
|
#
|
|
77
73
|
# This method will try to respect the limit of the current page. If none
|
data/lib/stripe/stripe_object.rb
CHANGED
|
@@ -12,6 +12,7 @@ module Stripe
|
|
|
12
12
|
def initialize(id=nil, opts={})
|
|
13
13
|
id, @retrieve_params = Util.normalize_id(id)
|
|
14
14
|
@opts = Util.normalize_opts(opts)
|
|
15
|
+
@original_values = {}
|
|
15
16
|
@values = {}
|
|
16
17
|
# This really belongs in APIResource, but not putting it there allows us
|
|
17
18
|
# to have a unified inspect method
|
data/lib/stripe/version.rb
CHANGED
|
@@ -105,6 +105,13 @@ module Stripe
|
|
|
105
105
|
assert_equal({}, Stripe::StripeObject.serialize_params(obj))
|
|
106
106
|
end
|
|
107
107
|
|
|
108
|
+
should "#serialize_params on a new object with a subobject" do
|
|
109
|
+
obj = Stripe::StripeObject.new
|
|
110
|
+
obj.metadata = { :foo => "bar" }
|
|
111
|
+
assert_equal({ :metadata => { :foo => "bar" } },
|
|
112
|
+
Stripe::StripeObject.serialize_params(obj))
|
|
113
|
+
end
|
|
114
|
+
|
|
108
115
|
should "#serialize_params on a basic object" do
|
|
109
116
|
obj = Stripe::StripeObject.construct_from({ :foo => nil })
|
|
110
117
|
obj.update_attributes(:foo => "bar")
|
data/test/test_data.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: stripe
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.32.
|
|
4
|
+
version: 1.32.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ross Boucher
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2016-01-
|
|
12
|
+
date: 2016-01-07 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rest-client
|