$:.push File.expand_path("../lib", __FILE__) require "wherex/version" Gem::Specification.new do |s| s.name = "wherex" s.version = Wherex::VERSION s.platform = Gem::Platform::RUBY s.authors = ["Jason King"] s.email = ["jk@handle.it"] s.homepage = "http://github.com/smathy/wherex" s.license = "MIT" s.summary = %q{Regexp for ActiveRecord finders} s.description = %q{This gem allows you to pass a Regexp as the value for any finder in ActiveRecord - Rails3 only} s.rubyforge_project = "wherex" s.files = `git ls-files`.split("\n") s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") s.require_paths = ["lib"] s.add_dependency 'arel', '>= 2.0' s.add_dependency 'activerecord', '>= 3.0' case ENV["RAILS_DB"] when "postgres" s.add_development_dependency 'pg' when "mysql" s.add_development_dependency 'mysql2' else s.add_development_dependency 'sqlite3' end s.add_development_dependency 'redgreen' s.add_development_dependency 'turn' s.add_development_dependency "rcov", ">= 0" s.add_development_dependency 'rake', '>= 0.8.3' end