bootstrap-rails-flash 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/bootstrap_rails_flash.rb +3 -2
- data/lib/{application_helper.rb → bootstrap_rails_flash/application_helper.rb} +1 -1
- data/lib/bootstrap_rails_flash/bootstrap_helper.rb +21 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/log/development.log +192 -0
- data/test/dummy/log/test.log +21 -690
- data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/166b59364f163b12a7bdd7b1ebaba578 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5ee5f7991cf019a63fddbff773165546 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/749438982468e8163222cb076926aeef +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/75c44f500e9640bb837517858e4e4b55 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/88a727f64606316cf6a31e02023ddc52 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d91b21f330b02be1b32de21393a7ba5b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/5ee5f7991cf019a63fddbff773165546 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/75c44f500e9640bb837517858e4e4b55 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/88a727f64606316cf6a31e02023ddc52 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d91b21f330b02be1b32de21393a7ba5b +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/helpers/bootstrap_helper_test.rb +1 -1
- metadata +49 -5
- data/lib/bootstrap_helper.rb +0 -19
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootstrap-rails-flash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Georg Schlenkhoff
|
@@ -15,6 +15,9 @@ dependencies:
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '4.1'
|
20
|
+
- - ">="
|
18
21
|
- !ruby/object:Gem::Version
|
19
22
|
version: 4.1.1
|
20
23
|
type: :runtime
|
@@ -22,6 +25,9 @@ dependencies:
|
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '4.1'
|
30
|
+
- - ">="
|
25
31
|
- !ruby/object:Gem::Version
|
26
32
|
version: 4.1.1
|
27
33
|
- !ruby/object:Gem::Dependency
|
@@ -29,6 +35,9 @@ dependencies:
|
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
37
|
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '4.0'
|
40
|
+
- - ">="
|
32
41
|
- !ruby/object:Gem::Version
|
33
42
|
version: 4.0.5
|
34
43
|
type: :runtime
|
@@ -36,22 +45,31 @@ dependencies:
|
|
36
45
|
version_requirements: !ruby/object:Gem::Requirement
|
37
46
|
requirements:
|
38
47
|
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '4.0'
|
50
|
+
- - ">="
|
39
51
|
- !ruby/object:Gem::Version
|
40
52
|
version: 4.0.5
|
41
53
|
- !ruby/object:Gem::Dependency
|
42
54
|
name: sqlite3
|
43
55
|
requirement: !ruby/object:Gem::Requirement
|
44
56
|
requirements:
|
57
|
+
- - "~>"
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: 1.3.9
|
45
60
|
- - ">="
|
46
61
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
62
|
+
version: 1.3.9
|
48
63
|
type: :runtime
|
49
64
|
prerelease: false
|
50
65
|
version_requirements: !ruby/object:Gem::Requirement
|
51
66
|
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 1.3.9
|
52
70
|
- - ">="
|
53
71
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
72
|
+
version: 1.3.9
|
55
73
|
description: bootstrap-rails-flash is an extension for Bootstrap 3 to format Rails
|
56
74
|
flash messages
|
57
75
|
email:
|
@@ -63,9 +81,9 @@ files:
|
|
63
81
|
- MIT-LICENSE
|
64
82
|
- Rakefile
|
65
83
|
- app/views/shared/_flash_messages.html.haml
|
66
|
-
- lib/application_helper.rb
|
67
|
-
- lib/bootstrap_helper.rb
|
68
84
|
- lib/bootstrap_rails_flash.rb
|
85
|
+
- lib/bootstrap_rails_flash/application_helper.rb
|
86
|
+
- lib/bootstrap_rails_flash/bootstrap_helper.rb
|
69
87
|
- lib/generators/bootstrap_rails_flash/install_generator.rb
|
70
88
|
- test/controllers/messages_controller_test.rb
|
71
89
|
- test/dummy/README.rdoc
|
@@ -102,6 +120,7 @@ files:
|
|
102
120
|
- test/dummy/config/locales/en.yml
|
103
121
|
- test/dummy/config/routes.rb
|
104
122
|
- test/dummy/config/secrets.yml
|
123
|
+
- test/dummy/db/development.sqlite3
|
105
124
|
- test/dummy/db/test.sqlite3
|
106
125
|
- test/dummy/log/development.log
|
107
126
|
- test/dummy/log/test.log
|
@@ -109,6 +128,18 @@ files:
|
|
109
128
|
- test/dummy/public/422.html
|
110
129
|
- test/dummy/public/500.html
|
111
130
|
- test/dummy/public/favicon.ico
|
131
|
+
- test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
|
132
|
+
- test/dummy/tmp/cache/assets/development/sprockets/166b59364f163b12a7bdd7b1ebaba578
|
133
|
+
- test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
134
|
+
- test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953
|
135
|
+
- test/dummy/tmp/cache/assets/development/sprockets/5ee5f7991cf019a63fddbff773165546
|
136
|
+
- test/dummy/tmp/cache/assets/development/sprockets/749438982468e8163222cb076926aeef
|
137
|
+
- test/dummy/tmp/cache/assets/development/sprockets/75c44f500e9640bb837517858e4e4b55
|
138
|
+
- test/dummy/tmp/cache/assets/development/sprockets/88a727f64606316cf6a31e02023ddc52
|
139
|
+
- test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994
|
140
|
+
- test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
141
|
+
- test/dummy/tmp/cache/assets/development/sprockets/d91b21f330b02be1b32de21393a7ba5b
|
142
|
+
- test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
112
143
|
- test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
|
113
144
|
- test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
114
145
|
- test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
|
@@ -180,6 +211,7 @@ test_files:
|
|
180
211
|
- test/dummy/config/routes.rb
|
181
212
|
- test/dummy/config/secrets.yml
|
182
213
|
- test/dummy/config.ru
|
214
|
+
- test/dummy/db/development.sqlite3
|
183
215
|
- test/dummy/db/test.sqlite3
|
184
216
|
- test/dummy/log/development.log
|
185
217
|
- test/dummy/log/test.log
|
@@ -189,6 +221,18 @@ test_files:
|
|
189
221
|
- test/dummy/public/favicon.ico
|
190
222
|
- test/dummy/Rakefile
|
191
223
|
- test/dummy/README.rdoc
|
224
|
+
- test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
|
225
|
+
- test/dummy/tmp/cache/assets/development/sprockets/166b59364f163b12a7bdd7b1ebaba578
|
226
|
+
- test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
227
|
+
- test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953
|
228
|
+
- test/dummy/tmp/cache/assets/development/sprockets/5ee5f7991cf019a63fddbff773165546
|
229
|
+
- test/dummy/tmp/cache/assets/development/sprockets/749438982468e8163222cb076926aeef
|
230
|
+
- test/dummy/tmp/cache/assets/development/sprockets/75c44f500e9640bb837517858e4e4b55
|
231
|
+
- test/dummy/tmp/cache/assets/development/sprockets/88a727f64606316cf6a31e02023ddc52
|
232
|
+
- test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994
|
233
|
+
- test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
234
|
+
- test/dummy/tmp/cache/assets/development/sprockets/d91b21f330b02be1b32de21393a7ba5b
|
235
|
+
- test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
192
236
|
- test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
|
193
237
|
- test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
194
238
|
- test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
|
data/lib/bootstrap_helper.rb
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
module BootstrapHelper
|
2
|
-
|
3
|
-
# Return Bootstrap class type for flash type
|
4
|
-
def bootstrap_class_for(flash_type)
|
5
|
-
case flash_type
|
6
|
-
when 'success'
|
7
|
-
'alert-success' # Green
|
8
|
-
when 'error'
|
9
|
-
'alert-danger' # Red
|
10
|
-
when 'alert'
|
11
|
-
'alert-warning' # Yellow
|
12
|
-
when 'notice'
|
13
|
-
'alert-info' # Blue
|
14
|
-
else
|
15
|
-
flash_type.to_s
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
end
|