Permalink
Browse files

adding name_model_with and getting rid of jeweller

  • Loading branch information...
1 parent eb6c869 commit 8236097363842c2706b51a7659084a5acab37857 Josh Susser & Ryan Dy committed Jun 27, 2011
Showing with 301 additions and 314 deletions.
  1. +1 −0 .gitignore
  2. +6 −0 .pairs
  3. +1 −2 Gemfile
  4. +11 −7 Gemfile.lock
  5. +7 −50 Rakefile
  6. +12 −40 fixture_builder.gemspec
  7. +7 −208 lib/fixture_builder.rb
  8. +213 −0 lib/fixture_builder/configuration.rb
  9. +3 −0 lib/fixture_builder/version.rb
  10. +36 −5 test/fixture_builder_test.rb
  11. +4 −2 test/test_helper.rb
View
@@ -1 +1,2 @@
pkg/
+.pairs
View
6 .pairs
@@ -0,0 +1,6 @@
+pairs:
+ rd: Ryan Dy
+ js: Josh Susser; jsusser
+email:
+ prefix: pair
+ domain: pivotallabs.com
View
@@ -1,4 +1,3 @@
source 'http://rubygems.org'
-gem 'rake'
-gem 'jeweler'
+gemspec
View
@@ -1,16 +1,20 @@
+PATH
+ remote: .
+ specs:
+ fixture_builder (0.2.2)
+
GEM
remote: http://rubygems.org/
specs:
- git (1.2.5)
- jeweler (1.5.2)
- bundler (~> 1.0.0)
- git (>= 1.2.5)
- rake
+ ansi (1.2.5)
rake (0.8.7)
+ turn (0.8.2)
+ ansi (>= 1.2.2)
PLATFORMS
ruby
DEPENDENCIES
- jeweler
- rake
+ fixture_builder!
+ rake (= 0.8.7)
+ turn
View
@@ -1,54 +1,11 @@
-require 'rubygems'
-require 'rake'
-
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gem|
- gem.name = "fixture_builder"
- gem.summary = %Q{Build YAML fixtures using object factories}
- gem.description = %Q{FixtureBuilder allows testers to use their existing factories, like FactoryGirl, to generate high performance fixtures that can be shared across all your tests}
- gem.email = "stellar256@hotmail.com"
- gem.homepage = "http://github.com/rdy/fixture_builder"
- gem.authors = ["Ryan Dy", "David Stevenson"]
- gem.rubyforge_project = "fixture_builder"
- gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
- end
- Jeweler::GemcutterTasks.new
-rescue LoadError
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
-end
+require 'bundler'
+include Rake::DSL
+Bundler::GemHelper.install_tasks
require 'rake/testtask'
-Rake::TestTask.new(:test) do |test|
- test.libs << 'lib' << 'test'
- test.pattern = 'test/**/test_*.rb'
- test.verbose = true
-end
-
-begin
- require 'rcov/rcovtask'
- Rcov::RcovTask.new do |test|
- test.libs << 'test'
- test.pattern = 'test/**/test_*.rb'
- test.verbose = true
- end
-rescue LoadError
- task :rcov do
- abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
- end
+Rake::TestTask.new(:test_all) do |t|
+ t.test_files = FileList['test/*_test.rb']
+ t.verbose = false
end
-task :test => :check_dependencies
-
-task :default => :test
-
-require 'rake/rdoctask'
-Rake::RDocTask.new do |rdoc|
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
-
- rdoc.rdoc_dir = 'rdoc'
- rdoc.title = "fixture_builder #{version}"
- rdoc.rdoc_files.include('README*')
- rdoc.rdoc_files.include('lib/**/*.rb')
-end
+task :default => :test_all
View
@@ -1,57 +1,29 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require 'fixture_builder/version'
Gem::Specification.new do |s|
s.name = %q{fixture_builder}
- s.version = "0.2.2"
-
+ s.version = FixtureBuilder::VERSION
+ s.platform = Gem::Platform::RUBY
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Ryan Dy", "David Stevenson"]
s.date = %q{2011-04-29}
s.description = %q{FixtureBuilder allows testers to use their existing factories, like FactoryGirl, to generate high performance fixtures that can be shared across all your tests}
- s.email = %q{stellar256@hotmail.com}
+ s.email = %q{mail@ryandy.com}
s.extra_rdoc_files = [
"README.markdown"
]
- s.files = [
- "MIT-LICENSE",
- "README.markdown",
- "Rakefile",
- "VERSION",
- "fixture_builder.gemspec",
- "lib/fixture_builder.rb",
- "lib/tasks/fixture_builder.rake",
- "test/fixture_builder_test.rb",
- "test/test_helper.rb"
- ]
- s.homepage = %q{http://github.com/rdy/fixture_builder}
+
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.require_paths = ["lib"]
+
+ s.homepage = %q{http://github.com/rdy/fixture_builder}
s.rubyforge_project = %q{fixture_builder}
- s.rubygems_version = %q{1.6.0}
s.summary = %q{Build YAML fixtures using object factories}
- s.test_files = [
- "test/fixture_builder_test.rb",
- "test/test_helper.rb"
- ]
-
- if s.respond_to? :specification_version then
- s.specification_version = 3
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_runtime_dependency(%q<rake>, [">= 0"])
- s.add_runtime_dependency(%q<jeweler>, [">= 0"])
- s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
- else
- s.add_dependency(%q<rake>, [">= 0"])
- s.add_dependency(%q<jeweler>, [">= 0"])
- s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
- end
- else
- s.add_dependency(%q<rake>, [">= 0"])
- s.add_dependency(%q<jeweler>, [">= 0"])
- s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
- end
+ s.add_development_dependency(%q{rake}, '0.8.7')
+ s.add_development_dependency(%q{turn})
end
Oops, something went wrong.

0 comments on commit 8236097

Please sign in to comment.