restful_query 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.3.3 2011-05-15
2
+
3
+ * Added 'restful_query/rails' for bundler requires
4
+
1
5
  == 0.3.2 2011-04-23
2
6
 
3
7
  * Support for Rails 3 and Ruby 1.9.2
@@ -15,7 +15,7 @@ module RestfulQuery
15
15
  RestfulQuery::Parser.new(query_hash, @query_options.merge(options))
16
16
  end
17
17
 
18
- scope_meth = self.respond_to?(:scope) ? :scope : :named_scope
18
+ scope_meth = self.respond_to?(:where) ? :scope : :named_scope
19
19
 
20
20
  send(scope_meth, :restful_query, lambda {|query_hash|
21
21
  return {} if query_hash.blank? || query_hash.empty?
@@ -0,0 +1,3 @@
1
+ require File.join(File.expand_path(File.dirname(__FILE__)),'..','restful_query.rb')
2
+
3
+ ActiveRecord::Base.send(:include, RestfulQuery::CanQuery)
data/lib/restful_query.rb CHANGED
@@ -9,7 +9,7 @@ rescue LoadError
9
9
  end
10
10
 
11
11
  module RestfulQuery
12
- VERSION = '0.3.2'
12
+ VERSION = '0.3.3'
13
13
 
14
14
  class Error < RuntimeError; end
15
15
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{restful_query}
8
- s.version = "0.3.2"
8
+ s.version = "0.3.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Aaron Quint"]
12
- s.date = %q{2011-04-23}
12
+ s.date = %q{2011-05-17}
13
13
  s.description = %q{RestfulQuery provides a simple interface in front of a complex parser to parse specially formatted query hashes into complex SQL queries. It includes ActiveRecord and Sequel extensions.}
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE",
@@ -25,6 +25,7 @@ Gem::Specification.new do |s|
25
25
  "lib/restful_query/can_query.rb",
26
26
  "lib/restful_query/condition.rb",
27
27
  "lib/restful_query/parser.rb",
28
+ "lib/restful_query/rails.rb",
28
29
  "lib/restful_query/sort.rb",
29
30
  "lib/sequel/extensions/restful_query.rb",
30
31
  "rails/init.rb",
@@ -40,13 +41,6 @@ Gem::Specification.new do |s|
40
41
  s.rubyforge_project = %q{quirkey}
41
42
  s.rubygems_version = %q{1.3.7}
42
43
  s.summary = %q{Simple ActiveRecord and Sequel queries from a RESTful and safe interface}
43
- s.test_files = [
44
- "test/test_helper.rb",
45
- "test/test_restful_query_can_query.rb",
46
- "test/test_restful_query_condition.rb",
47
- "test/test_restful_query_parser.rb",
48
- "test/test_restful_query_sort.rb"
49
- ]
50
44
 
51
45
  if s.respond_to? :specification_version then
52
46
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 2
9
- version: 0.3.2
8
+ - 3
9
+ version: 0.3.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Aaron Quint
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-04-23 00:00:00 -04:00
17
+ date: 2011-05-17 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -81,6 +81,7 @@ files:
81
81
  - lib/restful_query/can_query.rb
82
82
  - lib/restful_query/condition.rb
83
83
  - lib/restful_query/parser.rb
84
+ - lib/restful_query/rails.rb
84
85
  - lib/restful_query/sort.rb
85
86
  - lib/sequel/extensions/restful_query.rb
86
87
  - rails/init.rb
@@ -123,9 +124,5 @@ rubygems_version: 1.3.7
123
124
  signing_key:
124
125
  specification_version: 3
125
126
  summary: Simple ActiveRecord and Sequel queries from a RESTful and safe interface
126
- test_files:
127
- - test/test_helper.rb
128
- - test/test_restful_query_can_query.rb
129
- - test/test_restful_query_condition.rb
130
- - test/test_restful_query_parser.rb
131
- - test/test_restful_query_sort.rb
127
+ test_files: []
128
+