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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 28b136ac931733ffbc75804617d6d20f5ea83018
4
- data.tar.gz: d9364ad519af686457d354e13f5375acf959d174
3
+ metadata.gz: f9ef1e6a4da898ff7d54cb4f6dc2704c3d31fd66
4
+ data.tar.gz: 148bf7456bb51fd0f10f0d630ba2e2ce09d3c659
5
5
  SHA512:
6
- metadata.gz: 293e1a9c4019e3750c432754f14228c1bc57b3762491f4a4a1085bd14203b19b25bdf89208f47d73877db28b25e96a6c5c7734f64db73e9e57b13c99523c74d7
7
- data.tar.gz: 2d5d798ec1e3ac7b2384dc9de699a46da201ac5aed0a64a8b0c4062b3fcca671aacf7182ef221a30b720edefeb990bb5e9051f042bd67fb960d79575ae5f036d
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
- gsub_file 'Gemfile', /group :doc do/, ''
12
- gsub_file 'Gemfile', /\s*gem 'sdoc', require: false\nend/, ''
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 doesnt work as expected, please [report an issue](https://github.com/RailsApps/rails_apps_composer/issues)
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
@@ -1,3 +1,3 @@
1
1
  module RailsWizard
2
- VERSION = "3.0.28"
2
+ VERSION = "3.0.29"
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.28
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-19 00:00:00.000000000 Z
11
+ date: 2014-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n