flash_render 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +1 -0
- data/lib/flash_render.rb +11 -4
- data/lib/flash_render/version.rb +1 -1
- metadata +13 -25
- data/Gemfile.lock +0 -96
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 5a90e40e095ecd0e0345ab18b2d38d5c87eccba6
|
4
|
+
data.tar.gz: 3a452342cd781f6400769a9c17b930b664985fc2
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: bcfdf5fc08e58761e62556d302f4e1877b0ccb35fa468a548c980cac080b7f0db79eb3ffcf9cde1fe24a39cc9365194da3622b73b9a94307f6a8d0972515707d
|
7
|
+
data.tar.gz: 1f3189702f665a7dba784992f3369cbb4eb1dc0b771578550ba80db129468ae19523436a342bf75d489d22e922869d26dcee98cdc2491ce8adfe60157e61a87d
|
data/.gitignore
CHANGED
data/lib/flash_render.rb
CHANGED
@@ -1,6 +1,14 @@
|
|
1
1
|
module FlashRender
|
2
|
-
|
3
|
-
def
|
2
|
+
|
3
|
+
def self.included(base)
|
4
|
+
# Protect from trying to augment modules that appear
|
5
|
+
# as the result of adding other gems.
|
6
|
+
return unless base == ActionController::Base
|
7
|
+
|
8
|
+
base.alias_method_chain :render, :flash
|
9
|
+
end
|
10
|
+
|
11
|
+
def render_with_flash(*args)
|
4
12
|
options = args.extract_options!
|
5
13
|
|
6
14
|
if alert = options.delete(:alert)
|
@@ -18,9 +26,8 @@ module FlashRender
|
|
18
26
|
end
|
19
27
|
|
20
28
|
args << options
|
21
|
-
|
29
|
+
render_without_flash(*args)
|
22
30
|
end
|
23
|
-
|
24
31
|
end
|
25
32
|
|
26
33
|
if defined?(Rails::Railtie)
|
data/lib/flash_render/version.rb
CHANGED
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flash_render
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
5
|
-
prerelease:
|
4
|
+
version: 1.2.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Adam Hunter
|
@@ -10,54 +9,48 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date: 2013-
|
12
|
+
date: 2013-12-03 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: rails
|
17
16
|
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
17
|
requirements:
|
20
|
-
- -
|
18
|
+
- - '>='
|
21
19
|
- !ruby/object:Gem::Version
|
22
20
|
version: 2.3.8
|
23
21
|
type: :runtime
|
24
22
|
prerelease: false
|
25
23
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
24
|
requirements:
|
28
|
-
- -
|
25
|
+
- - '>='
|
29
26
|
- !ruby/object:Gem::Version
|
30
27
|
version: 2.3.8
|
31
28
|
- !ruby/object:Gem::Dependency
|
32
29
|
name: redgreen
|
33
30
|
requirement: !ruby/object:Gem::Requirement
|
34
|
-
none: false
|
35
31
|
requirements:
|
36
|
-
- -
|
32
|
+
- - '>='
|
37
33
|
- !ruby/object:Gem::Version
|
38
34
|
version: '0'
|
39
35
|
type: :development
|
40
36
|
prerelease: false
|
41
37
|
version_requirements: !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
38
|
requirements:
|
44
|
-
- -
|
39
|
+
- - '>='
|
45
40
|
- !ruby/object:Gem::Version
|
46
41
|
version: '0'
|
47
42
|
- !ruby/object:Gem::Dependency
|
48
43
|
name: bundler
|
49
44
|
requirement: !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
45
|
requirements:
|
52
|
-
- -
|
46
|
+
- - '>='
|
53
47
|
- !ruby/object:Gem::Version
|
54
48
|
version: 1.0.0.rc.5
|
55
49
|
type: :development
|
56
50
|
prerelease: false
|
57
51
|
version_requirements: !ruby/object:Gem::Requirement
|
58
|
-
none: false
|
59
52
|
requirements:
|
60
|
-
- -
|
53
|
+
- - '>='
|
61
54
|
- !ruby/object:Gem::Version
|
62
55
|
version: 1.0.0.rc.5
|
63
56
|
description: Inspired by '_P.B.F._' at http://bit.ly/flash_render I use the `flash.now[:alert]
|
@@ -70,7 +63,6 @@ extra_rdoc_files: []
|
|
70
63
|
files:
|
71
64
|
- .gitignore
|
72
65
|
- Gemfile
|
73
|
-
- Gemfile.lock
|
74
66
|
- README.textile
|
75
67
|
- Rakefile
|
76
68
|
- flash_render.gemspec
|
@@ -123,29 +115,25 @@ files:
|
|
123
115
|
- test/test_helper.rb
|
124
116
|
homepage: http://rubygems.org/gems/flash_render
|
125
117
|
licenses: []
|
118
|
+
metadata: {}
|
126
119
|
post_install_message:
|
127
120
|
rdoc_options: []
|
128
121
|
require_paths:
|
129
122
|
- lib
|
130
123
|
required_ruby_version: !ruby/object:Gem::Requirement
|
131
|
-
none: false
|
132
124
|
requirements:
|
133
|
-
- -
|
125
|
+
- - '>='
|
134
126
|
- !ruby/object:Gem::Version
|
135
127
|
version: '0'
|
136
|
-
segments:
|
137
|
-
- 0
|
138
|
-
hash: 337803498416043764
|
139
128
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
140
|
-
none: false
|
141
129
|
requirements:
|
142
|
-
- -
|
130
|
+
- - '>='
|
143
131
|
- !ruby/object:Gem::Version
|
144
132
|
version: 1.3.6
|
145
133
|
requirements: []
|
146
134
|
rubyforge_project: flash_render
|
147
|
-
rubygems_version:
|
135
|
+
rubygems_version: 2.0.5
|
148
136
|
signing_key:
|
149
|
-
specification_version:
|
137
|
+
specification_version: 4
|
150
138
|
summary: Updates render to use flashes like redirect_to
|
151
139
|
test_files: []
|
data/Gemfile.lock
DELETED
@@ -1,96 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
flash_render (1.1.0)
|
5
|
-
rails (>= 2.3.8)
|
6
|
-
|
7
|
-
GEM
|
8
|
-
remote: https://rubygems.org/
|
9
|
-
specs:
|
10
|
-
actionmailer (3.2.13)
|
11
|
-
actionpack (= 3.2.13)
|
12
|
-
mail (~> 2.5.3)
|
13
|
-
actionpack (3.2.13)
|
14
|
-
activemodel (= 3.2.13)
|
15
|
-
activesupport (= 3.2.13)
|
16
|
-
builder (~> 3.0.0)
|
17
|
-
erubis (~> 2.7.0)
|
18
|
-
journey (~> 1.0.4)
|
19
|
-
rack (~> 1.4.5)
|
20
|
-
rack-cache (~> 1.2)
|
21
|
-
rack-test (~> 0.6.1)
|
22
|
-
sprockets (~> 2.2.1)
|
23
|
-
activemodel (3.2.13)
|
24
|
-
activesupport (= 3.2.13)
|
25
|
-
builder (~> 3.0.0)
|
26
|
-
activerecord (3.2.13)
|
27
|
-
activemodel (= 3.2.13)
|
28
|
-
activesupport (= 3.2.13)
|
29
|
-
arel (~> 3.0.2)
|
30
|
-
tzinfo (~> 0.3.29)
|
31
|
-
activeresource (3.2.13)
|
32
|
-
activemodel (= 3.2.13)
|
33
|
-
activesupport (= 3.2.13)
|
34
|
-
activesupport (3.2.13)
|
35
|
-
i18n (= 0.6.1)
|
36
|
-
multi_json (~> 1.0)
|
37
|
-
arel (3.0.2)
|
38
|
-
builder (3.0.4)
|
39
|
-
erubis (2.7.0)
|
40
|
-
hike (1.2.2)
|
41
|
-
i18n (0.6.1)
|
42
|
-
journey (1.0.4)
|
43
|
-
json (1.8.0)
|
44
|
-
mail (2.5.4)
|
45
|
-
mime-types (~> 1.16)
|
46
|
-
treetop (~> 1.4.8)
|
47
|
-
mime-types (1.23)
|
48
|
-
multi_json (1.7.4)
|
49
|
-
polyglot (0.3.3)
|
50
|
-
rack (1.4.5)
|
51
|
-
rack-cache (1.2)
|
52
|
-
rack (>= 0.4)
|
53
|
-
rack-ssl (1.3.3)
|
54
|
-
rack
|
55
|
-
rack-test (0.6.2)
|
56
|
-
rack (>= 1.0)
|
57
|
-
rails (3.2.13)
|
58
|
-
actionmailer (= 3.2.13)
|
59
|
-
actionpack (= 3.2.13)
|
60
|
-
activerecord (= 3.2.13)
|
61
|
-
activeresource (= 3.2.13)
|
62
|
-
activesupport (= 3.2.13)
|
63
|
-
bundler (~> 1.0)
|
64
|
-
railties (= 3.2.13)
|
65
|
-
railties (3.2.13)
|
66
|
-
actionpack (= 3.2.13)
|
67
|
-
activesupport (= 3.2.13)
|
68
|
-
rack-ssl (~> 1.3.2)
|
69
|
-
rake (>= 0.8.7)
|
70
|
-
rdoc (~> 3.4)
|
71
|
-
thor (>= 0.14.6, < 2.0)
|
72
|
-
rake (10.0.4)
|
73
|
-
rdoc (3.12.2)
|
74
|
-
json (~> 1.4)
|
75
|
-
redgreen (1.2.2)
|
76
|
-
sprockets (2.2.2)
|
77
|
-
hike (~> 1.2)
|
78
|
-
multi_json (~> 1.0)
|
79
|
-
rack (~> 1.0)
|
80
|
-
tilt (~> 1.1, != 1.3.0)
|
81
|
-
sqlite3 (1.3.7)
|
82
|
-
thor (0.18.1)
|
83
|
-
tilt (1.4.1)
|
84
|
-
treetop (1.4.12)
|
85
|
-
polyglot
|
86
|
-
polyglot (>= 0.3.1)
|
87
|
-
tzinfo (0.3.37)
|
88
|
-
|
89
|
-
PLATFORMS
|
90
|
-
ruby
|
91
|
-
|
92
|
-
DEPENDENCIES
|
93
|
-
bundler (>= 1.0.0.rc.5)
|
94
|
-
flash_render!
|
95
|
-
redgreen
|
96
|
-
sqlite3
|