Permalink
Browse files

Removed Jeweler dependency.

  • Loading branch information...
1 parent 59e66f8 commit cdff38bd088ffb7d61e7977348b738e777b33771 @jyurek jyurek committed May 19, 2010
Showing with 29 additions and 155 deletions.
  1. +0 −36 Rakefile
  2. +0 −1 VERSION
  3. +28 −118 factory_girl.gemspec
  4. +1 −0 lib/factory_girl/factory.rb
View
36 Rakefile
@@ -41,42 +41,6 @@ task :sync_docs => 'rdoc' do
`rsync -ave ssh rdoc/ dev@dev.thoughtbot.com:/home/dev/www/dev.thoughtbot.com/factory_girl`
end
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |s|
- s.name = %q{factory_girl}
- s.summary = %q{factory_girl provides a framework and DSL for defining and
- using model instance factories.}
- s.description = %q{factory_girl provides a framework and DSL for defining and
- using factories - less error-prone, more explicit, and
- all-around easier to work with than fixtures.}
-
- s.files = FileList['[A-Z]*', 'lib/**/*.rb', 'spec/**/*.rb']
- s.require_path = 'lib'
- s.test_files = Dir[*['spec/**/*_spec.rb']]
-
- s.has_rdoc = true
- s.extra_rdoc_files = ["README.rdoc"]
- s.rdoc_options = ['--line-numbers', "--main", "README.rdoc"]
-
- s.authors = ["Joe Ferris"]
- s.email = %q{jferris@thoughtbot.com}
- s.homepage = "http://thoughtbot.com/projects/factory_girl"
-
- s.add_development_dependency('rcov')
- s.add_development_dependency('rspec')
- s.add_development_dependency('cucumber')
- s.add_development_dependency('activerecord', '2.3.5')
- s.add_development_dependency('activerecord', '3.0.0.beta3')
- s.add_development_dependency('rr')
- s.add_development_dependency('sqlite3')
-
- s.platform = Gem::Platform::RUBY
- end
-rescue LoadError
- puts "Jeweler not available. Install it with: gem install jeweler"
-end
-
desc "Clean files generated by rake tasks"
task :clobber => [:clobber_rdoc, :clobber_rcov]
View
1 VERSION
@@ -1 +0,0 @@
-1.2.4
View
146 factory_girl.gemspec
@@ -1,125 +1,35 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
-# -*- encoding: utf-8 -*-
-
+$LOAD_PATH << File.join(File.dirname(__FILE__), 'lib')
+require 'factory_girl'
Gem::Specification.new do |s|
- s.name = %q{factory_girl}
- s.version = "1.2.4"
-
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Joe Ferris"]
- s.date = %q{2010-04-22}
- s.description = %q{factory_girl provides a framework and DSL for defining and
+ s.name = %q{factory_girl}
+ s.version = Factory::VERSION
+ s.summary = %q{factory_girl provides a framework and DSL for defining and
+ using model instance factories.}
+ s.description = %q{factory_girl provides a framework and DSL for defining and
using factories - less error-prone, more explicit, and
all-around easier to work with than fixtures.}
- s.email = %q{jferris@thoughtbot.com}
- s.extra_rdoc_files = [
- "README.rdoc"
- ]
- s.files = [
- "CONTRIBUTION_GUIDELINES.rdoc",
- "Changelog",
- "LICENSE",
- "README.rdoc",
- "Rakefile",
- "VERSION",
- "lib/factory_girl.rb",
- "lib/factory_girl/aliases.rb",
- "lib/factory_girl/attribute.rb",
- "lib/factory_girl/attribute/association.rb",
- "lib/factory_girl/attribute/callback.rb",
- "lib/factory_girl/attribute/dynamic.rb",
- "lib/factory_girl/attribute/static.rb",
- "lib/factory_girl/factory.rb",
- "lib/factory_girl/proxy.rb",
- "lib/factory_girl/proxy/attributes_for.rb",
- "lib/factory_girl/proxy/build.rb",
- "lib/factory_girl/proxy/create.rb",
- "lib/factory_girl/proxy/stub.rb",
- "lib/factory_girl/sequence.rb",
- "lib/factory_girl/step_definitions.rb",
- "lib/factory_girl/syntax.rb",
- "lib/factory_girl/syntax/blueprint.rb",
- "lib/factory_girl/syntax/generate.rb",
- "lib/factory_girl/syntax/make.rb",
- "lib/factory_girl/syntax/sham.rb",
- "spec/factory_girl/aliases_spec.rb",
- "spec/factory_girl/attribute/association_spec.rb",
- "spec/factory_girl/attribute/callback_spec.rb",
- "spec/factory_girl/attribute/dynamic_spec.rb",
- "spec/factory_girl/attribute/static_spec.rb",
- "spec/factory_girl/attribute_spec.rb",
- "spec/factory_girl/factory_spec.rb",
- "spec/factory_girl/proxy/attributes_for_spec.rb",
- "spec/factory_girl/proxy/build_spec.rb",
- "spec/factory_girl/proxy/create_spec.rb",
- "spec/factory_girl/proxy/stub_spec.rb",
- "spec/factory_girl/proxy_spec.rb",
- "spec/factory_girl/sequence_spec.rb",
- "spec/factory_girl/syntax/blueprint_spec.rb",
- "spec/factory_girl/syntax/generate_spec.rb",
- "spec/factory_girl/syntax/make_spec.rb",
- "spec/factory_girl/syntax/sham_spec.rb",
- "spec/integration_spec.rb",
- "spec/models.rb",
- "spec/spec_helper.rb"
- ]
- s.homepage = %q{http://thoughtbot.com/projects/factory_girl}
- s.rdoc_options = ["--line-numbers", "--main", "README.rdoc"]
- s.require_paths = ["lib"]
- s.rubygems_version = %q{1.3.6}
- s.summary = %q{factory_girl provides a framework and DSL for defining and using model instance factories.}
- s.test_files = [
- "spec/factory_girl/aliases_spec.rb",
- "spec/factory_girl/attribute/association_spec.rb",
- "spec/factory_girl/attribute/callback_spec.rb",
- "spec/factory_girl/attribute/dynamic_spec.rb",
- "spec/factory_girl/attribute/static_spec.rb",
- "spec/factory_girl/attribute_spec.rb",
- "spec/factory_girl/factory_spec.rb",
- "spec/factory_girl/proxy/attributes_for_spec.rb",
- "spec/factory_girl/proxy/build_spec.rb",
- "spec/factory_girl/proxy/create_spec.rb",
- "spec/factory_girl/proxy/stub_spec.rb",
- "spec/factory_girl/proxy_spec.rb",
- "spec/factory_girl/sequence_spec.rb",
- "spec/factory_girl/syntax/blueprint_spec.rb",
- "spec/factory_girl/syntax/generate_spec.rb",
- "spec/factory_girl/syntax/make_spec.rb",
- "spec/factory_girl/syntax/sham_spec.rb",
- "spec/integration_spec.rb"
- ]
- if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 3
+ s.files = Dir['[A-Z]*', 'lib/**/*.rb', 'spec/**/*.rb', 'features/**/*']
+ s.require_path = 'lib'
+ s.test_files = Dir['spec/**/*_spec.rb', 'features/**/*']
+
+ s.has_rdoc = true
+ s.extra_rdoc_files = ["README.rdoc"]
+ s.rdoc_options = ['--line-numbers', "--main", "README.rdoc"]
+
+ s.authors = ["Joe Ferris"]
+ s.email = %q{jferris@thoughtbot.com}
+ s.homepage = "http://thoughtbot.com/projects/factory_girl"
+
+ s.add_development_dependency('rcov')
+ s.add_development_dependency('rspec')
+ s.add_development_dependency('cucumber')
+ s.add_development_dependency('activerecord', '~>2.3.5')
+ s.add_development_dependency('activerecord', '~>3.0.0.beta3')
+ s.add_development_dependency('rr')
+ s.add_development_dependency('sqlite3')
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
- s.add_development_dependency(%q<rcov>, [">= 0"])
- s.add_development_dependency(%q<rspec>, [">= 0"])
- s.add_development_dependency(%q<cucumber>, [">= 0"])
- s.add_development_dependency(%q<activerecord>, ["= 2.3.5"])
- s.add_development_dependency(%q<activerecord>, ["= 3.0.0.beta3"])
- s.add_development_dependency(%q<rr>, [">= 0"])
- s.add_development_dependency(%q<sqlite3>, [">= 0"])
- else
- s.add_dependency(%q<rcov>, [">= 0"])
- s.add_dependency(%q<rspec>, [">= 0"])
- s.add_dependency(%q<cucumber>, [">= 0"])
- s.add_dependency(%q<activerecord>, ["= 2.3.5"])
- s.add_dependency(%q<activerecord>, ["= 3.0.0.beta3"])
- s.add_dependency(%q<rr>, [">= 0"])
- s.add_dependency(%q<sqlite3>, [">= 0"])
- end
- else
- s.add_dependency(%q<rcov>, [">= 0"])
- s.add_dependency(%q<rspec>, [">= 0"])
- s.add_dependency(%q<cucumber>, [">= 0"])
- s.add_dependency(%q<activerecord>, ["= 2.3.5"])
- s.add_dependency(%q<activerecord>, ["= 3.0.0.beta3"])
- s.add_dependency(%q<rr>, [">= 0"])
- s.add_dependency(%q<sqlite3>, [">= 0"])
- end
+ s.platform = Gem::Platform::RUBY
+ s.rubygems_version = %q{1.2.0}
end
View
1 lib/factory_girl/factory.rb
@@ -1,4 +1,5 @@
class Factory
+ VERSION = "1.2.4"
# Raised when a factory is defined that attempts to instantiate itself.
class AssociationDefinitionError < RuntimeError

0 comments on commit cdff38b

Please sign in to comment.