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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9535e78db4cb9484af2b6a0d792ac14c42fbfb01
4
- data.tar.gz: 0d23784ec670c813f138f54d6e41a73516bc39d4
3
+ metadata.gz: 1cb7b4766d19222f121ae51face9907e4ce5c0d8
4
+ data.tar.gz: 44d0c644bd4f4b3a8c44a23eed51d729d1b60c51
5
5
  SHA512:
6
- metadata.gz: dee0d5b4e3f0a9352292f18b99f2172d697ae616bcfb2da8c139b2ec2bfd8dc6f729ca5d9040baa58c55ba38709271df5909ba5bfd8ca2a051ac6f2e2d18562b
7
- data.tar.gz: 80bb0e8845afffd488adac1c67444f5e9cf355b6c37c5e74891abcf516caa40b02e9c0ad0cfe2947ba0f9bd4e7e034c29875862c5614fa9e1bb6989801e4a14a
6
+ metadata.gz: 57dca4a59d9c9dbdb0330673fd6336a353255826c707185cf33fecfb5ccd4bf7075974f0949a0fca35e6081096ff08ddf9c8dc88d955a932014c55b65237f071
7
+ data.tar.gz: 0a3f99547f52742ed8cae3224e268193229e42da0d5bb1fa56cb0b9713e983b7aadf7b8b041fb6afda1fc289fe1ac9ecb3c7a0c098bb2a58dfe3d85c1f7e72eb
@@ -1,3 +1,3 @@
1
1
  module RailsUtils
2
- VERSION = "3.1.0"
2
+ VERSION = "3.1.1"
3
3
  end
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
@@ -4,7 +4,6 @@ require File.expand_path('../boot', __FILE__)
4
4
  # require "active_record/railtie"
5
5
  require "action_controller/railtie"
6
6
  require "action_mailer/railtie"
7
- require "active_resource/railtie"
8
7
  # require "sprockets/railtie"
9
8
  require "rails/test_unit/railtie"
10
9
 
@@ -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.0
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-14 00:00:00.000000000 Z
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.0.6
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.