rack-flash3 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +13 -0
- data/Rakefile +1 -1
- data/VERSION.yml +2 -2
- data/lib/rack/flash.rb +5 -2
- data/rack-flash3.gemspec +4 -4
- metadata +4 -4
data/README.md
CHANGED
@@ -1,3 +1,16 @@
|
|
1
|
+
# Patch the Call to rack_builder
|
2
|
+
|
3
|
+
|
4
|
+
Treeder forked the original Rack::Flash and patched its issues, see
|
5
|
+
https://github.com/treeder/rack-flash
|
6
|
+
|
7
|
+
However, when *not* using Sinatra, the code still won't work.
|
8
|
+
This patches that in the Patch_rack_builder_call branch.
|
9
|
+
|
10
|
+
[View the RDoc](http://gitrdoc.com/nakajima/rack-flash/tree/master).
|
11
|
+
Below is the original README.md
|
12
|
+
----
|
13
|
+
|
1
14
|
# Rack Flash
|
2
15
|
|
3
16
|
flash[:notice] = "You can stop rolling your own now."
|
data/Rakefile
CHANGED
@@ -8,7 +8,7 @@ begin
|
|
8
8
|
gem.summary = "Flash hash implementation for Rack apps."
|
9
9
|
gem.description = "Flash hash implementation for Rack apps."
|
10
10
|
gem.email = "treeder@gmail.com"
|
11
|
-
gem.homepage = "
|
11
|
+
gem.homepage = "https://github.com/treeder/rack-flash"
|
12
12
|
gem.authors = ["Pat Nakajima", "Travis Reeder"]
|
13
13
|
gem.add_dependency 'rack'
|
14
14
|
# gem.required_ruby_version = '>= 1.9'
|
data/VERSION.yml
CHANGED
data/lib/rack/flash.rb
CHANGED
@@ -48,6 +48,10 @@ module Rack
|
|
48
48
|
end
|
49
49
|
alias_method :include?, :has?
|
50
50
|
|
51
|
+
def keys
|
52
|
+
cache.keys.merge(values.keys)
|
53
|
+
end
|
54
|
+
|
51
55
|
# Mark existing entries to allow for sweeping.
|
52
56
|
def flag!
|
53
57
|
@flagged = values.keys
|
@@ -131,8 +135,7 @@ module Rack
|
|
131
135
|
def app_class(app, opts)
|
132
136
|
return nil if opts.has_key?(:helper) and not opts[:helper]
|
133
137
|
opts[:flash_app_class] ||
|
134
|
-
defined?(Sinatra::Base) && Sinatra::Base
|
135
|
-
self.class.rack_builder.leaf_app.class
|
138
|
+
defined?(Sinatra::Base) && Sinatra::Base
|
136
139
|
end
|
137
140
|
end
|
138
141
|
end
|
data/rack-flash3.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "rack-flash3"
|
8
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.0.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Pat Nakajima", "Travis Reeder"]
|
12
|
-
s.date = "
|
12
|
+
s.date = "2013-01-02"
|
13
13
|
s.description = "Flash hash implementation for Rack apps."
|
14
14
|
s.email = "treeder@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -31,9 +31,9 @@ Gem::Specification.new do |s|
|
|
31
31
|
"test/helper.rb",
|
32
32
|
"test/test_flash.rb"
|
33
33
|
]
|
34
|
-
s.homepage = "
|
34
|
+
s.homepage = "https://github.com/treeder/rack-flash"
|
35
35
|
s.require_paths = ["lib"]
|
36
|
-
s.rubygems_version = "1.8.
|
36
|
+
s.rubygems_version = "1.8.24"
|
37
37
|
s.summary = "Flash hash implementation for Rack apps."
|
38
38
|
|
39
39
|
if s.respond_to? :specification_version then
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-flash3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2013-01-02 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rack
|
@@ -65,7 +65,7 @@ files:
|
|
65
65
|
- rack-flash3.gemspec
|
66
66
|
- test/helper.rb
|
67
67
|
- test/test_flash.rb
|
68
|
-
homepage:
|
68
|
+
homepage: https://github.com/treeder/rack-flash
|
69
69
|
licenses: []
|
70
70
|
post_install_message:
|
71
71
|
rdoc_options: []
|
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
85
|
version: '0'
|
86
86
|
requirements: []
|
87
87
|
rubyforge_project:
|
88
|
-
rubygems_version: 1.8.
|
88
|
+
rubygems_version: 1.8.24
|
89
89
|
signing_key:
|
90
90
|
specification_version: 3
|
91
91
|
summary: Flash hash implementation for Rack apps.
|