rails_layout 1.0.38 → 1.0.39

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a503bd933977d505c2b651c7b6eaf1eb20af47e8
4
- data.tar.gz: 9b9867f682481b95d98b7b6fba52e76dc4fabccf
3
+ metadata.gz: 6a96958911c46a063fd698272ec3b794549513a6
4
+ data.tar.gz: b06acb85673c2ccc1faef12a6a1954448e5260c3
5
5
  SHA512:
6
- metadata.gz: ef0c03943925c1fa38895457e2ab4802bbb85ab83cdaa90163d51f63c0215d7218e086ebf07f5351d4beebb6eaff5133bb7218ec54615fa3074d828e8af8fcd2
7
- data.tar.gz: 8b837922684116bd286ac9ce5ba0cf6c9bcbc92fceb76b5a1df7ea84f568d2bc10fb15dca162f714f61ccaccf38b4ad91a7fa0b8d7d6003b3d54aac8aab88c79
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
- if Rails::VERSION::MAJOR.to_s == "3"
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
 
@@ -1,3 +1,3 @@
1
1
  module RailsLayout
2
- VERSION = "1.0.38"
2
+ VERSION = "1.0.39"
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: 1.0.38
4
+ version: 1.0.39
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Kehoe