rails_apps_composer 2.4.16 → 2.4.17

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f62f4200c2f65082887cbdb1816c95c3bfe99b58
4
- data.tar.gz: 1ee1d2e9f7eea32da9370fe138d41d44c92f6a9f
3
+ metadata.gz: 683d02017565729cc993b8ed0c332f8a4d9c2c3c
4
+ data.tar.gz: e2f9ed6bd9c7acf3f1f156c2e42be1230902101a
5
5
  SHA512:
6
- metadata.gz: 3b0c9a755fc5b680527d2810bde8391797fed7212b89f7f395e0e898d8ac0b8c97a71eaae9f00e350c300492b2bde312e5040b4fc14a7acba1d06d365cd0e08c
7
- data.tar.gz: c6b148778a9f2cc5ea2cf9ec5198e17c9fd6c88dfbc91a3288e4242bda98b6110e2d37d3d0e69dd29dc164600fa5551606532d60dceec13f9b96c8d620c2f6d7
6
+ metadata.gz: 0abf49fa9605d7f3863a785bb57fb8a39c455664f85ec6e8bc98e812d0cc65284242bb6caef8eb250472c414698faab2820a109272497cc5cce51c771a598895
7
+ data.tar.gz: e4d4f7bb3f55d36c59e494300c35fe4a277d3edc3c5e9c1422f6d61001e69c6fc97d52f5776580f0c054f3131ec1d5a33af7f56e2cdf2087288c3a72b7ed5918
data/recipes/extras.rb CHANGED
@@ -123,6 +123,11 @@ after_everything do
123
123
  public/index.html
124
124
  app/assets/images/rails.png
125
125
  }.each { |file| remove_file file }
126
+ # remove temporary Haml gems from Gemfile when Slim is selected
127
+ if prefer :templates, 'slim'
128
+ gsub_file 'Gemfile', / gem 'haml2slim'\n/, "\n"
129
+ gsub_file 'Gemfile', / gem 'html2haml'\n/, "\n"
130
+ end
126
131
  # remove commented lines and multiple blank lines from Gemfile
127
132
  # thanks to https://github.com/perfectline/template-bucket/blob/master/cleanup.rb
128
133
  gsub_file 'Gemfile', /#.*\n/, "\n"
data/recipes/gems.rb CHANGED
@@ -52,10 +52,8 @@ if prefer :templates, 'haml'
52
52
  add_gem 'html2haml', :group => :development
53
53
  end
54
54
  if prefer :templates, 'slim'
55
- add_gem 'slim'
55
+ add_gem 'slim-rails'
56
56
  add_gem 'haml2slim', :group => :development
57
- # Haml is needed for conversion of HTML to Slim
58
- add_gem 'haml-rails', :group => :development
59
57
  add_gem 'html2haml', :group => :development
60
58
  end
61
59
 
data/recipes/railsapps.rb CHANGED
@@ -65,7 +65,6 @@ case prefs[:apps4]
65
65
  prefs[:unit_test] = false
66
66
  prefs[:integration] = false
67
67
  prefs[:fixtures] = false
68
- prefs[:frontend] = 'foundation4'
69
68
  prefs[:email] = 'gmail'
70
69
  prefs[:authentication] = false
71
70
  prefs[:devise_modules] = false
data/recipes/setup.rb CHANGED
@@ -47,7 +47,7 @@ case prefs[:database]
47
47
  end
48
48
 
49
49
  ## Template Engine
50
- prefs[:templates] = multiple_choice "Template engine?", [["ERB", "erb"], ["Haml", "haml"], ["Slim (experimental)", "slim"]] unless prefs.has_key? :templates
50
+ prefs[:templates] = multiple_choice "Template engine?", [["ERB", "erb"], ["Haml", "haml"], ["Slim", "slim"]] unless prefs.has_key? :templates
51
51
 
52
52
  ## Testing Framework
53
53
  if recipes.include? 'testing'
data/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RailsWizard
2
- VERSION = "2.4.16"
2
+ VERSION = "2.4.17"
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: 2.4.16
4
+ version: 2.4.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Kehoe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-12 00:00:00.000000000 Z
11
+ date: 2013-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n