stripe 5.15.0 → 5.16.0
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/.rubocop.yml +9 -0
- data/CHANGELOG.md +4 -0
- data/Gemfile +1 -1
- data/README.md +1 -1
- data/VERSION +1 -1
- data/lib/stripe/resources/checkout/session.rb +1 -0
- data/lib/stripe/version.rb +1 -1
- data/test/stripe/stripe_object_test.rb +5 -5
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f1c99c066374d7370a0d975b8a8bf1b7f656c11a50ac73584ff7aeb76388c02c
|
|
4
|
+
data.tar.gz: 7fd08d9c1601d15c2b61e451c2d9ca32f7f195f82e60d2eac26a8386291ea123
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 81c6026fce3c6b305d60d00bf333a49e893592e3d74be76708512fb3287293de92a49832e4466e854b2bbd18a1cd54f802ee031f11f1cd712c6ba5976e881fb1
|
|
7
|
+
data.tar.gz: 55acb0e73747fc49f2ca96595561acaaab676f18181b5611f5a47f64dc8426a9b5bc9f565e29752099a7f3db2113730ea6e7c839fcd9778eeb09cdb38a22ed67
|
data/.rubocop.yml
CHANGED
|
@@ -58,6 +58,15 @@ Style/AccessModifierDeclarations:
|
|
|
58
58
|
Style/FrozenStringLiteralComment:
|
|
59
59
|
EnforcedStyle: always
|
|
60
60
|
|
|
61
|
+
Style/HashEachMethods:
|
|
62
|
+
Enabled: true
|
|
63
|
+
|
|
64
|
+
Style/HashTransformKeys:
|
|
65
|
+
Enabled: true
|
|
66
|
+
|
|
67
|
+
Style/HashTransformValues:
|
|
68
|
+
Enabled: true
|
|
69
|
+
|
|
61
70
|
Style/NumericPredicate:
|
|
62
71
|
Enabled: false
|
|
63
72
|
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.16.0 - 2020-02-26
|
|
4
|
+
* [#906](https://github.com/stripe/stripe-ruby/pull/906) Add support for listing Checkout sessions
|
|
5
|
+
* [#903](https://github.com/stripe/stripe-ruby/pull/903) Upgrade to Rubocop 0.80
|
|
6
|
+
|
|
3
7
|
## 5.15.0 - 2020-02-10
|
|
4
8
|
* [#902](https://github.com/stripe/stripe-ruby/pull/902) Add `request_begin` instrumentation callback
|
|
5
9
|
|
data/Gemfile
CHANGED
|
@@ -21,7 +21,7 @@ group :development do
|
|
|
21
21
|
# `Gemfile.lock` checked in, so to prevent good builds from suddenly going
|
|
22
22
|
# bad, pin to a specific version number here. Try to keep this relatively
|
|
23
23
|
# up-to-date, but it's not the end of the world if it's not.
|
|
24
|
-
gem "rubocop", "0.
|
|
24
|
+
gem "rubocop", "0.80"
|
|
25
25
|
|
|
26
26
|
platforms :mri do
|
|
27
27
|
gem "byebug"
|
data/README.md
CHANGED
|
@@ -228,7 +228,7 @@ Invoked when an HTTP request starts. Receives `RequestBeginEvent` with the
|
|
|
228
228
|
following properties:
|
|
229
229
|
|
|
230
230
|
- `method`: HTTP method. (`Symbol`)
|
|
231
|
-
- `
|
|
231
|
+
- `path`: Request path. (`String`)
|
|
232
232
|
- `user_data`: A hash on which users can set arbitrary data, and which will be
|
|
233
233
|
passed through to `request_end` invocations. This could be used, for example,
|
|
234
234
|
to assign unique IDs to each request, and it'd work even if many requests are
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
5.
|
|
1
|
+
5.16.0
|
data/lib/stripe/version.rb
CHANGED
|
@@ -213,28 +213,28 @@ module Stripe
|
|
|
213
213
|
should "mass assign values with #update_attributes" do
|
|
214
214
|
obj = Stripe::StripeObject.construct_from(id: 1, name: "Stripe")
|
|
215
215
|
|
|
216
|
-
obj.update_attributes({ name: "STRIPE" })
|
|
216
|
+
obj.update_attributes({ name: "STRIPE" })
|
|
217
217
|
|
|
218
218
|
assert_equal "STRIPE", obj.name
|
|
219
219
|
|
|
220
220
|
# unfortunately, we even assign unknown properties to duplicate the
|
|
221
221
|
# behavior that we currently have via magic accessors with
|
|
222
222
|
# method_missing
|
|
223
|
-
obj.update_attributes({ unknown: "foo" })
|
|
223
|
+
obj.update_attributes({ unknown: "foo" })
|
|
224
224
|
|
|
225
225
|
assert_equal "foo", obj.unknown
|
|
226
226
|
end
|
|
227
227
|
|
|
228
228
|
should "#update_attributes with a hash" do
|
|
229
229
|
obj = Stripe::StripeObject.construct_from({})
|
|
230
|
-
obj.update_attributes({ metadata: { foo: "bar" } })
|
|
230
|
+
obj.update_attributes({ metadata: { foo: "bar" } })
|
|
231
231
|
assert_equal Stripe::StripeObject, obj.metadata.class
|
|
232
232
|
end
|
|
233
233
|
|
|
234
234
|
should "create accessors when #update_attributes is called" do
|
|
235
235
|
obj = Stripe::StripeObject.construct_from({})
|
|
236
236
|
assert_equal false, obj.send(:metaclass).method_defined?(:foo)
|
|
237
|
-
obj.update_attributes({ foo: "bar" })
|
|
237
|
+
obj.update_attributes({ foo: "bar" })
|
|
238
238
|
assert_equal true, obj.send(:metaclass).method_defined?(:foo)
|
|
239
239
|
end
|
|
240
240
|
|
|
@@ -271,7 +271,7 @@ module Stripe
|
|
|
271
271
|
|
|
272
272
|
should "#serialize_params on a basic object" do
|
|
273
273
|
obj = Stripe::StripeObject.construct_from(foo: nil)
|
|
274
|
-
obj.update_attributes({ foo: "bar" })
|
|
274
|
+
obj.update_attributes({ foo: "bar" })
|
|
275
275
|
assert_equal({ foo: "bar" }, obj.serialize_params)
|
|
276
276
|
end
|
|
277
277
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: stripe
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.
|
|
4
|
+
version: 5.16.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stripe
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-02-
|
|
11
|
+
date: 2020-02-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Stripe is the easiest way to accept payments online. See https://stripe.com
|
|
14
14
|
for details.
|