public
Description: Easily search you ActiveRecord models with a simple query language using a named scope.
Homepage: http://techblog.floorplanner.com/2008/07/26/easy-search-with-activerecord/
Clone URL: git://github.com/wvanbergen/scoped_search.git
scoped_search / scoped_search.gemspec
100644 32 lines (26 sloc) 2.476 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Gem::Specification.new do |s|
  s.name = 'scoped_search'
  
  # Do not change the version and date fields by hand. This will be done
  # automatically by the gem release script.
  s.version = "2.0.1"
  s.date = "2009-10-02"
 
  s.summary = "Easily search you ActiveRecord models with a simple query language using a named scope."
  s.description = <<EOS
Scoped search makes it easy to search your ActiveRecord-based models.
It will create a named scope :search_for that can be called with a query string. It will build an SQL query using
the provided query string and a definition that specifies on what fields to search. Because the functionality is
built on named_scope, the result of the search_for call can be used like any other named_scope, so it can be
chained with another scope or combined with will_paginate."
EOS
 
  s.authors = ['Willem van Bergen', 'Wes Hays']
  s.email = ['willem@vanbergen.org', 'weshays@gbdev.com']
  s.homepage = 'http://wiki.github.com/wvanbergen/scoped_search'
 
  s.add_runtime_dependency('activerecord', '>= 2.1.0')
  s.add_development_dependency('rspec', '>= 1.1.4')
 
  s.rdoc_options << '--title' << s.name << '--main' << 'README.rdoc' << '--line-numbers' << '--inline-source'
  s.extra_rdoc_files = ['README.rdoc']
 
  # Do not change the files and test_files fields by hand. This will be done
  # automatically by the gem release script.
  s.files = %w(spec/spec_helper.rb spec/integration/string_querying_spec.rb spec/integration/relation_querying_spec.rb .gitignore spec/lib/mocks.rb scoped_search.gemspec lib/scoped_search/query_language/parser.rb LICENSE spec/lib/matchers.rb lib/scoped_search/definition.rb init.rb spec/unit/tokenizer_spec.rb spec/unit/parser_spec.rb spec/unit/ast_spec.rb lib/scoped_search/query_language/ast.rb spec/lib/database.rb Rakefile tasks/github-gem.rake spec/unit/query_builder_spec.rb lib/scoped_search/query_language.rb lib/scoped_search/query_builder.rb README.rdoc spec/unit/definition_spec.rb spec/database.yml spec/integration/api_spec.rb spec/integration/ordinal_querying_spec.rb lib/scoped_search/query_language/tokenizer.rb lib/scoped_search.rb)
  s.test_files = %w(spec/integration/string_querying_spec.rb spec/integration/relation_querying_spec.rb spec/unit/tokenizer_spec.rb spec/unit/parser_spec.rb spec/unit/ast_spec.rb spec/unit/query_builder_spec.rb spec/unit/definition_spec.rb spec/integration/api_spec.rb spec/integration/ordinal_querying_spec.rb)
end