rails_layout 0.2.0 → 0.2.1

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: 1735089b69e5bdbbbf6974b0ecfa1083a1bf3399
4
- data.tar.gz: 5cd3a05e8202482fffc9a982e60ae5a405ae5ddf
3
+ metadata.gz: 3e4a9affc3591e1c1eeef977c0ae1c23317f9bc6
4
+ data.tar.gz: 32030f79f72ca953fe3ab89217ad7476a00fe0fc
5
5
  SHA512:
6
- metadata.gz: 1a837969224dbc9911ab502808c85100c685642b5040ba7eef83c4300fa1500e95bb29e803d422b6c5346eec14080ca1d0f584ffb57cc959a1c4f800b5d49e1d
7
- data.tar.gz: 98e2c65d8087cbf928d63dd3025b1e303f54150f62c11d70dcd14039135de9572384b88b0824db58ede3406e05b1a59fc30289ee8d7bb04d0dbac8a0f276de8b
6
+ metadata.gz: 35aba628ba7f072062d3ed4bd629db4a468f645d8baf4ea499a6f25067f4f804aee02680337e6ac81bfab4b7e616d051071a199c3d5309e4f37eecd2b658b2b4
7
+ data.tar.gz: f27d137ddac4973d8d9382b51df5974d865b5adea7b8e89651100c01fb86bcff3191e8099e26f5afe025e062b91ae9418c43b3c71dd3eb06bac222d52706597f
data/CHANGELOG.textile CHANGED
@@ -1,5 +1,9 @@
1
1
  h1. CHANGELOG
2
2
 
3
+ h2. 0.2.1 November 2, 2013
4
+
5
+ * no turbolinks when used with Rails 3.2
6
+
3
7
  h2. 0.2.0 October 31, 2013
4
8
 
5
9
  * installs a framework by setting up files in the assets folder
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}"
@@ -1,3 +1,3 @@
1
1
  module RailsLayout
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
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: 0.2.0
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-02 00:00:00.000000000 Z
11
+ date: 2013-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler