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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cf79dbe2445d3605d945e23257dcc2fedbcb6e6fefeedba40e4f14515b9dadef
4
- data.tar.gz: '09c1dfe4b60fa48d6d39ca6a1872b12917153f3d3b98b3da2db68761178bbf0d'
3
+ metadata.gz: 384d92b3ea709913f5242cf3f66e67eed544332793a3b22dbf80cf47c87cc5d0
4
+ data.tar.gz: f003f0dd283459f959736f73386c78e5bc14374abc9902d0a11e99e771fbac7b
5
5
  SHA512:
6
- metadata.gz: 6e455a1f349faf11d283b711c7b358f8db3998c632af6b1fe498003d48cfbe64b3bf5e91c64e15ce659d9db3cece8ddff600a0fab32b9f7de82b61b81cab6adb
7
- data.tar.gz: 8f3946e974cb426cb814909fda58692703f43458ac9e890eae0a182da4c773e8a6fd2d756cb17a669608b5eb72bc2896424492ff147cae01ccb70020fd5d9ecf
6
+ metadata.gz: acc1e9ff4d8b861db45d94bc4a6b0beac3e378d51afcdb3490a6edc5b010265c057fa4ea3eebd0ada26950a24202dd413483eab31a7c0c7a4461bba1b99f0fe9
7
+ data.tar.gz: ad9ef580b4d312acc316f8200742382aff5988fbe9562307b160b414999ad1e9835ad47c0dec316d0edb9cc0817ed2bdcc6b3d533ce1e362b433f8b1494fda3f
data/Changelog.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.5.5 (2018-12-16)
2
+
3
+ * Fixed issue with Rails development and Spring: Clear callbacks before files are reloaded during development and test - thanks @ndbroadbent
4
+
1
5
  ## 1.5.4 (2018-11-14)
2
6
 
3
7
  * Removes test exception from event dispatch
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|
@@ -1,5 +1,5 @@
1
1
  module Stripe
2
2
  module Rails
3
- VERSION = '1.5.4'
3
+ VERSION = '1.5.5'
4
4
  end
5
5
  end
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
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-11-14 00:00:00.000000000 Z
13
+ date: 2018-12-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails