rails_layout 0.2.0 → 0.2.1
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 +4 -0
- data/README.textile +6 -6
- data/lib/generators/layout/layout_generator.rb +6 -0
- data/lib/rails_layout/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e4a9affc3591e1c1eeef977c0ae1c23317f9bc6
|
4
|
+
data.tar.gz: 32030f79f72ca953fe3ab89217ad7476a00fe0fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35aba628ba7f072062d3ed4bd629db4a468f645d8baf4ea499a6f25067f4f804aee02680337e6ac81bfab4b7e616d051071a199c3d5309e4f37eecd2b658b2b4
|
7
|
+
data.tar.gz: f27d137ddac4973d8d9382b51df5974d865b5adea7b8e89651100c01fb86bcff3191e8099e26f5afe025e062b91ae9418c43b3c71dd3eb06bac222d52706597f
|
data/CHANGELOG.textile
CHANGED
data/README.textile
CHANGED
@@ -175,11 +175,11 @@ See the files that are generated:
|
|
175
175
|
|
176
176
|
The RailsLayout gem will create the file:
|
177
177
|
|
178
|
-
* "app/assets/stylesheets/bootstrap_and_overrides.css.scss":https://github.com/RailsApps/rails_layout/blob/master/lib/generators/layout/bootstrap2_and_overrides.css.scss
|
178
|
+
* "app/assets/stylesheets/bootstrap_and_overrides.css.scss":https://github.com/RailsApps/rails_layout/blob/master/lib/generators/layout/templates/bootstrap2_and_overrides.css.scss
|
179
179
|
|
180
180
|
and modify the file:
|
181
181
|
|
182
|
-
* "app/assets/javascripts/application.js":https://github.com/RailsApps/rails_layout/blob/master/lib/generators/layout/bootstrap-application.js
|
182
|
+
* "app/assets/javascripts/application.js":https://github.com/RailsApps/rails_layout/blob/master/lib/generators/layout/templates/bootstrap-application.js
|
183
183
|
|
184
184
|
h2. Twitter Bootstrap 3.0 Layout
|
185
185
|
|
@@ -203,11 +203,11 @@ See the files that are generated:
|
|
203
203
|
|
204
204
|
The RailsLayout gem will create the file:
|
205
205
|
|
206
|
-
* "app/assets/stylesheets/bootstrap_and_overrides.css.scss":https://github.com/RailsApps/rails_layout/blob/master/lib/generators/layout/bootstrap3_and_overrides.css.scss
|
206
|
+
* "app/assets/stylesheets/bootstrap_and_overrides.css.scss":https://github.com/RailsApps/rails_layout/blob/master/lib/generators/layout/templates/bootstrap3_and_overrides.css.scss
|
207
207
|
|
208
208
|
and modify the file:
|
209
209
|
|
210
|
-
* "app/assets/javascripts/application.js":https://github.com/RailsApps/rails_layout/blob/master/lib/generators/layout/bootstrap-application.js
|
210
|
+
* "app/assets/javascripts/application.js":https://github.com/RailsApps/rails_layout/blob/master/lib/generators/layout/templates/bootstrap-application.js
|
211
211
|
|
212
212
|
h2. Zurb Foundation 4.0 Layout
|
213
213
|
|
@@ -231,11 +231,11 @@ See the files that are generated:
|
|
231
231
|
|
232
232
|
The RailsLayout gem will create the file:
|
233
233
|
|
234
|
-
* "app/assets/stylesheets/foundation_and_overrides.css.scss":https://github.com/RailsApps/rails_layout/blob/master/lib/generators/layout/foundation_and_overrides.css.scss
|
234
|
+
* "app/assets/stylesheets/foundation_and_overrides.css.scss":https://github.com/RailsApps/rails_layout/blob/master/lib/generators/layout/templates/foundation_and_overrides.css.scss
|
235
235
|
|
236
236
|
and modify the file:
|
237
237
|
|
238
|
-
* "app/assets/javascripts/application.js":https://github.com/RailsApps/rails_layout/blob/master/lib/generators/layout/foundation4-application.js
|
238
|
+
* "app/assets/javascripts/application.js":https://github.com/RailsApps/rails_layout/blob/master/lib/generators/layout/templates/foundation4-application.js
|
239
239
|
|
240
240
|
h2. Reverting to None
|
241
241
|
|
@@ -39,6 +39,9 @@ module Layout
|
|
39
39
|
remove_file 'app/assets/stylesheets/simple.css'
|
40
40
|
remove_file 'app/assets/stylesheets/bootstrap_and_overrides.css.scss'
|
41
41
|
end
|
42
|
+
if Rails::VERSION::MAJOR.to_s == "3"
|
43
|
+
gsub_file 'app/assets/javascripts/application.js', /\/\/= require turbolinks\n/, ''
|
44
|
+
end
|
42
45
|
end
|
43
46
|
|
44
47
|
# Create an application layout file with partials for messages and navigation
|
@@ -47,6 +50,9 @@ module Layout
|
|
47
50
|
@app_name = app.class.to_s.split("::").first
|
48
51
|
ext = app.config.generators.options[:rails][:template_engine] || :erb
|
49
52
|
template "#{framework_name}-application.html.#{ext}", "app/views/layouts/application.html.#{ext}"
|
53
|
+
if Rails::VERSION::MAJOR.to_s == "3"
|
54
|
+
gsub_file "app/views/layouts/application.html.#{ext}", /, "data-turbolinks-track" => true/, ''
|
55
|
+
end
|
50
56
|
if framework_name == 'none'
|
51
57
|
remove_file "app/views/layouts/_messages.html.#{ext}"
|
52
58
|
remove_file "app/views/layouts/_navigation.html.#{ext}"
|
data/lib/rails_layout/version.rb
CHANGED
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: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Kehoe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|