rails_layout 0.5.7 → 0.5.8
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/CHANGELOG.textile +5 -0
- data/README.textile +3 -3
- data/lib/generators/layout/layout_generator.rb +1 -0
- data/lib/generators/layout/templates/bootstrap2-application.html.slim +2 -2
- data/lib/generators/layout/templates/bootstrap3-application.html.slim +2 -2
- data/lib/generators/layout/templates/foundation4-application.html.slim +2 -2
- data/lib/generators/layout/templates/foundation5-application.html.slim +2 -2
- data/lib/generators/layout/templates/simple-application.html.slim +2 -2
- data/lib/rails_layout/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ff73fe74e9a3f956ecd84815ebea2bf4853fcf0
|
4
|
+
data.tar.gz: 1b7fd685c1da4872d3759f3a498af6531e0e4324
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10c71c0cca3d6e94b56351385e501d5a392463180e0cb087a6859990d70f3f71b9a81a61ae6562afce58fd89fa0867e416cc6c86739834c8944596a80109744b
|
7
|
+
data.tar.gz: b9465e1efb81d288cca6d1eeb49a8d021211d7b3144487a64ac0a269b2553b55ac81fcd5c6b5a61016cb31aea3e6fda2b476fe7eb0f2093754c8cf840f9d50fa
|
data/CHANGELOG.textile
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
h1. CHANGELOG
|
2
2
|
|
3
|
+
h3. 0.5.8 December 15, 2013
|
4
|
+
|
5
|
+
* remove 'app/views/layouts/application.html.erb' file before creating a new one
|
6
|
+
* fix error in slim templates for 'app_name.underscore.titleize'
|
7
|
+
|
3
8
|
h3. 0.5.7 December 15, 2013
|
4
9
|
|
5
10
|
* add Slim templates (contributed by benedictleejh)
|
data/README.textile
CHANGED
@@ -65,11 +65,11 @@ The first file contains no framework-specific styling. It is only a list of link
|
|
65
65
|
|
66
66
|
The second file contains framework-specific styling.
|
67
67
|
|
68
|
-
h4. Support for ERB or
|
68
|
+
h4. Support for ERB, Haml, or Slim
|
69
69
|
|
70
70
|
If you are using ERB for Rails views, the RailsLayout gem will generate ERB files.
|
71
71
|
|
72
|
-
If you are using Haml, the RailsLayout gem will generate Haml files instead.
|
72
|
+
If you are using Haml or Slim, the RailsLayout gem will generate Haml or Slim files instead.
|
73
73
|
|
74
74
|
h4. Rails Composer
|
75
75
|
|
@@ -110,7 +110,7 @@ gem 'bootstrap-sass'
|
|
110
110
|
h4. Zurb Foundation 4.0
|
111
111
|
|
112
112
|
<pre>
|
113
|
-
gem 'compass-rails'
|
113
|
+
gem 'compass-rails'
|
114
114
|
gem 'zurb-foundation'
|
115
115
|
</pre>
|
116
116
|
|
@@ -56,6 +56,7 @@ module Layout
|
|
56
56
|
app = ::Rails.application
|
57
57
|
@app_name = app.class.to_s.split("::").first
|
58
58
|
ext = app.config.generators.options[:rails][:template_engine] || :erb
|
59
|
+
remove_file 'app/views/layouts/application.html.erb'
|
59
60
|
template "#{framework_name}-application.html.#{ext}", "app/views/layouts/application.html.#{ext}"
|
60
61
|
if Rails::VERSION::MAJOR.to_s == "3"
|
61
62
|
gsub_file "app/views/layouts/application.html.#{ext}", /, "data-turbolinks-track" => true/, ''
|
@@ -3,8 +3,8 @@ html
|
|
3
3
|
head
|
4
4
|
meta[name="viewport" content="width=device-width, initial-scale=1.0"]
|
5
5
|
title
|
6
|
-
= content_for?(:title) ? yield(:title) : app_name.underscore.titleize
|
7
|
-
meta name="description" content="#{content_for?(:description) ? yield(:description) : app_name.underscore.titleize}"
|
6
|
+
= content_for?(:title) ? yield(:title) : '<%= app_name.underscore.titleize %>'
|
7
|
+
meta name="description" content="#{content_for?(:description) ? yield(:description) : '<%= app_name.underscore.titleize %>'}"
|
8
8
|
== stylesheet_link_tag "application", :media => "all", "data-turbolinks-track" => true
|
9
9
|
== javascript_include_tag "application", "data-turbolinks-track" => true
|
10
10
|
== csrf_meta_tags
|
@@ -3,8 +3,8 @@ html
|
|
3
3
|
head
|
4
4
|
meta[name="viewport" content="width=device-width, initial-scale=1.0"]
|
5
5
|
title
|
6
|
-
= content_for?(:title) ? yield(:title) : app_name.underscore.titleize
|
7
|
-
meta name="description" content="#{content_for?(:description) ? yield(:description) : app_name.underscore.titleize}"
|
6
|
+
= content_for?(:title) ? yield(:title) : '<%= app_name.underscore.titleize %>'
|
7
|
+
meta name="description" content="#{content_for?(:description) ? yield(:description) : '<%= app_name.underscore.titleize %>'}"
|
8
8
|
== stylesheet_link_tag "application", :media => "all", "data-turbolinks-track" => true
|
9
9
|
== javascript_include_tag "application", "data-turbolinks-track" => true
|
10
10
|
== csrf_meta_tags
|
@@ -3,8 +3,8 @@ html
|
|
3
3
|
head
|
4
4
|
meta[name="viewport" content="width=device-width, initial-scale=1.0"]
|
5
5
|
title
|
6
|
-
= content_for?(:title) ? yield(:title) : app_name.underscore.titleize
|
7
|
-
meta name="description" content="#{content_for?(:description) ? yield(:description) : app_name.underscore.titleize}"
|
6
|
+
= content_for?(:title) ? yield(:title) : '<%= app_name.underscore.titleize %>'
|
7
|
+
meta name="description" content="#{content_for?(:description) ? yield(:description) : '<%= app_name.underscore.titleize %>'}"
|
8
8
|
== stylesheet_link_tag "application", :media => "all", "data-turbolinks-track" => true
|
9
9
|
/ Modernizr is required for Zurb Foundation
|
10
10
|
== javascript_include_tag "vendor/custom.modernizr"
|
@@ -3,8 +3,8 @@ html
|
|
3
3
|
head
|
4
4
|
meta[name="viewport" content="width=device-width, initial-scale=1.0"]
|
5
5
|
title
|
6
|
-
= content_for?(:title) ? yield(:title) :
|
7
|
-
meta name="description" content="#{content_for?(:description) ? yield(:description) : app_name.underscore.titleize}"
|
6
|
+
= content_for?(:title) ? yield(:title) : '<%= app_name.underscore.titleize %>'
|
7
|
+
meta name="description" content="#{content_for?(:description) ? yield(:description) : '<%= app_name.underscore.titleize %>'}"
|
8
8
|
= stylesheet_link_tag "application"
|
9
9
|
/ Foundation 5 won't work with Rails Turbolinks
|
10
10
|
/ Modernizr is required for Zurb Foundation
|
@@ -3,8 +3,8 @@ html
|
|
3
3
|
head
|
4
4
|
meta[name="viewport" content="width=device-width, initial-scale=1.0"]
|
5
5
|
title
|
6
|
-
= content_for?(:title) ? yield(:title) :
|
7
|
-
meta name="description" content="#{content_for?(:description) ? yield(:description) : app_name.underscore.titleize}"
|
6
|
+
= content_for?(:title) ? yield(:title) : '<%= app_name.underscore.titleize %>'
|
7
|
+
meta name="description" content="#{content_for?(:description) ? yield(:description) : '<%= app_name.underscore.titleize %>'}"
|
8
8
|
== stylesheet_link_tag "application", :media => "all", "data-turbolinks-track" => true
|
9
9
|
== javascript_include_tag "application", "data-turbolinks-track" => true
|
10
10
|
== csrf_meta_tags
|
data/lib/rails_layout/version.rb
CHANGED