rails_layout 0.5.9 → 0.5.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.textile +5 -0
- data/lib/generators/layout/templates/foundation4-messages.html.slim +2 -2
- data/lib/generators/layout/templates/foundation5-messages.html.slim +3 -3
- data/lib/generators/navigation/navigation_generator.rb +3 -3
- data/lib/rails_layout/version.rb +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47a7bc50c441a4d8e23a26cdf67692269e6fe8d6
|
4
|
+
data.tar.gz: 2a9e510a5fe0cbca6ad4584cf066cf5dd275cea3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfb8a26d8bfd5fd4cb3f45fe67e4fb038e1aaa0ed932183809fe476902a35a1c6be32335a3a4801f88bf4af416258aeb8a668d02d36aae90f8647379e61c15a8
|
7
|
+
data.tar.gz: c6413632fd4a0bdb2f4264ec2917cba7ced6fa1d43b04b84c616e17f5f5eddbc7e74e8cbde0e8d4f898526f343f371ed2e2ae25dc04c44d8bc73a95235c5f524
|
data/CHANGELOG.textile
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
h1. CHANGELOG
|
2
2
|
|
3
|
+
h3. 0.5.10 January 1, 2014
|
4
|
+
|
5
|
+
* add Devise navigation links for Haml or Slim (contributed by Brad Carson)
|
6
|
+
* fix formatting of flash message alert box for Slim (contributed by Brad Carson)
|
7
|
+
|
3
8
|
h3. 0.5.9 December 26, 2013
|
4
9
|
|
5
10
|
* fix error in slim templates for doctype (contributed by ayamomiji)
|
@@ -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 == :notice ? "success" : "alert"}" data-alert]
|
5
5
|
= content_tag :div, msg
|
6
|
-
|
7
|
-
|
6
|
+
a.close[href="#"]
|
7
|
+
| ×
|
@@ -15,7 +15,7 @@ module Navigation
|
|
15
15
|
# CONTACT
|
16
16
|
append_file 'app/views/layouts/_navigation_links.html.erb', "<li><%= link_to 'Contact', new_contact_path %></li>\n" if File.exists?("app/views/contacts/new.html.#{ext}")
|
17
17
|
# DEVISE LOGIN and LOGOUT
|
18
|
-
if
|
18
|
+
if Dir.glob("app/views/devise/sessions/new.html.{#{ext},erb}").any?
|
19
19
|
append_file 'app/views/layouts/_navigation_links.html.erb' do <<-LINKS
|
20
20
|
<% if user_signed_in? %>
|
21
21
|
<li><%= link_to 'Logout', destroy_user_session_path, :method=>'delete' %></li>
|
@@ -26,7 +26,7 @@ LINKS
|
|
26
26
|
end
|
27
27
|
end
|
28
28
|
# DEVISE SIGN UP
|
29
|
-
if
|
29
|
+
if Dir.glob("app/views/devise/registrations/new.html.{#{ext},erb}").any?
|
30
30
|
append_file 'app/views/layouts/_navigation_links.html.erb' do <<-LINKS
|
31
31
|
<% if user_signed_in? %>
|
32
32
|
<li><%= link_to 'Edit account', edit_user_registration_path %></li>
|
@@ -37,7 +37,7 @@ LINKS
|
|
37
37
|
end
|
38
38
|
end
|
39
39
|
# ADMIN LINK
|
40
|
-
if
|
40
|
+
if Dir.glob("app/views/users/index.html.{#{ext},erb}").any?
|
41
41
|
append_file 'app/views/layouts/_navigation_links.html.erb' do <<-LINKS
|
42
42
|
<% if user_signed_in? %>
|
43
43
|
<% if current_user.has_role? :admin %>
|
data/lib/rails_layout/version.rb
CHANGED
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_layout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Kehoe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.3'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
description: Generates Rails application layout files for use with various front-end
|
@@ -46,7 +46,7 @@ executables: []
|
|
46
46
|
extensions: []
|
47
47
|
extra_rdoc_files: []
|
48
48
|
files:
|
49
|
-
- .gitignore
|
49
|
+
- ".gitignore"
|
50
50
|
- CHANGELOG.textile
|
51
51
|
- Gemfile
|
52
52
|
- LICENSE.txt
|
@@ -130,17 +130,17 @@ require_paths:
|
|
130
130
|
- lib
|
131
131
|
required_ruby_version: !ruby/object:Gem::Requirement
|
132
132
|
requirements:
|
133
|
-
- -
|
133
|
+
- - ">="
|
134
134
|
- !ruby/object:Gem::Version
|
135
135
|
version: '0'
|
136
136
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
137
137
|
requirements:
|
138
|
-
- -
|
138
|
+
- - ">="
|
139
139
|
- !ruby/object:Gem::Version
|
140
140
|
version: '0'
|
141
141
|
requirements: []
|
142
142
|
rubyforge_project:
|
143
|
-
rubygems_version: 2.
|
143
|
+
rubygems_version: 2.2.0
|
144
144
|
signing_key:
|
145
145
|
specification_version: 4
|
146
146
|
summary: Rails generator creates application layout files for Bootstrap and other
|