rails_apps_composer 3.0.37 → 3.0.38

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/recipes/extras.rb +8 -1
  3. data/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 51c025ea53e1dd035e75a9fbbe27b91e7fe530b0
4
- data.tar.gz: 9d5a155770f0e5a80732adfb189516331f382add
3
+ metadata.gz: 74a107aed86cfae5722b483a21c65617bacc72fa
4
+ data.tar.gz: 97f1c4c4929932895a309dc15716eabb1a353f5f
5
5
  SHA512:
6
- metadata.gz: de97c1a4b305ed2bbcc73b320084c1fb45702a54374d91793b31d5a13467de7406e2432aae8fa946030de5dab58ac385d4d7cdcce29b91fd1c794f0b917a13a1
7
- data.tar.gz: 5b3d758b6d1239ba8c39dc16c529c5a5891d1814034e8aa1129f209785799935205eb3abf5e968999f595011e77e0d8568855dcbdc06c2d8cdc7e88870d8040a
6
+ metadata.gz: 7741a71f1b38ef6518c78736dfd9b566c209c4fde3f948cebd80b9a5b91349a5e1d605337492978bdaa2a17a80f636972109a051e92c642998e095547225646e
7
+ data.tar.gz: f416edf4eb6424e703262d9b7dd3d88277cdad50f9121a8bab1793a54752105e28f43823217a49d37e321ef9ba6e3c7908a083bbbff1c612fe0b6f0f1d1b9862
data/recipes/extras.rb CHANGED
@@ -140,7 +140,14 @@ if prefs[:disable_turbolinks]
140
140
  say_wizard "recipe stage two"
141
141
  gsub_file 'Gemfile', /gem 'turbolinks'\n/, ''
142
142
  gsub_file 'app/assets/javascripts/application.js', "//= require turbolinks\n", ''
143
- gsub_file 'app/views/layouts/application.html.erb', /, 'data-turbolinks-track' => true/, ''
143
+ case prefs[:templates]
144
+ when 'erb'
145
+ gsub_file 'app/views/layouts/application.html.erb', /, 'data-turbolinks-track' => true/, ''
146
+ when 'haml'
147
+ gsub_file 'app/views/layouts/application.html.haml', /, 'data-turbolinks-track' => true/, ''
148
+ when 'slim'
149
+ gsub_file 'app/views/layouts/application.html.slim', /, 'data-turbolinks-track' => true/, ''
150
+ end
144
151
  end
145
152
  end
146
153
 
data/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RailsWizard
2
- VERSION = "3.0.37"
2
+ VERSION = "3.0.38"
3
3
  end
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.37
4
+ version: 3.0.38
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-24 00:00:00.000000000 Z
11
+ date: 2015-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n