rails_utils 3.1.0 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rails_utils/version.rb +1 -1
- data/lib/rails_utils.rb +1 -1
- data/test/dummy/config/application.rb +0 -1
- data/test/rails_utils_test.rb +3 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1cb7b4766d19222f121ae51face9907e4ce5c0d8
|
4
|
+
data.tar.gz: 44d0c644bd4f4b3a8c44a23eed51d729d1b60c51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57dca4a59d9c9dbdb0330673fd6336a353255826c707185cf33fecfb5ccd4bf7075974f0949a0fca35e6081096ff08ddf9c8dc88d955a932014c55b65237f071
|
7
|
+
data.tar.gz: 0a3f99547f52742ed8cae3224e268193229e42da0d5bb1fa56cb0b9713e983b7aadf7b8b041fb6afda1fc289fe1ac9ecb3c7a0c098bb2a58dfe3d85c1f7e72eb
|
data/lib/rails_utils/version.rb
CHANGED
data/lib/rails_utils.rb
CHANGED
@@ -31,7 +31,7 @@ module RailsUtils
|
|
31
31
|
html = ""
|
32
32
|
flash.each do |key, message|
|
33
33
|
html <<
|
34
|
-
content_tag(:div, class: "#{flash_class(key)} fade in") do
|
34
|
+
content_tag(:div, class: "#{flash_class(key.to_sym)} fade in") do
|
35
35
|
content = ""
|
36
36
|
content << content_tag(:button, "x", type: "button", class: "close", "data-dismiss" => "alert")
|
37
37
|
content << message
|
data/test/rails_utils_test.rb
CHANGED
@@ -117,9 +117,12 @@ describe "RailsUtils::ActionViewExtensions" do
|
|
117
117
|
[
|
118
118
|
[ :success , /alert alert-success/, "flash is success" ],
|
119
119
|
[ :notice , /alert alert-info/ , "flash is notice" ],
|
120
|
+
[ "notice" , /alert alert-info/ , "flash is notice" ],
|
120
121
|
[ :error , /alert alert-error/ , "flash is error" ],
|
121
122
|
[ :alert , /alert alert-error/ , "flash is alert" ],
|
123
|
+
[ "alert" , /alert alert-error/ , "flash is alert" ],
|
122
124
|
[ :custom , /alert alert-custom/ , "flash is custom" ],
|
125
|
+
[ "custom" , /alert alert-custom/ , "flash is custom" ]
|
123
126
|
].each do |key, expected_class, expected_message|
|
124
127
|
describe "when flash contains #{key} key" do
|
125
128
|
before { set_flash key, expected_message }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Winston Teo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
129
129
|
version: '0'
|
130
130
|
requirements: []
|
131
131
|
rubyforge_project:
|
132
|
-
rubygems_version: 2.
|
132
|
+
rubygems_version: 2.1.9
|
133
133
|
signing_key:
|
134
134
|
specification_version: 4
|
135
135
|
summary: Rails helpers based on opinionated project practices.
|