Skip to content

Commit

Permalink
version 0.0.6. removed factory_girl dependency in gemspec and require
Browse files Browse the repository at this point in the history
  • Loading branch information
garysweaver committed Nov 1, 2012
1 parent 83dd630 commit 7843fd2
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
22 changes: 21 additions & 1 deletion README.md
@@ -1,14 +1,32 @@
Stepford
=====

Stepford is a CLI to create starter [Factory Girl][factory_girl] factories for all of your Rails models.
Stepford is a CLI to create starter [Factory Girl][factory_girl] factories for all of your Rails models, e.g.

require 'factory_girl_rails'

FactoryGirl.define do

factory :item do
association :created_by, factory: :user
created_at { 2.weeks.ago }
name 'Test Name'
price 1.23
updated_at { 2.weeks.ago }
end

end

### Setup

In your Rails 3+ project, add this to your Gemfile:

gem 'stepford'

If you don't already have it, add this also:

gem 'factory_girl_rails'

Then run:

bundle install
Expand Down Expand Up @@ -41,6 +59,8 @@ If you have duplicate factory definitions during Rails load, it may complain. Ju

Uses the Ruby 1.9 hash syntax in generated factories. If you don't have 1.9, it might not fail during generation, but it may later when loading the factories.

If you are using STI, you'll need to manually fix the value that goes into the `type` attribute, or remove it.

### License

Copyright (c) 2012 Gary S. Weaver, released under the [MIT license][lic].
Expand Down
1 change: 0 additions & 1 deletion lib/stepford/factory_girl.rb
@@ -1,4 +1,3 @@
require 'factory_girl'
require 'stepford/common'

module Stepford
Expand Down
2 changes: 1 addition & 1 deletion lib/stepford/version.rb
@@ -1,3 +1,3 @@
module Stepford
VERSION = '0.0.5'
VERSION = '0.0.6'
end
1 change: 0 additions & 1 deletion stepford.gemspec
Expand Up @@ -14,7 +14,6 @@ Gem::Specification.new do |s|
s.license = 'MIT'
s.add_dependency 'thor'
s.add_runtime_dependency 'rails'
s.add_runtime_dependency 'factory_girl'
s.executables = %w(stepford)
s.require_paths = ["lib"]
end

0 comments on commit 7843fd2

Please sign in to comment.