rails_layout 1.0.38 → 1.0.39
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/install/install_generator.rb +10 -1
- 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: 6a96958911c46a063fd698272ec3b794549513a6
|
4
|
+
data.tar.gz: b06acb85673c2ccc1faef12a6a1954448e5260c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74ca4ad55fffa1010a83d2a804e1f9a03b5b4201caad068f468fe57b689eba46335589be1914c800cb5daeba059cf5942f6158419f87a337d1f0c50758dbad2f
|
7
|
+
data.tar.gz: 36458a4acc980300266461b2b16d020a890caab80761dc1a41a4bbcb24880f08c2ebaa1f83a33c4a029251b31c7a107bc9ade68851c66a04d75ecf9e1e1b9ac2
|
data/CHANGELOG.textile
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
h1. CHANGELOG
|
2
2
|
|
3
|
+
h3. 1.0.39 May 10, 2017
|
4
|
+
|
5
|
+
* Rails 5.1 uses 'rails-ujs' but earlier versions need 'jquery_ujs'
|
6
|
+
|
3
7
|
h3. 1.0.38 May 10, 2017
|
4
8
|
|
5
9
|
* jQuery is required for Bootstrap or Foundation
|
10
|
+
* Rails 5.1 uses 'rails-ujs' but earlier versions need 'jquery_ujs'
|
6
11
|
|
7
12
|
h3. 1.0.37 May 7, 2017
|
8
13
|
|
@@ -54,8 +54,17 @@ module Layout
|
|
54
54
|
remove_file 'app/assets/stylesheets/bootstrap_and_overrides.css.scss'
|
55
55
|
insert_into_file('config/application.rb', "\n\n # For Foundation 5\n config.assets.precompile += %w( vendor/modernizr )\n", :after => /^ *# config.i18n.default_locale = :de/, :force => false)
|
56
56
|
end
|
57
|
-
|
57
|
+
# Rails 3 doesn't have turbolinks
|
58
|
+
# Rails 5.1 uses rails-ujs but earlier versions need jquery_ujs
|
59
|
+
if Rails::VERSION::MAJOR == 3
|
58
60
|
gsub_file 'app/assets/javascripts/application.js', /\/\/= require turbolinks\n/, ''
|
61
|
+
gsub_file 'app/assets/javascripts/application.js', /\/\/= require rails-ujs/, '//= require jquery_ujs'
|
62
|
+
end
|
63
|
+
if Rails::VERSION::MAJOR == 4
|
64
|
+
gsub_file 'app/assets/javascripts/application.js', /\/\/= require rails-ujs/, '//= require jquery_ujs'
|
65
|
+
end
|
66
|
+
if Rails::VERSION::MAJOR == 5 && Rails::VERSION::MINOR >= 0
|
67
|
+
gsub_file 'app/assets/javascripts/application.js', /\/\/= require rails-ujs/, '//= require jquery_ujs'
|
59
68
|
end
|
60
69
|
end
|
61
70
|
|
data/lib/rails_layout/version.rb
CHANGED