request_store_rails 1.0.1 → 1.0.2

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
  SHA1:
3
- metadata.gz: 90d3294a6f00282c6756dfbeff84f5be798b7d5d
4
- data.tar.gz: 5f264324b1b7a23135c369590a524d4fb416b28f
3
+ metadata.gz: 65b187ecf5b7f10f2e21e2b6da37f360ea75fa5e
4
+ data.tar.gz: 1c51bb08533fc494f9ceaeae439fa0034b17cf34
5
5
  SHA512:
6
- metadata.gz: 0bf1a314425f01f8b93a40b31747b5217dc81ce1e72ed175994d98448a9e2b98da3f4c2287e4e4d7c878c7da41039741a5b2859c402e11a74b0a2464c1f669ba
7
- data.tar.gz: 00d4379e0380626b615c2f21cf8066b79e1ef6c5374692710c113adb60e97ee83d288c7c2c5b830335a0058913cc6ffac9077e402ba6c8e1afead1a3769852fd
6
+ metadata.gz: 5584425e010aa796fde16d7fd9f4e21324e25d477c430a7067279526c742776510ccebc4e1e986b7624f579b19435a647c12cc9b81ce6c6bceb6c6d6d4d3b81b
7
+ data.tar.gz: 5e0cfb417c9ae43ec4de136b64d4e61db7652ddbb426359b07a4da92dfc69e508f3ff473a094aa51c72111950b66be7e0eaaa948cf3099e014d08d1049c1c633
@@ -7,8 +7,12 @@ module RequestStoreRails
7
7
  initializer 'request_store_rails.insert_middleware' do |app|
8
8
  app.config.middleware.insert_after ActionDispatch::RequestId, RequestStoreRails::Middleware
9
9
 
10
- ActionDispatch::Reloader.to_cleanup do
11
- RequestLocals.clear_all!
10
+ clear_all = -> { RequestLocals.clear_all! }
11
+
12
+ if defined?(ActiveSupport::Reloader)
13
+ ActiveSupport::Reloader.to_complete(&clear_all)
14
+ else
15
+ ActionDispatch::Reloader.to_cleanup(&clear_all)
12
16
  end
13
17
  end
14
18
  end
@@ -1,4 +1,4 @@
1
1
  module RequestStoreRails
2
2
 
3
- VERSION = '1.0.1'
3
+ VERSION = '1.0.2'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: request_store_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Máximo Mussini
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-06 00:00:00.000000000 Z
11
+ date: 2017-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -92,4 +92,3 @@ signing_key:
92
92
  specification_version: 4
93
93
  summary: Per-request global storage for Rails
94
94
  test_files: []
95
- has_rdoc: