rails_apps_composer 2.2.14 → 2.2.15

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/recipes/railsapps.rb CHANGED
@@ -62,6 +62,20 @@ case prefs[:railsapps]
62
62
  prefs[:starter_app] = 'users_app'
63
63
  prefs[:form_builder] = 'none'
64
64
  prefs[:quiet_assets] = true
65
+ when 'rails3-devise-rspec-cucumber-fabrication'
66
+ prefs[:git] = true
67
+ prefs[:database] = 'sqlite'
68
+ prefs[:unit_test] = 'rspec'
69
+ prefs[:integration] = 'cucumber'
70
+ prefs[:fixtures] = 'fabrication'
71
+ prefs[:frontend] = 'none'
72
+ prefs[:email] = 'gmail'
73
+ prefs[:authentication] = 'devise'
74
+ prefs[:devise_modules] = 'default'
75
+ prefs[:authorization] = 'none'
76
+ prefs[:starter_app] = 'users_app'
77
+ prefs[:form_builder] = 'none'
78
+ prefs[:quiet_assets] = true
65
79
  when 'rails3-mongoid-devise'
66
80
  prefs[:git] = true
67
81
  prefs[:database] = 'mongodb'
data/recipes/testing.rb CHANGED
@@ -234,6 +234,26 @@ RUBY
234
234
  git :add => '-A' if prefer :git, true
235
235
  git :commit => '-qm "rails_apps_composer: cucumber files"' if prefer :git, true
236
236
  end
237
+ ### FABRICATION ###
238
+ if prefer :fixtures, 'fabrication'
239
+ say_wizard "replacing FactoryGirl fixtures with Fabrication"
240
+ remove_file 'spec/factories/users.rb'
241
+ remove_file 'spec/fabricators/user_fabricator.rb'
242
+ create_file 'spec/fabricators/user_fabricator.rb' do
243
+ <<-RUBY
244
+ Fabricator(:user) do
245
+ name 'Test User'
246
+ email 'example@example.com'
247
+ password 'please'
248
+ password_confirmation 'please'
249
+ # required if the Devise Confirmable module is used
250
+ # confirmed_at Time.now
251
+ end
252
+ RUBY
253
+ end
254
+ gsub_file 'features/step_definitions/user_steps.rb', /@user = FactoryGirl.create\(:user, email: @visitor\[:email\]\)/, '@user = Fabricate(:user, email: @visitor[:email])'
255
+ gsub_file 'spec/controllers/users_controller_spec.rb', /@user = FactoryGirl.create\(:user\)/, '@user = Fabricate(:user)'
256
+ end
237
257
  end # after_everything
238
258
 
239
259
  __END__
data/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RailsWizard
2
- VERSION = "2.2.14"
2
+ VERSION = "2.2.15"
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.14
4
+ version: 2.2.15
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-11 00:00:00.000000000 Z
12
+ date: 2012-10-12 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: 3353368250220839575
204
+ hash: -3522021324614826310
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: 3353368250220839575
213
+ hash: -3522021324614826310
214
214
  requirements: []
215
215
  rubyforge_project: rails_apps_composer
216
216
  rubygems_version: 1.8.24