rails_apps_composer 2.4.16 → 2.4.17
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 +4 -4
- data/recipes/extras.rb +5 -0
- data/recipes/gems.rb +1 -3
- data/recipes/railsapps.rb +0 -1
- data/recipes/setup.rb +1 -1
- 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: 683d02017565729cc993b8ed0c332f8a4d9c2c3c
|
4
|
+
data.tar.gz: e2f9ed6bd9c7acf3f1f156c2e42be1230902101a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
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
|
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
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.
|
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-
|
11
|
+
date: 2013-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|