diff --git a/Gemfile b/Gemfile index 7da81e5..c80ee36 100644 --- a/Gemfile +++ b/Gemfile @@ -1,9 +1,3 @@ source "http://rubygems.org" -gem "appraisal" -gem "capybara", ">= 0.4.0" - -gem "mocha" -gem "rspec-rails", ">= 2.4.0" - -gem "factory_girl_rails" +gemspec diff --git a/Gemfile.lock b/Gemfile.lock index 779dd85..228b000 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,3 +1,8 @@ +PATH + remote: . + specs: + pacecar (1.5.2) + GEM remote: http://rubygems.org/ specs: @@ -28,7 +33,7 @@ GEM activemodel (= 3.0.3) activesupport (= 3.0.3) activesupport (3.0.3) - appraisal (0.2.0) + appraisal (0.4.0) bundler rake arel (2.0.6) @@ -116,8 +121,9 @@ PLATFORMS ruby DEPENDENCIES - appraisal + appraisal (~> 0.4) capybara (>= 0.4.0) factory_girl_rails mocha + pacecar! rspec-rails (>= 2.4.0) diff --git a/Rakefile b/Rakefile index 4598015..b7892ad 100644 --- a/Rakefile +++ b/Rakefile @@ -1,16 +1,6 @@ -# encoding: UTF-8 -require 'rubygems' -begin - require 'bundler/setup' -rescue LoadError - puts 'You must `gem install bundler` and `bundle install` to run rake tasks' -end - -require 'rake' -require 'rdoc/task' +require 'bundler/gem_tasks' require 'appraisal' -require 'rspec/core' require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) @@ -21,11 +11,3 @@ desc 'Test the plugin under all supported Rails versions.' task :all => ["appraisal:install"] do |t| exec('rake appraisal spec') end - -Rake::RDocTask.new(:rdoc) do |rdoc| - rdoc.rdoc_dir = 'rdoc' - rdoc.title = 'Pacecar' - rdoc.options << '--line-numbers' << '--inline-source' - rdoc.rdoc_files.include('README.rdoc') - rdoc.rdoc_files.include('lib/**/*.rb') -end diff --git a/gemfiles/rails-3.0.10-database-mysql.gemfile b/gemfiles/rails-3.0.10-database-mysql.gemfile index d2ec830..214594e 100644 --- a/gemfiles/rails-3.0.10-database-mysql.gemfile +++ b/gemfiles/rails-3.0.10-database-mysql.gemfile @@ -1,10 +1,8 @@ # This file was generated by Appraisal source "http://rubygems.org" -gem "appraisal" -gem "capybara", ">= 0.4.0" -gem "mocha" -gem "rspec-rails", ">= 2.4.0" -gem "factory_girl_rails" + gem "rails", "3.0.10" -gem "mysql" \ No newline at end of file +gem "mysql" + +gemspec :path=>"../" \ No newline at end of file diff --git a/gemfiles/rails-3.0.10-database-mysql.gemfile.lock b/gemfiles/rails-3.0.10-database-mysql.gemfile.lock index 7a568be..9c143c4 100644 --- a/gemfiles/rails-3.0.10-database-mysql.gemfile.lock +++ b/gemfiles/rails-3.0.10-database-mysql.gemfile.lock @@ -1,3 +1,8 @@ +PATH + remote: /Users/gabe/thoughtbot/pacecar + specs: + pacecar (1.5.2) + GEM remote: http://rubygems.org/ specs: @@ -28,7 +33,7 @@ GEM activemodel (= 3.0.10) activesupport (= 3.0.10) activesupport (3.0.10) - appraisal (0.3.8) + appraisal (0.4.0) bundler rake arel (2.0.10) @@ -116,10 +121,11 @@ PLATFORMS ruby DEPENDENCIES - appraisal + appraisal (~> 0.4) capybara (>= 0.4.0) factory_girl_rails mocha mysql + pacecar! rails (= 3.0.10) rspec-rails (>= 2.4.0) diff --git a/gemfiles/rails-3.0.10-database-mysql2.gemfile b/gemfiles/rails-3.0.10-database-mysql2.gemfile index 882b991..624e077 100644 --- a/gemfiles/rails-3.0.10-database-mysql2.gemfile +++ b/gemfiles/rails-3.0.10-database-mysql2.gemfile @@ -1,10 +1,8 @@ # This file was generated by Appraisal source "http://rubygems.org" -gem "appraisal" -gem "capybara", ">= 0.4.0" -gem "mocha" -gem "rspec-rails", ">= 2.4.0" -gem "factory_girl_rails" + gem "rails", "3.0.10" -gem "mysql2", "0.2.13" \ No newline at end of file +gem "mysql2", "0.2.13" + +gemspec :path=>"../" \ No newline at end of file diff --git a/gemfiles/rails-3.0.10-database-mysql2.gemfile.lock b/gemfiles/rails-3.0.10-database-mysql2.gemfile.lock index 36c9b7c..ef0061c 100644 --- a/gemfiles/rails-3.0.10-database-mysql2.gemfile.lock +++ b/gemfiles/rails-3.0.10-database-mysql2.gemfile.lock @@ -1,3 +1,8 @@ +PATH + remote: /Users/gabe/thoughtbot/pacecar + specs: + pacecar (1.5.2) + GEM remote: http://rubygems.org/ specs: @@ -28,7 +33,7 @@ GEM activemodel (= 3.0.10) activesupport (= 3.0.10) activesupport (3.0.10) - appraisal (0.3.8) + appraisal (0.4.0) bundler rake arel (2.0.10) @@ -116,10 +121,11 @@ PLATFORMS ruby DEPENDENCIES - appraisal + appraisal (~> 0.4) capybara (>= 0.4.0) factory_girl_rails mocha mysql2 (= 0.2.13) + pacecar! rails (= 3.0.10) rspec-rails (>= 2.4.0) diff --git a/gemfiles/rails-3.0.10-database-pg.gemfile b/gemfiles/rails-3.0.10-database-pg.gemfile index 0ba72f3..0365186 100644 --- a/gemfiles/rails-3.0.10-database-pg.gemfile +++ b/gemfiles/rails-3.0.10-database-pg.gemfile @@ -1,10 +1,8 @@ # This file was generated by Appraisal source "http://rubygems.org" -gem "appraisal" -gem "capybara", ">= 0.4.0" -gem "mocha" -gem "rspec-rails", ">= 2.4.0" -gem "factory_girl_rails" + gem "rails", "3.0.10" -gem "pg" \ No newline at end of file +gem "pg" + +gemspec :path=>"../" \ No newline at end of file diff --git a/gemfiles/rails-3.0.10-database-pg.gemfile.lock b/gemfiles/rails-3.0.10-database-pg.gemfile.lock index 20214a4..b48f98d 100644 --- a/gemfiles/rails-3.0.10-database-pg.gemfile.lock +++ b/gemfiles/rails-3.0.10-database-pg.gemfile.lock @@ -1,3 +1,8 @@ +PATH + remote: /Users/gabe/thoughtbot/pacecar + specs: + pacecar (1.5.2) + GEM remote: http://rubygems.org/ specs: @@ -28,7 +33,7 @@ GEM activemodel (= 3.0.10) activesupport (= 3.0.10) activesupport (3.0.10) - appraisal (0.3.8) + appraisal (0.4.0) bundler rake arel (2.0.10) @@ -116,10 +121,11 @@ PLATFORMS ruby DEPENDENCIES - appraisal + appraisal (~> 0.4) capybara (>= 0.4.0) factory_girl_rails mocha + pacecar! pg rails (= 3.0.10) rspec-rails (>= 2.4.0) diff --git a/gemfiles/rails-3.0.10-database-sqlite3-ruby.gemfile b/gemfiles/rails-3.0.10-database-sqlite3-ruby.gemfile index bcb6e8c..e67cd6b 100644 --- a/gemfiles/rails-3.0.10-database-sqlite3-ruby.gemfile +++ b/gemfiles/rails-3.0.10-database-sqlite3-ruby.gemfile @@ -1,10 +1,8 @@ # This file was generated by Appraisal source "http://rubygems.org" -gem "appraisal" -gem "capybara", ">= 0.4.0" -gem "mocha" -gem "rspec-rails", ">= 2.4.0" -gem "factory_girl_rails" + gem "rails", "3.0.10" -gem "sqlite3-ruby" \ No newline at end of file +gem "sqlite3-ruby" + +gemspec :path=>"../" \ No newline at end of file diff --git a/gemfiles/rails-3.0.10-database-sqlite3-ruby.gemfile.lock b/gemfiles/rails-3.0.10-database-sqlite3-ruby.gemfile.lock index 32ca64c..d9d2984 100644 --- a/gemfiles/rails-3.0.10-database-sqlite3-ruby.gemfile.lock +++ b/gemfiles/rails-3.0.10-database-sqlite3-ruby.gemfile.lock @@ -1,3 +1,8 @@ +PATH + remote: /Users/gabe/thoughtbot/pacecar + specs: + pacecar (1.5.2) + GEM remote: http://rubygems.org/ specs: @@ -28,7 +33,7 @@ GEM activemodel (= 3.0.10) activesupport (= 3.0.10) activesupport (3.0.10) - appraisal (0.3.8) + appraisal (0.4.0) bundler rake arel (2.0.10) @@ -118,10 +123,11 @@ PLATFORMS ruby DEPENDENCIES - appraisal + appraisal (~> 0.4) capybara (>= 0.4.0) factory_girl_rails mocha + pacecar! rails (= 3.0.10) rspec-rails (>= 2.4.0) sqlite3-ruby diff --git a/gemfiles/rails-3.0.10-database-sqlite3.gemfile b/gemfiles/rails-3.0.10-database-sqlite3.gemfile index 8134c65..08cde58 100644 --- a/gemfiles/rails-3.0.10-database-sqlite3.gemfile +++ b/gemfiles/rails-3.0.10-database-sqlite3.gemfile @@ -1,10 +1,8 @@ # This file was generated by Appraisal source "http://rubygems.org" -gem "appraisal" -gem "capybara", ">= 0.4.0" -gem "mocha" -gem "rspec-rails", ">= 2.4.0" -gem "factory_girl_rails" + gem "rails", "3.0.10" -gem "sqlite3" \ No newline at end of file +gem "sqlite3" + +gemspec :path=>"../" \ No newline at end of file diff --git a/gemfiles/rails-3.0.10-database-sqlite3.gemfile.lock b/gemfiles/rails-3.0.10-database-sqlite3.gemfile.lock index 62d0c6c..c301254 100644 --- a/gemfiles/rails-3.0.10-database-sqlite3.gemfile.lock +++ b/gemfiles/rails-3.0.10-database-sqlite3.gemfile.lock @@ -1,3 +1,8 @@ +PATH + remote: /Users/gabe/thoughtbot/pacecar + specs: + pacecar (1.5.2) + GEM remote: http://rubygems.org/ specs: @@ -28,7 +33,7 @@ GEM activemodel (= 3.0.10) activesupport (= 3.0.10) activesupport (3.0.10) - appraisal (0.3.8) + appraisal (0.4.0) bundler rake arel (2.0.10) @@ -116,10 +121,11 @@ PLATFORMS ruby DEPENDENCIES - appraisal + appraisal (~> 0.4) capybara (>= 0.4.0) factory_girl_rails mocha + pacecar! rails (= 3.0.10) rspec-rails (>= 2.4.0) sqlite3 diff --git a/gemfiles/rails-3.1.1-database-mysql.gemfile b/gemfiles/rails-3.1.1-database-mysql.gemfile index cb1bb47..907f4a7 100644 --- a/gemfiles/rails-3.1.1-database-mysql.gemfile +++ b/gemfiles/rails-3.1.1-database-mysql.gemfile @@ -1,10 +1,8 @@ # This file was generated by Appraisal source "http://rubygems.org" -gem "appraisal" -gem "capybara", ">= 0.4.0" -gem "mocha" -gem "rspec-rails", ">= 2.4.0" -gem "factory_girl_rails" + gem "rails", "3.1.1" -gem "mysql" \ No newline at end of file +gem "mysql" + +gemspec :path=>"../" \ No newline at end of file diff --git a/gemfiles/rails-3.1.1-database-mysql.gemfile.lock b/gemfiles/rails-3.1.1-database-mysql.gemfile.lock index 050a3f6..5e690e9 100644 --- a/gemfiles/rails-3.1.1-database-mysql.gemfile.lock +++ b/gemfiles/rails-3.1.1-database-mysql.gemfile.lock @@ -1,3 +1,8 @@ +PATH + remote: /Users/gabe/thoughtbot/pacecar + specs: + pacecar (1.5.2) + GEM remote: http://rubygems.org/ specs: @@ -29,7 +34,7 @@ GEM activesupport (= 3.1.1) activesupport (3.1.1) multi_json (~> 1.0) - appraisal (0.3.8) + appraisal (0.4.0) bundler rake arel (2.2.1) @@ -130,10 +135,11 @@ PLATFORMS ruby DEPENDENCIES - appraisal + appraisal (~> 0.4) capybara (>= 0.4.0) factory_girl_rails mocha mysql + pacecar! rails (= 3.1.1) rspec-rails (>= 2.4.0) diff --git a/gemfiles/rails-3.1.1-database-mysql2.gemfile b/gemfiles/rails-3.1.1-database-mysql2.gemfile index a6f068e..10e55d2 100644 --- a/gemfiles/rails-3.1.1-database-mysql2.gemfile +++ b/gemfiles/rails-3.1.1-database-mysql2.gemfile @@ -1,10 +1,8 @@ # This file was generated by Appraisal source "http://rubygems.org" -gem "appraisal" -gem "capybara", ">= 0.4.0" -gem "mocha" -gem "rspec-rails", ">= 2.4.0" -gem "factory_girl_rails" + gem "rails", "3.1.1" -gem "mysql2", "0.3.7" \ No newline at end of file +gem "mysql2", "0.3.7" + +gemspec :path=>"../" \ No newline at end of file diff --git a/gemfiles/rails-3.1.1-database-mysql2.gemfile.lock b/gemfiles/rails-3.1.1-database-mysql2.gemfile.lock index 12d6ed0..4f1ea37 100644 --- a/gemfiles/rails-3.1.1-database-mysql2.gemfile.lock +++ b/gemfiles/rails-3.1.1-database-mysql2.gemfile.lock @@ -1,3 +1,8 @@ +PATH + remote: /Users/gabe/thoughtbot/pacecar + specs: + pacecar (1.5.2) + GEM remote: http://rubygems.org/ specs: @@ -29,7 +34,7 @@ GEM activesupport (= 3.1.1) activesupport (3.1.1) multi_json (~> 1.0) - appraisal (0.3.8) + appraisal (0.4.0) bundler rake arel (2.2.1) @@ -130,10 +135,11 @@ PLATFORMS ruby DEPENDENCIES - appraisal + appraisal (~> 0.4) capybara (>= 0.4.0) factory_girl_rails mocha mysql2 (= 0.3.7) + pacecar! rails (= 3.1.1) rspec-rails (>= 2.4.0) diff --git a/gemfiles/rails-3.1.1-database-pg.gemfile b/gemfiles/rails-3.1.1-database-pg.gemfile index c90c2a6..39de5c7 100644 --- a/gemfiles/rails-3.1.1-database-pg.gemfile +++ b/gemfiles/rails-3.1.1-database-pg.gemfile @@ -1,10 +1,8 @@ # This file was generated by Appraisal source "http://rubygems.org" -gem "appraisal" -gem "capybara", ">= 0.4.0" -gem "mocha" -gem "rspec-rails", ">= 2.4.0" -gem "factory_girl_rails" + gem "rails", "3.1.1" -gem "pg" \ No newline at end of file +gem "pg" + +gemspec :path=>"../" \ No newline at end of file diff --git a/gemfiles/rails-3.1.1-database-pg.gemfile.lock b/gemfiles/rails-3.1.1-database-pg.gemfile.lock index 6efd130..25babcf 100644 --- a/gemfiles/rails-3.1.1-database-pg.gemfile.lock +++ b/gemfiles/rails-3.1.1-database-pg.gemfile.lock @@ -1,3 +1,8 @@ +PATH + remote: /Users/gabe/thoughtbot/pacecar + specs: + pacecar (1.5.2) + GEM remote: http://rubygems.org/ specs: @@ -29,7 +34,7 @@ GEM activesupport (= 3.1.1) activesupport (3.1.1) multi_json (~> 1.0) - appraisal (0.3.8) + appraisal (0.4.0) bundler rake arel (2.2.1) @@ -130,10 +135,11 @@ PLATFORMS ruby DEPENDENCIES - appraisal + appraisal (~> 0.4) capybara (>= 0.4.0) factory_girl_rails mocha + pacecar! pg rails (= 3.1.1) rspec-rails (>= 2.4.0) diff --git a/gemfiles/rails-3.1.1-database-sqlite3-ruby.gemfile b/gemfiles/rails-3.1.1-database-sqlite3-ruby.gemfile index 936275a..8ad76e3 100644 --- a/gemfiles/rails-3.1.1-database-sqlite3-ruby.gemfile +++ b/gemfiles/rails-3.1.1-database-sqlite3-ruby.gemfile @@ -1,10 +1,8 @@ # This file was generated by Appraisal source "http://rubygems.org" -gem "appraisal" -gem "capybara", ">= 0.4.0" -gem "mocha" -gem "rspec-rails", ">= 2.4.0" -gem "factory_girl_rails" + gem "rails", "3.1.1" -gem "sqlite3-ruby" \ No newline at end of file +gem "sqlite3-ruby" + +gemspec :path=>"../" \ No newline at end of file diff --git a/gemfiles/rails-3.1.1-database-sqlite3-ruby.gemfile.lock b/gemfiles/rails-3.1.1-database-sqlite3-ruby.gemfile.lock index 0ac68f9..a1d3d5a 100644 --- a/gemfiles/rails-3.1.1-database-sqlite3-ruby.gemfile.lock +++ b/gemfiles/rails-3.1.1-database-sqlite3-ruby.gemfile.lock @@ -1,3 +1,8 @@ +PATH + remote: /Users/gabe/thoughtbot/pacecar + specs: + pacecar (1.5.2) + GEM remote: http://rubygems.org/ specs: @@ -29,7 +34,7 @@ GEM activesupport (= 3.1.1) activesupport (3.1.1) multi_json (~> 1.0) - appraisal (0.3.8) + appraisal (0.4.0) bundler rake arel (2.2.1) @@ -132,10 +137,11 @@ PLATFORMS ruby DEPENDENCIES - appraisal + appraisal (~> 0.4) capybara (>= 0.4.0) factory_girl_rails mocha + pacecar! rails (= 3.1.1) rspec-rails (>= 2.4.0) sqlite3-ruby diff --git a/gemfiles/rails-3.1.1-database-sqlite3.gemfile b/gemfiles/rails-3.1.1-database-sqlite3.gemfile index 7e44b36..fdf3fd6 100644 --- a/gemfiles/rails-3.1.1-database-sqlite3.gemfile +++ b/gemfiles/rails-3.1.1-database-sqlite3.gemfile @@ -1,10 +1,8 @@ # This file was generated by Appraisal source "http://rubygems.org" -gem "appraisal" -gem "capybara", ">= 0.4.0" -gem "mocha" -gem "rspec-rails", ">= 2.4.0" -gem "factory_girl_rails" + gem "rails", "3.1.1" -gem "sqlite3" \ No newline at end of file +gem "sqlite3" + +gemspec :path=>"../" \ No newline at end of file diff --git a/gemfiles/rails-3.1.1-database-sqlite3.gemfile.lock b/gemfiles/rails-3.1.1-database-sqlite3.gemfile.lock index 6210be0..4efd38a 100644 --- a/gemfiles/rails-3.1.1-database-sqlite3.gemfile.lock +++ b/gemfiles/rails-3.1.1-database-sqlite3.gemfile.lock @@ -1,3 +1,8 @@ +PATH + remote: /Users/gabe/thoughtbot/pacecar + specs: + pacecar (1.5.2) + GEM remote: http://rubygems.org/ specs: @@ -29,7 +34,7 @@ GEM activesupport (= 3.1.1) activesupport (3.1.1) multi_json (~> 1.0) - appraisal (0.3.8) + appraisal (0.4.0) bundler rake arel (2.2.1) @@ -130,10 +135,11 @@ PLATFORMS ruby DEPENDENCIES - appraisal + appraisal (~> 0.4) capybara (>= 0.4.0) factory_girl_rails mocha + pacecar! rails (= 3.1.1) rspec-rails (>= 2.4.0) sqlite3 diff --git a/lib/pacecar.rb b/lib/pacecar.rb index 3773c2a..3eb8936 100644 --- a/lib/pacecar.rb +++ b/lib/pacecar.rb @@ -11,6 +11,7 @@ require 'pacecar/search' require 'pacecar/state' require 'pacecar/numeric' +require 'pacecar/version' module Pacecar def self.included(base) diff --git a/lib/pacecar/version.rb b/lib/pacecar/version.rb new file mode 100644 index 0000000..61aeefe --- /dev/null +++ b/lib/pacecar/version.rb @@ -0,0 +1,3 @@ +module Pacecar + VERSION = '1.5.2'.freeze +end diff --git a/pacecar.gemspec b/pacecar.gemspec index 0f027b9..c7a6514 100644 --- a/pacecar.gemspec +++ b/pacecar.gemspec @@ -1,11 +1,25 @@ +# -*- encoding: utf-8 -*- +$:.push File.expand_path("../lib", __FILE__) +require "pacecar/version" + Gem::Specification.new do |s| - s.name = 'pacecar' - s.version = '1.5.2' - s.date = %q{2011-10-12} - s.email = 'support@thoughtbot.com' - s.homepage = 'http://github.com/thoughtbot/pacecar' - s.summary = 'Pacecar adds scope methods to ActiveRecord classes via database column introspection.' + s.name = 'pacecar' + s.version = Pacecar::VERSION.dup + s.platform = Gem::Platform::RUBY + s.authors = ['Matt Jankowski', 'Chad Pytel', 'Ryan McGeary', 'Mike Burns', 'Tristan Dunn'] + s.email = 'support@thoughtbot.com' + s.homepage = 'http://github.com/thoughtbot/pacecar' + s.summary = 'Pacecar adds scope methods to ActiveRecord classes via database column introspection.' s.description = 'Generated scopes for ActiveRecord classes.' - s.files = Dir["{lib}/**/*"] + ["init.rb", "MIT-LICENSE", "Rakefile", "Gemfile", "README.md"] - s.authors = ['Matt Jankowski', 'Chad Pytel', 'Ryan McGeary', 'Mike Burns', 'Tristan Dunn'] + + s.files = `git ls-files`.split("\n") + s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") + s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } + s.require_paths = ["lib"] + + s.add_development_dependency("appraisal", "~> 0.4") + s.add_development_dependency("capybara", ">= 0.4.0") + s.add_development_dependency("mocha") + s.add_development_dependency("rspec-rails", ">= 2.4.0") + s.add_development_dependency("factory_girl_rails") end