stripe-rails 1.5.4 → 1.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog.md +4 -0
- data/lib/stripe/engine.rb +11 -0
- data/lib/stripe/rails/version.rb +1 -1
- 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: 384d92b3ea709913f5242cf3f66e67eed544332793a3b22dbf80cf47c87cc5d0
|
4
|
+
data.tar.gz: f003f0dd283459f959736f73386c78e5bc14374abc9902d0a11e99e771fbac7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acc1e9ff4d8b861db45d94bc4a6b0beac3e378d51afcdb3490a6edc5b010265c057fa4ea3eebd0ada26950a24202dd413483eab31a7c0c7a4461bba1b99f0fe9
|
7
|
+
data.tar.gz: ad9ef580b4d312acc316f8200742382aff5988fbe9562307b160b414999ad1e9835ad47c0dec316d0edb9cc0817ed2bdcc6b3d533ce1e362b433f8b1494fda3f
|
data/Changelog.md
CHANGED
data/lib/stripe/engine.rb
CHANGED
@@ -41,6 +41,17 @@ environment file directly.
|
|
41
41
|
MSG
|
42
42
|
end
|
43
43
|
|
44
|
+
initializer 'stripe.callbacks.clear_after_unload' do |app|
|
45
|
+
# Skip Rails 4 for now.
|
46
|
+
next unless app.respond_to?(:reloader)
|
47
|
+
|
48
|
+
# Clear callbacks after all autoloaded classes are removed.
|
49
|
+
# This prevents duplicate callbacks being added during development.
|
50
|
+
app.reloader.after_class_unload do
|
51
|
+
::Stripe::Callbacks.clear_callbacks!
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
44
55
|
initializer 'stripe.callbacks.eager_load' do |app|
|
45
56
|
app.config.after_initialize do
|
46
57
|
app.config.stripe.eager_load.each do |constant|
|
data/lib/stripe/rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stripe-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charles Lowell
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-
|
13
|
+
date: 2018-12-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|