rails_apps_composer 2.2.11 → 2.2.12
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.
- data/lib/rails_wizard/diagnostics.rb +1 -1
- data/recipes/extras.rb +12 -0
- data/recipes/gems.rb +8 -1
- data/recipes/setup.rb +4 -4
- data/recipes/testing.rb +18 -1
- data/version.rb +1 -1
- metadata +4 -4
@@ -41,7 +41,7 @@ module RailsWizard
|
|
41
41
|
@@prefs << {:railsapps=>"rails3-mongoid-devise", :database=>'mongodb', :orm=>'mongoid', :templates=>'erb', :unit_test=>'rspec', :integration=>'cucumber', :fixtures=>'factory_girl', :frontend=>'none', :email=>'gmail', :authentication=>'devise', :devise_modules=>'default', :authorization=>'none', :starter_app=>'users_app', :form_builder=>'none'}
|
42
42
|
@@prefs << {:railsapps=>"rails3-mongoid-omniauth", :database=>'mongodb', :orm=>'mongoid', :templates=>'erb', :unit_test=>'rspec', :integration=>'cucumber', :fixtures=>'factory_girl', :frontend=>'none', :email=>'none', :authentication=>'omniauth', :omniauth_provider=>'twitter', :authorization=>'none', :starter_app=>'users_app', :form_builder=>'none'}
|
43
43
|
@@prefs << {:railsapps=>"rails3-subdomains", :database=>'mongodb', :orm=>'mongoid', :templates=>'haml', :unit_test=>'rspec', :integration=>'cucumber', :fixtures=>'factory_girl', :frontend=>'none', :email=>'gmail', :authentication=>'devise', :devise_modules=>'default', :authorization=>'none', :starter_app=>'subdomains_app', :form_builder=>'none'}
|
44
|
-
@@prefs << {:railsapps=>"none", :database=>"sqlite", :unit_test=>"rspec", :integration=>"capybara", :fixtures=>"factory_girl", :frontend=>"bootstrap", :bootstrap=>"sass", :email=>"none", :authentication=>"omniauth", :omniauth_provider=>"twitter", :authorization=>"cancan", :form_builder=>"none", :starter_app=>"admin_app"}
|
44
|
+
@@prefs << {:railsapps=>"none", :database=>"sqlite", :unit_test=>"rspec", :integration=>"rspec-capybara", :fixtures=>"factory_girl", :frontend=>"bootstrap", :bootstrap=>"sass", :email=>"none", :authentication=>"omniauth", :omniauth_provider=>"twitter", :authorization=>"cancan", :form_builder=>"none", :starter_app=>"admin_app"}
|
45
45
|
@@prefs << {:railsapps=>"none", :database=>"sqlite", :unit_test=>"rspec", :integration=>"cucumber", :fixtures=>"none", :frontend=>"bootstrap", :bootstrap=>"sass", :email=>"gmail", :authentication=>"devise", :devise_modules=>"invitable", :authorization=>"cancan", :form_builder=>"simple_form", :starter_app=>"admin_app"}
|
46
46
|
@@prefs << {:railsapps=>"none", :database=>"sqlite", :unit_test=>"rspec", :integration=>"cucumber", :fixtures=>"factory_girl", :frontend=>"bootstrap", :bootstrap=>"sass", :email=>"gmail", :authentication=>"devise", :devise_modules=>"default", :authorization=>"cancan", :form_builder=>"none", :starter_app=>"admin_app"}
|
47
47
|
@@prefs << {:railsapps=>"none", :database=>"sqlite", :unit_test=>"test_unit", :integration=>"none", :fixtures=>"none", :frontend=>"bootstrap", :bootstrap=>"less", :email=>"sendgrid", :authentication=>"devise", :devise_modules=>"confirmable", :authorization=>"cancan", :form_builder=>"none", :starter_app=>"admin_app"}
|
data/recipes/extras.rb
CHANGED
@@ -1,6 +1,15 @@
|
|
1
1
|
# Application template recipe for the rails_apps_composer. Change the recipe here:
|
2
2
|
# https://github.com/RailsApps/rails_apps_composer/blob/master/recipes/extras.rb
|
3
3
|
|
4
|
+
## QUIET ASSETS
|
5
|
+
if config['quiet_assets']
|
6
|
+
prefs[:quiet_assets] = true
|
7
|
+
end
|
8
|
+
if prefs[:quiet_assets]
|
9
|
+
say_wizard "recipe setting quiet_assets for reduced asset pipeline logging"
|
10
|
+
gem 'quiet_assets', '>= 1.0.1', :group => :development
|
11
|
+
end
|
12
|
+
|
4
13
|
## BAN SPIDERS
|
5
14
|
if config['ban_spiders']
|
6
15
|
prefs[:ban_spiders] = true
|
@@ -125,6 +134,9 @@ run_after: [gems, init, prelaunch]
|
|
125
134
|
category: other
|
126
135
|
|
127
136
|
config:
|
137
|
+
- quiet_assets:
|
138
|
+
type: boolean
|
139
|
+
prompt: Reduce assets logger noise during development?
|
128
140
|
- ban_spiders:
|
129
141
|
type: boolean
|
130
142
|
prompt: Set a robots.txt file to ban spiders?
|
data/recipes/gems.rb
CHANGED
@@ -47,7 +47,7 @@ end
|
|
47
47
|
## Testing Framework
|
48
48
|
if prefer :unit_test, 'rspec'
|
49
49
|
gem 'rspec-rails', '>= 2.11.0', :group => [:development, :test]
|
50
|
-
gem 'capybara', '>= 1.1.2', :group => :test
|
50
|
+
gem 'capybara', '>= 1.1.2', :group => :test if prefer :integration, 'rspec-capybara'
|
51
51
|
if prefer :orm, 'mongoid'
|
52
52
|
# use the database_cleaner gem to reset the test database
|
53
53
|
gem 'database_cleaner', '>= 0.8.0', :group => :test
|
@@ -56,13 +56,20 @@ if prefer :unit_test, 'rspec'
|
|
56
56
|
end
|
57
57
|
gem 'email_spec', '>= 1.2.1', :group => :test
|
58
58
|
end
|
59
|
+
if prefer :unit_test, 'minitest'
|
60
|
+
gem 'minitest-spec-rails', '>= 3.0.7', :group => :test
|
61
|
+
gem 'minitest-wscolor', '>= 0.0.3', :group => :test
|
62
|
+
gem 'capybara', '>= 1.1.2', :group => :test if prefer :integration, 'minitest-capybara'
|
63
|
+
end
|
59
64
|
if prefer :integration, 'cucumber'
|
60
65
|
gem 'cucumber-rails', '>= 1.3.0', :group => :test, :require => false
|
61
66
|
gem 'database_cleaner', '>= 0.8.0', :group => :test unless prefer :orm, 'mongoid'
|
62
67
|
gem 'launchy', '>= 2.1.2', :group => :test
|
68
|
+
gem 'capybara', '>= 1.1.2', :group => :test
|
63
69
|
end
|
64
70
|
gem 'turnip', '>= 1.0.0', :group => :test if prefer :integration, 'turnip'
|
65
71
|
gem 'factory_girl_rails', '>= 4.1.0', :group => [:development, :test] if prefer :fixtures, 'factory_girl'
|
72
|
+
gem 'fabrication', '>= 2.3.0', :group => [:development, :test] if prefer :fixtures, 'fabrication'
|
66
73
|
gem 'machinist', '>= 2.0', :group => :test if prefer :fixtures, 'machinist'
|
67
74
|
|
68
75
|
## Front-end Framework
|
data/recipes/setup.rb
CHANGED
@@ -53,10 +53,10 @@ prefs[:templates] = multiple_choice "Template engine?", [["ERB", "erb"], ["Haml"
|
|
53
53
|
|
54
54
|
## Testing Framework
|
55
55
|
if recipes.include? 'testing'
|
56
|
-
prefs[:unit_test] = multiple_choice "Unit testing?", [["Test::Unit", "test_unit"], ["RSpec", "rspec"]] unless prefs.has_key? :unit_test
|
57
|
-
prefs[:integration] = multiple_choice "Integration testing?", [["None", "none"], ["RSpec with Capybara", "capybara"],
|
58
|
-
["Cucumber with Capybara", "cucumber"], ["Turnip with Capybara", "turnip"]] unless prefs.has_key? :integration
|
59
|
-
prefs[:fixtures] = multiple_choice "Fixture replacement?", [["None","none"], ["Factory Girl","factory_girl"], ["Machinist","machinist"]] unless prefs.has_key? :fixtures
|
56
|
+
prefs[:unit_test] = multiple_choice "Unit testing?", [["Test::Unit", "test_unit"], ["RSpec", "rspec"], ["MiniTest", "minitest"]] unless prefs.has_key? :unit_test
|
57
|
+
prefs[:integration] = multiple_choice "Integration testing?", [["None", "none"], ["RSpec with Capybara", "rspec-capybara"],
|
58
|
+
["Cucumber with Capybara", "cucumber"], ["Turnip with Capybara", "turnip"], ["MiniTest with Capybara", "minitest-capybara"]] unless prefs.has_key? :integration
|
59
|
+
prefs[:fixtures] = multiple_choice "Fixture replacement?", [["None","none"], ["Factory Girl","factory_girl"], ["Machinist","machinist"], ["Fabrication","fabrication"]] unless prefs.has_key? :fixtures
|
60
60
|
end
|
61
61
|
|
62
62
|
## Front-end Framework
|
data/recipes/testing.rb
CHANGED
@@ -3,6 +3,18 @@
|
|
3
3
|
|
4
4
|
after_bundler do
|
5
5
|
say_wizard "recipe running after 'bundle install'"
|
6
|
+
### TEST/UNIT ###
|
7
|
+
if prefer :unit_test, 'test_unit'
|
8
|
+
inject_into_file 'config/application.rb', :after => "Rails::Application\n" do <<-RUBY
|
9
|
+
|
10
|
+
config.generators do |g|
|
11
|
+
#{"g.test_framework :test_unit, fixture_replacement: :fabrication" if prefer :fixtures, 'fabrication'}
|
12
|
+
#{"g.fixture_replacement :fabrication, dir: 'test/fabricators'" if prefer :fixtures, 'fabrication'}
|
13
|
+
end
|
14
|
+
|
15
|
+
RUBY
|
16
|
+
end
|
17
|
+
end
|
6
18
|
### RSPEC ###
|
7
19
|
if prefer :unit_test, 'rspec'
|
8
20
|
say_wizard "recipe installing RSpec"
|
@@ -20,9 +32,13 @@ RUBY
|
|
20
32
|
|
21
33
|
# don't generate RSpec tests for views and helpers
|
22
34
|
config.generators do |g|
|
35
|
+
#{"g.test_framework :rspec" if prefer :fixtures, 'none'}
|
36
|
+
#{"g.test_framework :rspec, fixture: true" unless prefer :fixtures, 'none'}
|
37
|
+
#{"g.fixture_replacement :factory_girl" if prefer :fixtures, 'factory_girl'}
|
38
|
+
#{"g.fixture_replacement :machinist" if prefer :fixtures, 'machinist'}
|
39
|
+
#{"g.fixture_replacement :fabrication" if prefer :fixtures, 'fabrication'}
|
23
40
|
g.view_specs false
|
24
41
|
g.helper_specs false
|
25
|
-
#{"g.fixture_replacement :machinist" if prefer :fixtures, 'machinist'}
|
26
42
|
end
|
27
43
|
|
28
44
|
RUBY
|
@@ -73,6 +89,7 @@ RUBY
|
|
73
89
|
"\n DatabaseCleaner.orm = 'mongoid'"
|
74
90
|
end
|
75
91
|
end
|
92
|
+
generate 'fabrication:cucumber_steps' if prefer :fixtures, 'fabrication'
|
76
93
|
end
|
77
94
|
## TURNIP
|
78
95
|
if prefer :integration, 'turnip'
|
data/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_apps_composer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.12
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-10-
|
12
|
+
date: 2012-10-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: i18n
|
@@ -201,7 +201,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
201
201
|
version: '0'
|
202
202
|
segments:
|
203
203
|
- 0
|
204
|
-
hash:
|
204
|
+
hash: 939774789320345113
|
205
205
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
206
206
|
none: false
|
207
207
|
requirements:
|
@@ -210,7 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
210
210
|
version: '0'
|
211
211
|
segments:
|
212
212
|
- 0
|
213
|
-
hash:
|
213
|
+
hash: 939774789320345113
|
214
214
|
requirements: []
|
215
215
|
rubyforge_project: rails_apps_composer
|
216
216
|
rubygems_version: 1.8.24
|