rack-store 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/rack/store.rb +3 -1
  2. metadata +3 -3
@@ -12,10 +12,12 @@ module Rack
12
12
  class << self
13
13
  def env
14
14
  @env ||= {}
15
+ @env[Thread.current.object_id] ||= {}
15
16
  end
16
17
 
17
18
  def env=(env)
18
- @env = env
19
+ @env ||= {}
20
+ @env[Thread.current.object_id] = env
19
21
  end
20
22
  end
21
23
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-store
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Issei Naruta