rails_apps_composer 3.0.36 → 3.0.37
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/recipes/extras.rb +17 -0
- data/recipes/rails_stripe_membership_saas.rb +1 -0
- data/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: 51c025ea53e1dd035e75a9fbbe27b91e7fe530b0
|
4
|
+
data.tar.gz: 9d5a155770f0e5a80732adfb189516331f382add
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de97c1a4b305ed2bbcc73b320084c1fb45702a54374d91793b31d5a13467de7406e2432aae8fa946030de5dab58ac385d4d7cdcce29b91fd1c794f0b917a13a1
|
7
|
+
data.tar.gz: 5b3d758b6d1239ba8c39dc16c529c5a5891d1814034e8aa1129f209785799935205eb3abf5e968999f595011e77e0d8568855dcbdc06c2d8cdc7e88870d8040a
|
data/recipes/extras.rb
CHANGED
@@ -130,6 +130,20 @@ if prefs[:rubocop]
|
|
130
130
|
copy_from_repo '.rubocop.yml'
|
131
131
|
end
|
132
132
|
|
133
|
+
## Disable Turbolinks
|
134
|
+
if config['disable_turbolinks']
|
135
|
+
prefs[:disable_turbolinks] = true
|
136
|
+
end
|
137
|
+
if prefs[:disable_turbolinks]
|
138
|
+
say_wizard "recipe removing support for Rails Turbolinks"
|
139
|
+
stage_two do
|
140
|
+
say_wizard "recipe stage two"
|
141
|
+
gsub_file 'Gemfile', /gem 'turbolinks'\n/, ''
|
142
|
+
gsub_file 'app/assets/javascripts/application.js', "//= require turbolinks\n", ''
|
143
|
+
gsub_file 'app/views/layouts/application.html.erb', /, 'data-turbolinks-track' => true/, ''
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
133
147
|
## BAN SPIDERS
|
134
148
|
if config['ban_spiders']
|
135
149
|
prefs[:ban_spiders] = true
|
@@ -213,6 +227,9 @@ run_after: [gems, init]
|
|
213
227
|
category: other
|
214
228
|
|
215
229
|
config:
|
230
|
+
- disable_turbolinks:
|
231
|
+
type: boolean
|
232
|
+
prompt: Disable Rails Turbolinks?
|
216
233
|
- ban_spiders:
|
217
234
|
type: boolean
|
218
235
|
prompt: Set a robots.txt file to ban spiders?
|
@@ -12,6 +12,7 @@ if prefer :apps4, 'rails-stripe-membership-saas'
|
|
12
12
|
prefs[:local_env_file] = false
|
13
13
|
prefs[:pry] = false
|
14
14
|
prefs[:quiet_assets] = true
|
15
|
+
prefs[:disable_turbolinks] = true
|
15
16
|
prefs[:secrets] = ['stripe_publishable_key',
|
16
17
|
'stripe_api_key',
|
17
18
|
'mailchimp_list_id',
|
data/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_apps_composer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.37
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Kehoe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|