mirror of
https://github.com/activerecord-hackery/ransack.git
synced 2022-11-09 13:47:45 -05:00
8c92a3b1f6
This is more flexible anyways (you can point to git gems, for example), but in this case it fixes an issue, because conditional dependencis in the gemspec don't really work that way: * On one hand, if I point to ransack through using `:path` or `:git`, I would need to have the ENV["RAILS"] variable defined so that I can bundle my application. * If I point to a released gem, development_dependencies are ignored anyways, but the specific value of the requirement would be set unconditionally according to the `ENV["RAILS"]` value at release time, definitely not what's expected
33 lines
1.3 KiB
Ruby
33 lines
1.3 KiB
Ruby
# -*- encoding: utf-8 -*-
|
|
$:.push File.expand_path("../lib", __FILE__)
|
|
require "ransack/version"
|
|
|
|
Gem::Specification.new do |s|
|
|
s.name = "ransack"
|
|
s.version = Ransack::VERSION
|
|
s.platform = Gem::Platform::RUBY
|
|
s.authors = ["Ernie Miller", "Ryan Bigg", "Jon Atack","Sean Carroll"]
|
|
s.email = ["ernie@erniemiller.org", "radarlistener@gmail.com", "jonnyatack@gmail.com","sfcarroll@gmail.com"]
|
|
s.homepage = "https://github.com/activerecord-hackery/ransack"
|
|
s.summary = %q{Object-based searching for Active Record and Mongoid (currently).}
|
|
s.description = %q{Ransack is the successor to the MetaSearch gem. It improves and expands upon MetaSearch's functionality, but does not have a 100%-compatible API.}
|
|
s.required_ruby_version = '>= 1.9'
|
|
s.license = 'MIT'
|
|
|
|
s.add_dependency 'actionpack', '>= 5.0'
|
|
s.add_dependency 'activerecord', '>= 5.0'
|
|
s.add_dependency 'activesupport', '>= 5.0'
|
|
s.add_dependency 'i18n'
|
|
s.add_dependency 'polyamorous', Ransack::VERSION.to_s
|
|
|
|
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"]
|
|
end
|