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 +4 -4
- data/lib/request_store_rails/railtie.rb +6 -2
- data/lib/request_store_rails/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65b187ecf5b7f10f2e21e2b6da37f360ea75fa5e
|
4
|
+
data.tar.gz: 1c51bb08533fc494f9ceaeae439fa0034b17cf34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
11
|
-
|
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
|
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.
|
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:
|
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:
|