rails_layout 1.0.8 → 1.0.9

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: 3a34977f189247017c4024017cad732c4e1ba486
4
- data.tar.gz: 5cdd77e8427c3938e8314d1fa71ee426f9cf081d
3
+ metadata.gz: 3986f9f58ac9d6e39feb899b8ad778421ba8141c
4
+ data.tar.gz: 5fb9fa2880c0e274b0887675787224c167a98cc6
5
5
  SHA512:
6
- metadata.gz: 4fa7173a4fbc11bc09a0b9940a06ad648884dfeaf59f016969651715af7d92b5a04db2c179eec52db074f9ce239f72341e85f11386fcffc1efbe2ac8be93d628
7
- data.tar.gz: 6ccc8b3c0741d70514b8a2fa7ffcc5f26f375bac977016db1b967500565bcbe943ee087ffcb0e9226b7fefad788f013787acc21b2c3492677854fe5c59c8f224
6
+ metadata.gz: aa2f2fd55ae5e2ccf77f46b6b9bed496f0385bd7d8f664b76913529f7f049bc95d3618af9cbcf3f59ea504e9b120bfe9ff1ac14fe35ed95e24b729236f265b49
7
+ data.tar.gz: 280e8e723005dddc1731d1a69a75df509e21b050f3f1a5d61efa043b655860244046d9bad6ca75daf7a7de31b45ef7cf02ba09ba49000c41b565a83174af28d8
data/CHANGELOG.textile CHANGED
@@ -1,5 +1,9 @@
1
1
  h1. CHANGELOG
2
2
 
