rails_layout 0.5.7 → 0.5.8

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: e06e3fe9d5d9d363a177913886e0ff652f9899ad
4
- data.tar.gz: a0893c3edeb60f1a19c58cd48e02efe5f7816a6c
3
+ metadata.gz: 3ff73fe74e9a3f956ecd84815ebea2bf4853fcf0
4
+ data.tar.gz: 1b7fd685c1da4872d3759f3a498af6531e0e4324
5
5
  SHA512:
6
- metadata.gz: dffa2f15b906234daa51120a99248e2ebc450908dc4516ad0a7fccd6a6e2d795a25ccbb7b9faa574c31bbfb4cf42b06f596e90a5945f322322fbcee7c1f3bf05
7
- data.tar.gz: 80f0d4898c0c9e3128bca01e7cd6fcc0ecd045b37a11bad1b60a8869a819d1e7b585a818b7af04289f05d53ca567ab7080ee4e2b51b0eb7eec4fb6ba6c478602
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 Haml
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', '~> 2.0.alpha.0'
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) : "#{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"
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) : 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
@@ -1,3 +1,3 @@
1
1
  module RailsLayout
2
- VERSION = "0.5.7"
2
+ VERSION = "0.5.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_layout
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.7
4
+ version: 0.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Kehoe