rack-flash 0.1.1 → 0.1.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/flash.rb +1 -2
  2. metadata +25 -11
@@ -42,7 +42,6 @@ module Rack
42
42
 
43
43
  @opts = opts
44
44
  @store = store
45
- @store[:__FLASH__] ||= {}
46
45
 
47
46
  if accessors = @opts[:accessorize]
48
47
  accessors.each { |opt| def_accessor(opt) }
@@ -110,7 +109,7 @@ module Rack
110
109
  # Helper to access flash entries from :__FLASH__ session value. This key
111
110
  # is used to prevent collisions with other user-defined session values.
112
111
  def values
113
- @store[:__FLASH__]
112
+ @store[:__FLASH__] ||= {}
114
113
  end
115
114
 
116
115
  # Generate accessor methods for the given entry key if :accessorize is true.
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-flash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ hash: 31
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 2
10
+ version: 0.1.2
5
11
  platform: ruby
6
12
  authors:
7
13
  - Pat Nakajima
@@ -9,19 +15,22 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2009-02-26 00:00:00 -05:00
13
- default_executable:
18
+ date: 2009-02-26 00:00:00 Z
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: rack
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
20
25
  requirements:
21
26
  - - ">="
22
27
  - !ruby/object:Gem::Version
28
+ hash: 3
29
+ segments:
30
+ - 0
23
31
  version: "0"
24
- version:
32
+ type: :runtime
33
+ version_requirements: *id001
25
34
  description:
26
35
  email: patnakajima@gmail.com
27
36
  executables: []
@@ -34,7 +43,6 @@ files:
34
43
  - lib/rack-flash.rb
35
44
  - lib/rack/flash.rb
36
45
  - lib/rack/flash/test.rb
37
- has_rdoc: true
38
46
  homepage:
39
47
  licenses: []
40
48
 
@@ -44,21 +52,27 @@ rdoc_options: []
44
52
  require_paths:
45
53
  - lib
46
54
  required_ruby_version: !ruby/object:Gem::Requirement
55
+ none: false
47
56
  requirements:
48
57
  - - ">="
49
58
  - !ruby/object:Gem::Version
59
+ hash: 3
60
+ segments:
61
+ - 0
50
62
  version: "0"
51
- version:
52
63
  required_rubygems_version: !ruby/object:Gem::Requirement
64
+ none: false
53
65
  requirements:
54
66
  - - ">="
55
67
  - !ruby/object:Gem::Version
68
+ hash: 3
69
+ segments:
70
+ - 0
56
71
  version: "0"
57
- version:
58
72
  requirements: []
59
73
 
60
74
  rubyforge_project:
61
- rubygems_version: 1.3.5
75
+ rubygems_version: 1.8.2
62
76
  signing_key:
63
77
  specification_version: 2
64
78
  summary: Flash hash implementation for Rack apps.