stripe 5.15.0 → 5.16.0

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
  SHA256:
3
- metadata.gz: 1b0ca3c982da5bfe967d889047eeadbc2a2ba7ef6807dc860639a844f706cf15
4
- data.tar.gz: 450bc197cbfd02398b3103aa89a5447f28bf2dd0f74608f3f54953e48e7ba4fd
3
+ metadata.gz: f1c99c066374d7370a0d975b8a8bf1b7f656c11a50ac73584ff7aeb76388c02c
4
+ data.tar.gz: 7fd08d9c1601d15c2b61e451c2d9ca32f7f195f82e60d2eac26a8386291ea123
5
5
  SHA512:
6
- metadata.gz: 84c4915401aaf4a8e546763a17f44395df5ed284e36e721c6ba8d04612bbe4af9cc3d6bdeb235aba10abb82f5b001039f48ff0077e4d7477aed2f165a9f616a3
7
- data.tar.gz: e4b3cacde2e92739ad543c2287cb06aa5041d2daa29780c83b3c670f97bdd395be7c537dc880cb452402575112b1498e10417244aada07653aec0fa52e551389
6
+ metadata.gz: 81c6026fce3c6b305d60d00bf333a49e893592e3d74be76708512fb3287293de92a49832e4466e854b2bbd18a1cd54f802ee031f11f1cd712c6ba5976e881fb1
7
+ data.tar.gz: 55acb0e73747fc49f2ca96595561acaaab676f18181b5611f5a47f64dc8426a9b5bc9f565e29752099a7f3db2113730ea6e7c839fcd9778eeb09cdb38a22ed67
@@ -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
 
@@ -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.79"
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
- - `num_retries`: The number of retries. (`Integer`)
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.15.0
1
+ 5.16.0
@@ -4,6 +4,7 @@ module Stripe
4
4
  module Checkout
5
5
  class Session < APIResource
6
6
  extend Stripe::APIOperations::Create
7
+ extend Stripe::APIOperations::List
7
8
 
8
9
  OBJECT_NAME = "checkout.session"
9
10
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "5.15.0"
4
+ VERSION = "5.16.0"
5
5
  end
@@ -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" }) # rubocop:disable Style/BracesAroundHashParameters
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" }) # rubocop:disable Style/BracesAroundHashParameters
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" } }) # rubocop:disable Style/BracesAroundHashParameters
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" }) # rubocop:disable Style/BracesAroundHashParameters
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" }) # rubocop:disable Style/BracesAroundHashParameters
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.15.0
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-10 00:00:00.000000000 Z
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.