rails_apps_composer 2.2.20 → 2.2.21

Sign up to get free protection for your applications and to get access to all the features.
@@ -31,6 +31,7 @@ module RailsWizard
31
31
  # :prod_webserver
32
32
  # :templates
33
33
  # :quiet_assets
34
+ # :better_errors
34
35
  # :ban_spiders
35
36
  # :jsruntime
36
37
  # :rvmrc
data/recipes/extras.rb CHANGED
@@ -10,6 +10,16 @@ if prefs[:quiet_assets]
10
10
  gem 'quiet_assets', '>= 1.0.1', :group => :development
11
11
  end
12
12
 
13
+ ## BETTER ERRORS
14
+ if config['better_errors']
15
+ prefs[:better_errors] = true
16
+ end
17
+ if prefs[:better_errors]
18
+ say_wizard "recipe adding better_errors gem"
19
+ gem 'better_errors', '>= 0.0.8', :group => :development
20
+ gem 'binding_of_caller', '>= 0.6.8', :group => :development
21
+ end
22
+
13
23
  ## BAN SPIDERS
14
24
  if config['ban_spiders']
15
25
  prefs[:ban_spiders] = true
@@ -137,6 +147,9 @@ config:
137
147
  - quiet_assets:
138
148
  type: boolean
139
149
  prompt: Reduce assets logger noise during development?
150
+ - better_errors:
151
+ type: boolean
152
+ prompt: Improve error reporting with 'better_errors' during development?
140
153
  - ban_spiders:
141
154
  type: boolean
142
155
  prompt: Set a robots.txt file to ban spiders?
data/recipes/gems.rb CHANGED
@@ -51,7 +51,7 @@ end
51
51
  ## Testing Framework
52
52
  if prefer :unit_test, 'rspec'
53
53
  gem 'rspec-rails', '>= 2.11.4', :group => [:development, :test]
54
- gem 'capybara', '>= 1.1.4', :group => :test if prefer :integration, 'rspec-capybara'
54
+ gem 'capybara', '>= 2.0.1', :group => :test if prefer :integration, 'rspec-capybara'
55
55
  gem 'database_cleaner', '>= 0.9.1', :group => :test
56
56
  if prefer :orm, 'mongoid'
57
57
  gem 'mongoid-rspec', '>= 1.5.5', :group => :test
@@ -61,13 +61,13 @@ end
61
61
  if prefer :unit_test, 'minitest'
62
62
  gem 'minitest-spec-rails', '>= 3.0.7', :group => :test
63
63
  gem 'minitest-wscolor', '>= 0.0.3', :group => :test
64
- gem 'capybara', '>= 1.1.4', :group => :test if prefer :integration, 'minitest-capybara'
64
+ gem 'capybara', '>= 2.0.1', :group => :test if prefer :integration, 'minitest-capybara'
65
65
  end
66
66
  if prefer :integration, 'cucumber'
67
67
  gem 'cucumber-rails', '>= 1.3.0', :group => :test, :require => false
68
68
  gem 'database_cleaner', '>= 0.9.1', :group => :test unless prefer :unit_test, 'rspec'
69
69
  gem 'launchy', '>= 2.1.2', :group => :test
70
- gem 'capybara', '>= 1.1.4', :group => :test
70
+ gem 'capybara', '>= 2.0.1', :group => :test
71
71
  end
72
72
  gem 'turnip', '>= 1.1.0', :group => :test if prefer :integration, 'turnip'
73
73
  gem 'factory_girl_rails', '>= 4.1.0', :group => [:development, :test] if prefer :fixtures, 'factory_girl'
data/recipes/railsapps.rb CHANGED
@@ -27,6 +27,7 @@ case prefs[:railsapps]
27
27
  prefs[:starter_app] = 'admin_app'
28
28
  prefs[:form_builder] = 'simple_form'
29
29
  prefs[:quiet_assets] = true
30
+ prefs[:better_errors] = true
30
31
  when 'rails-prelaunch-signup'
31
32
  prefs[:git] = true
32
33
  prefs[:database] = 'sqlite'
@@ -42,6 +43,7 @@ case prefs[:railsapps]
42
43
  prefs[:starter_app] = 'admin_app'
43
44
  prefs[:form_builder] = 'simple_form'
44
45
  prefs[:quiet_assets] = true
46
+ prefs[:better_errors] = true
45
47
  if prefer :git, true
46
48
  prefs[:prelaunch_branch] = multiple_choice "Git branch for the prelaunch app?", [["wip (work-in-progress)", "wip"], ["master", "master"], ["prelaunch", "prelaunch"], ["staging", "staging"]]
47
49
  if prefs[:prelaunch_branch] == 'master'