3
+ h3. 1.0.9 February 28, 2014
4
+
5
+ * fix wrong color for flash messages under Rails 4.1 (fixes #16)
6
+
3
7
  h3. 1.0.8 February 24, 2014
4
8
 
5
9
  * add 'name' field to Devise registration forms if 'name' is an attribute in the User object
@@ -1,7 +1,7 @@
1
1
  <%# Rails flash messages styled for Bootstrap 2.3 %>
2
2
  <% flash.each do |name, msg| %>
3
3
  <% if msg.is_a?(String) %>
4
- <div class="alert alert-<%= name == :notice ? "success" : "error" %>">
4
+ <div class="alert alert-<%= name.to_s == 'notice' ? "success" : "error" %>">
5
5
  <a class="close" data-dismiss="alert">&times;</a>
6
6
  <%= content_tag :div, msg, :id => "flash_#{name}" %>
7
7
  </div>
@@ -1,6 +1,6 @@
1
1
  -# Rails flash messages styled for Bootstrap 2.3
2
2
  - flash.each do |name, msg|
3
3
  - if msg.is_a?(String)
4
- %div{:class => "alert alert-#{name == :notice ? "success" : "error"}"}
4
+ %div{:class => "alert alert-#{name.to_s == 'notice' ? "success" : "error"}"}
5
5
  %a.close{"data-dismiss" => "alert"} &times;
6
6
  = content_tag :div, msg, :id => "flash_#{name}"
@@ -1,7 +1,7 @@
1
1
  / Rails flash messages styled for Bootstrap 2.3
2
2
  - flash.each do |name, msg|
3
3
  - if msg.is_a?(String)
4
- div class="alert alert-#{name == :notice ? "success" : "error"}"
4
+ div class="alert alert-#{name.to_s == 'notice' ? "success" : "error"}"
5
5
  a.close[data-dismiss="alert"]
6
6
  | ×
7
7
  = content_tag :div, msg, :id => "flash_#{name}"
@@ -1,7 +1,7 @@
1
1
  <%# Rails flash messages styled for Bootstrap 3.0 %>
2
2
  <% flash.each do |name, msg| %>
3
3
  <% if msg.is_a?(String) %>
4
- <div class="alert alert-<%= name == :notice ? "success" : "danger" %>">
4
+ <div class="alert alert-<%= name.to_s == 'notice' ? 'success' : 'danger' %>">
5
5
  <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
6
6
  <%= content_tag :div, msg, :id => "flash_#{name}" %>
7
7
  </div>
@@ -1,6 +1,6 @@
1
1
  -# Rails flash messages styled for Bootstrap 3.0
2
2
  - flash.each do |name, msg|
3
3
  - if msg.is_a?(String)
4
- %div{:class => "alert alert-#{name == :notice ? "success" : "danger"}"}
4
+ %div{:class => "alert alert-#{name.to_s == 'notice' ? 'success' : 'danger'}"}
5
5
  %button.close{"aria-hidden" => "true", "data-dismiss" => "alert", :type => "button"} &times;
6
6
  = content_tag :div, msg, :id => "flash_#{name}"
@@ -1,6 +1,6 @@
1
1
  / Rails flash messages styled for Bootstrap 3.0
2
2
  - flash.each do |name, msg|
3
3
  - if msg.is_a?(String)
4
- div class="alert alert-#{name == :notice ? "success" : "danger"}"
4
+ div class="alert alert-#{name.to_s == 'notice' ? 'success' : 'danger'}"
5
5
  button.close[type="button" data-dismiss="alert" aria-hidden="true"] ×
6
6
  = content_tag :div, msg, :id => "flash_#{name}"
@@ -1,7 +1,7 @@
1
1
  <%# Rails flash messages styled for Zurb Foundation %>
2
2
  <% flash.each do |name, msg| %>
3
3
  <% if msg.is_a?(String) %>
4
- <div data-alert class="alert-box round <%= name == :notice ? "success" : "alert" %>">
4
+ <div data-alert class="alert-box round <%= name.to_s == 'notice' ? "success" : "alert" %>">
5
5
  <%= content_tag :div, msg %>
6
6
  <a href="#" class="close">&times;</a>
7
7
  </div>
@@ -1,6 +1,6 @@
1
1
  -# Rails flash messages styled for Zurb Foundation
2
2
  - flash.each do |name, msg|
3
3
  - if msg.is_a?(String)
4
- %div{:class => "alert-box round #{name == :notice ? "success" : "alert"}", "data-alert" => ""}
4
+ %div{:class => "alert-box round #{name.to_s == 'notice' ? "success" : "alert"}", "data-alert" => ""}
5
5
  = content_tag :div, msg
6
6
  %a.close{:href => "#"} &times;
@@ -1,7 +1,7 @@
1
1
  / Rails flash messages styled for Zurb Foundation
2
2
  - flash.each do |name, msg|
3
3
  - if msg.is_a?(String)
4
- div[class="alert-box round #{name == :notice ? "success" : "alert"}" data-alert]
4
+ div[class="alert-box round #{name.to_s == 'notice' ? "success" : "alert"}" data-alert]
5
5
  = content_tag :div, msg
6
6
  a.close[href="#"]
7
7
  | ×
@@ -1,7 +1,7 @@
1
1
  <%# Rails flash messages styled for Zurb Foundation %>
2
2
  <% flash.each do |name, msg| %>
3
3
  <% if msg.is_a?(String) %>
4
- <div data-alert class="alert-box round <%= name == :notice ? "success" : "alert" %>">
4
+ <div data-alert class="alert-box round <%= name.to_s == 'notice' ? 'success' : 'alert' %>">
5
5
  <%= content_tag :div, msg %>
6
6
  <a href="#" class="close">&times;</a>
7
7
  </div>
@@ -1,6 +1,6 @@
1
1
  -# Rails flash messages styled for Zurb Foundation
2
2
  - flash.each do |name, msg|
3
3
  - if msg.is_a?(String)
4
- %div{:class => "alert-box round #{name == :notice ? "success" : "alert"}", "data-alert" => ""}
4
+ %div{:class => "alert-box round #{name.to_s == 'notice' ? 'success' : 'alert'}", "data-alert" => ""}
5
5
  = content_tag :div, msg
6
6
  %a.close{:href => "#"} &times;
@@ -1,7 +1,7 @@
1
1
  / Rails flash messages styled for Zurb Foundation
2
2
  - flash.each do |name, msg|
3
3
  - if msg.is_a?(String)
4
- div[class="alert-box round #{name == :notice ? "success" : "alert"}" data-alert]
4
+ div[class="alert-box round #{name.to_s == 'notice' ? 'success' : 'alert'}" data-alert]
5
5
  = content_tag :div, msg
6
6
  a.close[href="#"]
7
7
  | ×
@@ -1,3 +1,3 @@
1
1
  module RailsLayout
2
- VERSION = "1.0.8"
2
+ VERSION = "1.0.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_layout
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Kehoe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-25 00:00:00.000000000 Z
11
+ date: 2014-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler