request_store 1.3.0 → 1.3.1

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: 743e2b453797cff390b0811b3f0f4fb13eebf15a
4
- data.tar.gz: 00809cfc84d6a74f4358c63445403f42d938b2d5
3
+ metadata.gz: 58c303a8659c7c6b0a6d0c67e9b7fca905d0bac9
4
+ data.tar.gz: 21d349a607e6d9bf8aaf2f6431527c25a7ccd110
5
5
  SHA512:
6
- metadata.gz: 2682121838ae3862866cf8a65e76d12d34010cc89a2d7a5f89fe42531670ec2a40bba9647503d14f6906619c84a74f1c6483bdd7f09096521b93aceff2f537c0
7
- data.tar.gz: 50eef4bb4582b09c1a9c20aa74614213cb8d3e24602804f84efb52b3adc01e0c8c5c9924e2d93c20eff4a533dac8d8d017ece682e3134e68270fc9491215ba47
6
+ metadata.gz: 481c535fc14d0321f148037d85d7598acb260fd09d6c3722244cb714a26e0729a9f50d4f9b8f1921659585a07bff7bff59d785f1ecbd331fb5cf8d70bfef1b5d
7
+ data.tar.gz: 4cdca12599f0cbeeecaf9006702817d5fdd3ea7d3489c49fba2fca58e04aafd3d625baa23a7c7442c1bb3642a42721e0b64cb62bf2728c8b139b3f1394e20933
@@ -7,7 +7,11 @@ module RequestStore
7
7
  app.config.middleware.insert_after Rack::MethodOverride, RequestStore::Middleware
8
8
  end
9
9
 
10
- if ActionDispatch.const_defined?(:Reloader) && ActionDispatch::Reloader.respond_to?(:to_cleanup)
10
+ if ActiveSupport.const_defined?(:Reloader) && ActiveSupport::Reloader.respond_to?(:to_complete)
11
+ ActiveSupport::Reloader.to_complete do
12
+ RequestStore.clear!
13
+ end
14
+ elsif ActionDispatch.const_defined?(:Reloader) && ActionDispatch::Reloader.respond_to?(:to_cleanup)
11
15
  ActionDispatch::Reloader.to_cleanup do
12
16
  RequestStore.clear!
13
17
  end
@@ -1,3 +1,3 @@
1
1
  module RequestStore
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.1"
3
3
  end
@@ -18,6 +18,6 @@ Gem::Specification.new do |gem|
18
18
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
19
19
  gem.require_paths = ["lib"]
20
20
 
21
- gem.add_development_dependency "rake"
21
+ gem.add_development_dependency "rake", "~> 10.5"
22
22
  gem.add_development_dependency "minitest", "~> 5.0"
23
23
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: request_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Klabnik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-08 00:00:00.000000000 Z
11
+ date: 2016-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '10.5'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '10.5'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: minitest
29
29
  requirement: !ruby/object:Gem::Requirement