rails_apps_composer 3.0.28 → 3.0.29
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 +13 -0
- data/recipes/gems.rb +6 -2
- data/recipes/readme.rb +1 -1
- data/recipes/setup.rb +1 -14
- 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: f9ef1e6a4da898ff7d54cb4f6dc2704c3d31fd66
|
|
4
|
+
data.tar.gz: 148bf7456bb51fd0f10f0d630ba2e2ce09d3c659
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a3689ccb5f1776afedcba0d35b97dcc2cc60c1b8cd3c04c8ba846b78722e353e07be8ee8b8f0ea85a5f827ea53ee7a0927485312e0af5b42f205d82b98bacb4f
|
|
7
|
+
data.tar.gz: c01d3c0ffb22815cc662805cbb9183670b23b029ef1393c2f34735d44a6a8fb042d2fcf66cc9ab1951740cc309c4f6a4835ccf7158f5c247bae4bf1856ac658e
|
data/recipes/extras.rb
CHANGED
|
@@ -120,6 +120,16 @@ if prefs[:pry]
|
|
|
120
120
|
add_gem 'pry-rescue', :group => [:development, :test]
|
|
121
121
|
end
|
|
122
122
|
|
|
123
|
+
## Rubocop
|
|
124
|
+
if config['rubocop']
|
|
125
|
+
prefs[:rubocop] = true
|
|
126
|
+
end
|
|
127
|
+
if prefs[:rubocop]
|
|
128
|
+
say_wizard "recipe adding rubocop gem and basic .rubocop.yml"
|
|
129
|
+
add_gem 'rubocop', :group => [:development, :test]
|
|
130
|
+
copy_from_repo '.rubocop.yml'
|
|
131
|
+
end
|
|
132
|
+
|
|
123
133
|
## BAN SPIDERS
|
|
124
134
|
if config['ban_spiders']
|
|
125
135
|
prefs[:ban_spiders] = true
|
|
@@ -222,3 +232,6 @@ config:
|
|
|
222
232
|
- pry:
|
|
223
233
|
type: boolean
|
|
224
234
|
prompt: Use 'pry' as console replacement during development and test?
|
|
235
|
+
- rubocop:
|
|
236
|
+
type: boolean
|
|
237
|
+
prompt: Use 'rubocop' to ensure that your code conforms to the Ruby style guide?
|
data/recipes/gems.rb
CHANGED
|
@@ -8,8 +8,12 @@ insert_into_file('Gemfile', "ruby '#{RUBY_VERSION}'\n", :before => /^ *gem 'rail
|
|
|
8
8
|
|
|
9
9
|
## Cleanup
|
|
10
10
|
# remove the 'sdoc' gem
|
|
11
|
-
|
|
12
|
-
gsub_file 'Gemfile',
|
|
11
|
+
if Rails::VERSION::MAJOR == 4 && Rails::VERSION::MINOR >= 2
|
|
12
|
+
gsub_file 'Gemfile', /gem 'sdoc',\s+'~> 0.4.0',\s+group: :doc/, ''
|
|
13
|
+
else
|
|
14
|
+
gsub_file 'Gemfile', /group :doc do/, ''
|
|
15
|
+
gsub_file 'Gemfile', /\s*gem 'sdoc', require: false\nend/, ''
|
|
16
|
+
end
|
|
13
17
|
|
|
14
18
|
## Web Server
|
|
15
19
|
if (prefs[:dev_webserver] == prefs[:prod_webserver])
|
data/recipes/readme.rb
CHANGED
|
@@ -126,7 +126,7 @@ Need help? Ask on Stack Overflow with the tag 'railsapps.'
|
|
|
126
126
|
|
|
127
127
|
Your application contains diagnostics in the README file. Please provide a copy of the README file when reporting any issues.
|
|
128
128
|
|
|
129
|
-
If the application doesn
|
|
129
|
+
If the application doesn't work as expected, please [report an issue](https://github.com/RailsApps/rails_apps_composer/issues)
|
|
130
130
|
and include the diagnostics.
|
|
131
131
|
|
|
132
132
|
Ruby on Rails
|
data/recipes/setup.rb
CHANGED
|
@@ -18,20 +18,7 @@ prefs[:dev_webserver] = multiple_choice "Web server for development?", [["WEBric
|
|
|
18
18
|
prefs[:prod_webserver] = multiple_choice "Web server for production?", [["Same as development", "same"],
|
|
19
19
|
["Thin", "thin"], ["Unicorn", "unicorn"], ["Puma", "puma"], ["Phusion Passenger (Apache/Nginx)", "passenger"],
|
|
20
20
|
["Phusion Passenger (Standalone)", "passenger_standalone"]] unless prefs.has_key? :prod_webserver
|
|
21
|
-
if prefs[:prod_webserver] == 'same'
|
|
22
|
-
case prefs[:dev_webserver]
|
|
23
|
-
when 'thin'
|
|
24
|
-
prefs[:prod_webserver] = 'thin'
|
|
25
|
-
when 'unicorn'
|
|
26
|
-
prefs[:prod_webserver] = 'unicorn'
|
|
27
|
-
when 'puma'
|
|
28
|
-
prefs[:prod_webserver] = 'puma'
|
|
29
|
-
when 'passenger'
|
|
30
|
-
prefs[:prod_webserver] = 'passenger'
|
|
31
|
-
when 'passenger_standalone'
|
|
32
|
-
prefs[:prod_webserver] = 'passenger_standalone'
|
|
33
|
-
end
|
|
34
|
-
end
|
|
21
|
+
prefs[:prod_webserver] = prefs[:dev_webserver] if prefs[:prod_webserver] == 'same'
|
|
35
22
|
|
|
36
23
|
## Database Adapter
|
|
37
24
|
prefs[:database] = "sqlite" if prefer :database, 'default'
|
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.29
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel Kehoe
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-12-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: i18n
|