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 +4 -4
- data/.rubocop_todo.yml +12 -14
- data/History.txt +5 -1
- data/VERSION +1 -1
- data/lib/stripe/stripe_client.rb +1 -1
- data/lib/stripe/version.rb +1 -1
- data/test/stripe/stripe_client_test.rb +9 -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: 6b7dbd882684aa750e2f41166db12d75e2cabae4
|
|
4
|
+
data.tar.gz: 6e83b5c99ad759bc9f0788fc95cd171e5a67b0b1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8a8e35eb52b5a40da94ca6a30b639b67bd029474d27728aa656de7c55ce52073a5ecaea2e0d0cd79e913bd4c58ecfef90bafef26b0d9a7a9e865894aec2245c9
|
|
7
|
+
data.tar.gz: 3d97567c3dfc0762ee9fae4a00f13faf689a8042630d87bb8e0e638b26b4b907dfdb4229fcfa70cc686da79ae7fa38ab51d7baaf2c86bc676998139d1524243c
|
data/.rubocop_todo.yml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This configuration was generated by
|
|
2
2
|
# `rubocop --auto-gen-config`
|
|
3
|
-
# on 2017-
|
|
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:
|
|
13
|
+
# Offense count: 24
|
|
14
14
|
# Configuration parameters: CountComments, ExcludedMethods.
|
|
15
15
|
Metrics/BlockLength:
|
|
16
|
-
Max:
|
|
16
|
+
Max: 455
|
|
17
17
|
|
|
18
18
|
# Offense count: 8
|
|
19
19
|
# Configuration parameters: CountComments.
|
|
20
20
|
Metrics/ClassLength:
|
|
21
|
-
Max:
|
|
21
|
+
Max: 583
|
|
22
22
|
|
|
23
23
|
# Offense count: 8
|
|
24
24
|
Metrics/CyclomaticComplexity:
|
|
25
25
|
Max: 13
|
|
26
26
|
|
|
27
|
-
# Offense count:
|
|
27
|
+
# Offense count: 215
|
|
28
28
|
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
|
29
29
|
# URISchemes: http, https
|
|
30
30
|
Metrics/LineLength:
|
|
31
|
-
Max:
|
|
31
|
+
Max: 310
|
|
32
32
|
|
|
33
|
-
# Offense count:
|
|
33
|
+
# Offense count: 31
|
|
34
34
|
# Configuration parameters: CountComments.
|
|
35
35
|
Metrics/MethodLength:
|
|
36
36
|
Max: 47
|
|
37
37
|
|
|
38
|
-
# Offense count:
|
|
38
|
+
# Offense count: 1
|
|
39
39
|
# Configuration parameters: CountComments.
|
|
40
40
|
Metrics/ModuleLength:
|
|
41
|
-
Max:
|
|
41
|
+
Max: 298
|
|
42
42
|
|
|
43
|
-
# Offense count:
|
|
43
|
+
# Offense count: 5
|
|
44
44
|
# Configuration parameters: CountKeywordArgs.
|
|
45
45
|
Metrics/ParameterLists:
|
|
46
46
|
Max: 7
|
|
47
47
|
|
|
48
|
-
# Offense count:
|
|
48
|
+
# Offense count: 4
|
|
49
49
|
Metrics/PerceivedComplexity:
|
|
50
|
-
Max:
|
|
51
|
-
Exclude:
|
|
52
|
-
- 'lib/stripe/stripe_object.rb'
|
|
50
|
+
Max: 15
|
|
53
51
|
|
|
54
52
|
# Offense count: 2
|
|
55
53
|
Style/ClassVars:
|
data/History.txt
CHANGED
|
@@ -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]
|
|
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.
|
|
1
|
+
3.5.1
|
data/lib/stripe/stripe_client.rb
CHANGED
|
@@ -17,7 +17,7 @@ module Stripe
|
|
|
17
17
|
end
|
|
18
18
|
|
|
19
19
|
def self.default_client
|
|
20
|
-
|
|
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
|
data/lib/stripe/version.rb
CHANGED
|
@@ -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.
|
|
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
|
+
date: 2017-10-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|