Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use Bundler gem conventions.

  • Loading branch information...
commit ebf24bd6df71d8b3ccffbe7101fd755bc682092e 1 parent e77ecce
@gabebw gabebw authored
Showing with 156 additions and 116 deletions.
  1. +1 −7 Gemfile
  2. +8 −2 Gemfile.lock
  3. +1 −19 Rakefile
  4. +4 −6 gemfiles/rails-3.0.10-database-mysql.gemfile
  5. +8 −2 gemfiles/rails-3.0.10-database-mysql.gemfile.lock
  6. +4 −6 gemfiles/rails-3.0.10-database-mysql2.gemfile
  7. +8 −2 gemfiles/rails-3.0.10-database-mysql2.gemfile.lock
  8. +4 −6 gemfiles/rails-3.0.10-database-pg.gemfile
  9. +8 −2 gemfiles/rails-3.0.10-database-pg.gemfile.lock
  10. +4 −6 gemfiles/rails-3.0.10-database-sqlite3-ruby.gemfile
  11. +8 −2 gemfiles/rails-3.0.10-database-sqlite3-ruby.gemfile.lock
  12. +4 −6 gemfiles/rails-3.0.10-database-sqlite3.gemfile
  13. +8 −2 gemfiles/rails-3.0.10-database-sqlite3.gemfile.lock
  14. +4 −6 gemfiles/rails-3.1.1-database-mysql.gemfile
  15. +8 −2 gemfiles/rails-3.1.1-database-mysql.gemfile.lock
  16. +4 −6 gemfiles/rails-3.1.1-database-mysql2.gemfile
  17. +8 −2 gemfiles/rails-3.1.1-database-mysql2.gemfile.lock
  18. +4 −6 gemfiles/rails-3.1.1-database-pg.gemfile
  19. +8 −2 gemfiles/rails-3.1.1-database-pg.gemfile.lock
  20. +4 −6 gemfiles/rails-3.1.1-database-sqlite3-ruby.gemfile
  21. +8 −2 gemfiles/rails-3.1.1-database-sqlite3-ruby.gemfile.lock
  22. +4 −6 gemfiles/rails-3.1.1-database-sqlite3.gemfile
  23. +8 −2 gemfiles/rails-3.1.1-database-sqlite3.gemfile.lock
  24. +1 −0  lib/pacecar.rb
  25. +3 −0  lib/pacecar/version.rb
  26. +22 −8 pacecar.gemspec
View
8 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
View
10 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)
View
20 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
View
10 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"
+gem "mysql"
+
+gemspec :path=>"../"
View
10 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)
View
10 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"
+gem "mysql2", "0.2.13"
+
+gemspec :path=>"../"
View
10 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)
View
10 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"
+gem "pg"
+
+gemspec :path=>"../"
View
10 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)
View
10 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"
+gem "sqlite3-ruby"
+
+gemspec :path=>"../"
View
10 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
View
10 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"
+gem "sqlite3"
+
+gemspec :path=>"../"
View
10 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
View
10 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"
+gem "mysql"
+
+gemspec :path=>"../"
View
10 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)
View
10 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"
+gem "mysql2", "0.3.7"
+
+gemspec :path=>"../"
View
10 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)
View
10 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"
+gem "pg"
+
+gemspec :path=>"../"
View
10 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)
View
10 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"
+gem "sqlite3-ruby"
+
+gemspec :path=>"../"
View
10 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
View
10 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"
+gem "sqlite3"
+
+gemspec :path=>"../"
View
10 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
View
1  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)
View
3  lib/pacecar/version.rb
@@ -0,0 +1,3 @@
+module Pacecar
+ VERSION = '1.5.2'.freeze
+end
View
30 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
Please sign in to comment.
Something went wrong with that request. Please try again.