Skip to content

Commit 5ae32b2

Browse files
committedMay 16, 2018
option to remove Rails Turbolinks for Rails 5
1 parent 29f8df1 commit 5ae32b2

File tree

4 files changed

+12
-16
lines changed

4 files changed

+12
-16
lines changed
 

‎CHANGELOG.textile

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
h1. CHANGELOG
22

3+
h3. 3.1.35 May 16, 2018
4+
5+
* option to remove Rails Turbolinks for Rails 5
6+
* improve rails-signup-thankyou contributed application (no TurboLinks, drop mailing list)
7+
38
h3. 3.1.34 May 14, 2018
49

5-
* add rails-signup-thankyou contributed application
10+
* add rails-signup-thankyou contributed application
611

712
h3. 3.1.33 February 21, 2018
813

‎recipes/extras.rb

+4
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,18 @@
6868
stage_two do
6969
say_wizard "recipe stage two"
7070
gsub_file 'Gemfile', /gem 'turbolinks'\n/, ''
71+
gsub_file 'Gemfile', /gem 'turbolinks', '~> 5'\n/, ''
7172
gsub_file 'app/assets/javascripts/application.js', "//= require turbolinks\n", ''
7273
case prefs[:templates]
7374
when 'erb'
7475
gsub_file 'app/views/layouts/application.html.erb', /, 'data-turbolinks-track' => true/, ''
76+
gsub_file 'app/views/layouts/application.html.erb', /, 'data-turbolinks-track' => 'reload'/, ''
7577
when 'haml'
7678
gsub_file 'app/views/layouts/application.html.haml', /, 'data-turbolinks-track' => true/, ''
79+
gsub_file 'app/views/layouts/application.html.haml', /, 'data-turbolinks-track' => 'reload'/, ''
7780
when 'slim'
7881
gsub_file 'app/views/layouts/application.html.slim', /, 'data-turbolinks-track' => true/, ''
82+
gsub_file 'app/views/layouts/application.html.slim', /, 'data-turbolinks-track' => 'reload'/, ''
7983
end
8084
end
8185
end

‎recipes/rails_signup_thankyou.rb

+1-14
Original file line numberDiff line numberDiff line change
@@ -20,30 +20,21 @@
2020
prefs[:local_env_file] = false
2121
prefs[:prod_webserver] = 'same'
2222
prefs[:pry] = false
23-
prefs[:secrets] = ['mailchimp_list_id', 'mailchimp_api_key']
2423
prefs[:pages] = 'about+users'
2524
prefs[:templates] = 'erb'
2625
prefs[:tests] = 'none'
2726
prefs[:locale] = 'none'
2827
prefs[:analytics] = 'none'
2928
prefs[:rubocop] = false
30-
prefs[:disable_turbolinks] = false
29+
prefs[:disable_turbolinks] = true
3130
prefs[:rvmrc] = true
3231
prefs[:form_builder] = false
3332
prefs[:jquery] = 'gem'
3433

35-
# gems
36-
add_gem 'gibbon'
37-
add_gem 'sucker_punch'
38-
3934
stage_three do
4035
say_wizard "recipe stage three"
4136
repo = 'https://raw.github.com/RailsApps/rails-signup-thankyou/master/'
4237

43-
# >-------------------------------[ Config ]---------------------------------<
44-
45-
copy_from_repo 'config/initializers/active_job.rb', :repo => repo
46-
4738
# >-------------------------------[ Models ]--------------------------------<
4839

4940
copy_from_repo 'app/models/user.rb', :repo => repo
@@ -55,10 +46,6 @@
5546
copy_from_repo 'app/controllers/products_controller.rb', :repo => repo
5647
copy_from_repo 'app/controllers/thank_you_controller.rb', :repo => repo
5748

58-
# >-------------------------------[ Jobs ]---------------------------------<
59-
60-
copy_from_repo 'app/jobs/mailing_list_signup_job.rb', :repo => repo
61-
6249
# >-------------------------------[ Views ]--------------------------------<
6350

6451
copy_from_repo 'app/views/visitors/index.html.erb', :repo => repo

‎version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module RailsWizard
2-
VERSION = "3.1.34"
2+
VERSION = "3.1.35"
33
end

0 commit comments

Comments
 (0)