@@ -65,6 +67,7 @@ case prefs[:railsapps]
65
67
  prefs[:starter_app] = 'admin_app'
66
68
  prefs[:form_builder] = 'simple_form'
67
69
  prefs[:quiet_assets] = true
70
+ prefs[:better_errors] = true
68
71
  when 'rails3-devise-rspec-cucumber'
69
72
  prefs[:git] = true
70
73
  prefs[:database] = 'sqlite'
@@ -79,6 +82,7 @@ case prefs[:railsapps]
79
82
  prefs[:starter_app] = 'users_app'
80
83
  prefs[:form_builder] = 'none'
81
84
  prefs[:quiet_assets] = true
85
+ prefs[:better_errors] = true
82
86
  when 'rails3-devise-rspec-cucumber-fabrication'
83
87
  prefs[:git] = true
84
88
  prefs[:database] = 'sqlite'
@@ -93,6 +97,7 @@ case prefs[:railsapps]
93
97
  prefs[:starter_app] = 'users_app'
94
98
  prefs[:form_builder] = 'none'
95
99
  prefs[:quiet_assets] = true
100
+ prefs[:better_errors] = true
96
101
  when 'rails3-mongoid-devise'
97
102
  prefs[:git] = true
98
103
  prefs[:database] = 'mongodb'
@@ -108,6 +113,7 @@ case prefs[:railsapps]
108
113
  prefs[:starter_app] = 'users_app'
109
114
  prefs[:form_builder] = 'none'
110
115
  prefs[:quiet_assets] = true
116
+ prefs[:better_errors] = true
111
117
  when 'rails3-mongoid-omniauth'
112
118
  prefs[:git] = true
113
119
  prefs[:database] = 'mongodb'
@@ -123,6 +129,7 @@ case prefs[:railsapps]
123
129
  prefs[:starter_app] = 'users_app'
124
130
  prefs[:form_builder] = 'none'
125
131
  prefs[:quiet_assets] = true
132
+ prefs[:better_errors] = true
126
133
  when 'rails3-subdomains'
127
134
  prefs[:git] = true
128
135
  prefs[:database] = 'mongodb'
@@ -138,6 +145,7 @@ case prefs[:railsapps]
138
145
  prefs[:starter_app] = 'subdomains_app'
139
146
  prefs[:form_builder] = 'none'
140
147
  prefs[:quiet_assets] = true
148
+ prefs[:better_errors] = true
141
149
  end
142
150
 
143
151
  __END__
data/recipes/saas.rb CHANGED
@@ -32,6 +32,7 @@ if prefer :railsapps, 'rails-stripe-membership-saas'
32
32
  copy_from_repo 'features/users/sign_up.feature', :repo => repo
33
33
  copy_from_repo 'features/users/sign_up_with_stripe.feature', :repo => repo
34
34
  copy_from_repo 'features/users/user_edit.feature', :repo => repo
35
+ copy_from_repo 'features/users/user_delete.feature', :repo => repo
35
36
  copy_from_repo 'features/step_definitions/user_steps.rb', :repo => repo
36
37
  copy_from_repo 'features/step_definitions/form_helper_steps.rb', :repo => repo
37
38
  copy_from_repo 'config/locales/devise.en.yml', :repo => repo
data/templates/layout.erb CHANGED
@@ -86,6 +86,7 @@ redacted_prefs.delete(:dev_webserver)
86
86
  redacted_prefs.delete(:prod_webserver)
87
87
  redacted_prefs.delete(:templates)
88
88
  redacted_prefs.delete(:quiet_assets)
89
+ redacted_prefs.delete(:better_errors)
89
90
  redacted_prefs.delete(:ban_spiders)
90
91
  redacted_prefs.delete(:jsruntime)
91
92
  redacted_prefs.delete(:rvmrc)
data/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RailsWizard
2
- VERSION = "2.2.20"
2
+ VERSION = "2.2.21"
3
3
  end
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.20
4
+ version: 2.2.21
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-12-09 00:00:00.000000000 Z
12
+ date: 2012-12-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: i18n
@@ -202,7 +202,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
202
202
  version: '0'
203
203
  segments:
204
204
  - 0
205
- hash: -387981190677164732
205
+ hash: -428806813449652761
206
206
  required_rubygems_version: !ruby/object:Gem::Requirement
207
207
  none: false
208
208
  requirements:
@@ -211,7 +211,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
211
211
  version: '0'
212
212
  segments:
213
213
  - 0
214
- hash: -387981190677164732
214
+ hash: -428806813449652761
215
215
  requirements: []
216
216
  rubyforge_project: rails_apps_composer
217
217
  rubygems_version: 1.8.24