stripe 3.5.0 → 3.5.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 318be0fcbe32bab36c77a9390c936aba1735106a
4
- data.tar.gz: b060b65d599adf9a51cb6c0d9f1ba81b3a6acc5c
3
+ metadata.gz: 6b7dbd882684aa750e2f41166db12d75e2cabae4
4
+ data.tar.gz: 6e83b5c99ad759bc9f0788fc95cd171e5a67b0b1
5
5
  SHA512:
6
- metadata.gz: 83a649dc5dcdb5c62511afcad9367fb4368078950de40ad1e0472250eb4d1521034f27dd98740a759e4694937bf648aac692d2d6546687537e8bf9934fe0e17a
7
- data.tar.gz: 8695ec3cf4e68d269c5e9826af93a50f2e61db554d4f2898035aacdf178240f7ed3ccd4f8fc4cd408a398f72d3ea428ed6bbd115d8e323357c41cb05d384b192
6
+ metadata.gz: 8a8e35eb52b5a40da94ca6a30b639b67bd029474d27728aa656de7c55ce52073a5ecaea2e0d0cd79e913bd4c58ecfef90bafef26b0d9a7a9e865894aec2245c9
7
+ data.tar.gz: 3d97567c3dfc0762ee9fae4a00f13faf689a8042630d87bb8e0e638b26b4b907dfdb4229fcfa70cc686da79ae7fa38ab51d7baaf2c86bc676998139d1524243c
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2017-09-27 21:19:01 +0200 using RuboCop version 0.50.0.
3
+ # on 2017-10-12 18:19:29 +0200 using RuboCop version 0.50.0.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
@@ -10,46 +10,44 @@
10
10
  Metrics/AbcSize:
11
11
  Max: 49
12
12
 
13
- # Offense count: 22
13
+ # Offense count: 24
14
14
  # Configuration parameters: CountComments, ExcludedMethods.
15
15
  Metrics/BlockLength:
16
- Max: 461
16
+ Max: 455
17
17
 
18
18
  # Offense count: 8
19
19
  # Configuration parameters: CountComments.
20
20
  Metrics/ClassLength:
21
- Max: 581
21
+ Max: 583
22
22
 
23
23
  # Offense count: 8
24
24
  Metrics/CyclomaticComplexity:
25
25
  Max: 13
26
26
 
27
- # Offense count: 216
27
+ # Offense count: 215
28
28
  # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
29
29
  # URISchemes: http, https
30
30
  Metrics/LineLength:
31
- Max: 312
31
+ Max: 310
32
32
 
33
- # Offense count: 29
33
+ # Offense count: 31
34
34
  # Configuration parameters: CountComments.
35
35
  Metrics/MethodLength:
36
36
  Max: 47
37
37
 
38
- # Offense count: 2
38
+ # Offense count: 1
39
39
  # Configuration parameters: CountComments.
40
40
  Metrics/ModuleLength:
41
- Max: 423
41
+ Max: 298
42
42
 
43
- # Offense count: 6
43
+ # Offense count: 5
44
44
  # Configuration parameters: CountKeywordArgs.
45
45
  Metrics/ParameterLists:
46
46
  Max: 7
47
47
 
48
- # Offense count: 5
48
+ # Offense count: 4
49
49
  Metrics/PerceivedComplexity:
50
- Max: 11
51
- Exclude:
52
- - 'lib/stripe/stripe_object.rb'
50
+ Max: 15
53
51
 
54
52
  # Offense count: 2
55
53
  Style/ClassVars:
@@ -1,6 +1,10 @@
1
+ === 3.5.1 2017-10-12
2
+
3
+ * [#591] Use thread-local `StripeClient` instances for thread safety
4
+
1
5
  === 3.5.0 2017-10-11
2
6
 
3
- * [#589] Add support for detaching sources fromm customers
7
+ * [#589] Rename source `delete` to `detach` (and deprecate the former)
4
8
 
5
9
  === 3.4.1 2017-10-05
6
10
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.5.0
1
+ 3.5.1
@@ -17,7 +17,7 @@ module Stripe
17
17
  end
18
18
 
19
19
  def self.default_client
20
- @default_client ||= StripeClient.new(default_conn)
20
+ Thread.current[:stripe_client_default_client] ||= StripeClient.new(default_conn)
21
21
  end
22
22
 
23
23
  # A default Faraday connection to be used when one isn't configured. This
@@ -1,3 +1,3 @@
1
1
  module Stripe
2
- VERSION = "3.5.0".freeze
2
+ VERSION = "3.5.1".freeze
3
3
  end
@@ -19,6 +19,15 @@ module Stripe
19
19
  should "be a StripeClient" do
20
20
  assert_kind_of StripeClient, StripeClient.default_client
21
21
  end
22
+
23
+ should "be a different client on each thread" do
24
+ other_thread_client = nil
25
+ thread = Thread.new do
26
+ other_thread_client = StripeClient.default_client
27
+ end
28
+ thread.join
29
+ refute_equal StripeClient.default_client, other_thread_client
30
+ end
22
31
  end
23
32
 
24
33
  context ".default_conn" do
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: 3.5.0
4
+ version: 3.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-11 00:00:00.000000000 Z
11
+ date: 2017-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday