Skip to content

Commit

Permalink
fixing rails/init stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
dfl committed Oct 14, 2008
1 parent 1cfff81 commit 07c95e9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG
@@ -1,3 +1,8 @@
* [10/14/2008] - 0.0.2 (gem release)

Fixed problem with rails/init.rb


* [08/05/2008] - 0.0.1 (gem release)

Initial release as a gem.
Expand Down
6 changes: 3 additions & 3 deletions factories-and-workers.gemspec
@@ -1,9 +1,9 @@
Gem::Specification.new do |spec|
spec.name = 'factories-and-workers'
spec.version = '0.0.1'
spec.date = '2008-08-13'
spec.version = '0.0.2'
spec.date = '2008-10-14'
spec.summary = 'Fixtures replacement'
spec.email = 'and@prospectmarkets.com'
spec.email = 'david@internautdesign.com'
spec.homepage = 'http://blog.internautdesign.com/2008/6/4/factories-and-workers-plugin'
spec.description = 'Fixtures replacement'
spec.has_rdoc = true
Expand Down
4 changes: 2 additions & 2 deletions init.rb
@@ -1,2 +1,2 @@
require 'factories-and-workers'
require File.dirname(__FILE__)+'/rails/init.rb' if RAILS_ENV=='test'
require "factories-and-workers"
require File.dirname(__FILE__)+"/rails/init.rb" if defined?(RAILS_ENV)
4 changes: 2 additions & 2 deletions rails/init.rb
@@ -1,8 +1,8 @@
require 'fileutils'

config.after_initialize do
# config.after_initialize do
%w(spec/factories.rb spec/factory_workers.rb test/factories.rb test/factory_workers.rb).each do |file|
path = File.join(Dir.pwd, file)
require path if File.exists?(path)
end
end
# end

0 comments on commit 07c95e9

Please sign in to comment.