meta_search 0.9.7.2 → 0.9.8
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +1 -0
- data/VERSION +1 -1
- data/lib/meta_search/builder.rb +2 -2
- data/meta_search.gemspec +2 -2
- metadata +3 -4
data/CHANGELOG
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
Changes since 0.9.7 (2010-10-12):
|
2
2
|
* Play nicely regardless of MetaWhere/MetaSearch load order.
|
3
|
+
* Big fix - stop altering the supplied hash in Builder#build.
|
3
4
|
|
4
5
|
Changes since 0.9.6 (2010-09-29):
|
5
6
|
* Support _or_-separated conditions. I'm not crazy about 'em, but it's
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.8
|
data/lib/meta_search/builder.rb
CHANGED
@@ -93,8 +93,8 @@ module MetaSearch
|
|
93
93
|
# Build the search with the given search options. Options are in the form of a hash
|
94
94
|
# with keys matching the names creted by the Builder's "wheres" as outlined in
|
95
95
|
# MetaSearch::Where
|
96
|
-
def build(
|
97
|
-
opts
|
96
|
+
def build(option_hash)
|
97
|
+
opts = option_hash.dup || {}
|
98
98
|
@relation = @base.scoped
|
99
99
|
opts.stringify_keys!
|
100
100
|
opts = collapse_multiparameter_options(opts)
|
data/meta_search.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{meta_search}
|
8
|
-
s.version = "0.9.
|
8
|
+
s.version = "0.9.8"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Ernie Miller"]
|
12
|
-
s.date = %q{2010-10-
|
12
|
+
s.date = %q{2010-10-20}
|
13
13
|
s.description = %q{
|
14
14
|
Allows simple search forms to be created against an AR3 model
|
15
15
|
and its associations, has useful view helpers for sort links
|
metadata
CHANGED
@@ -5,9 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 9
|
8
|
-
-
|
9
|
-
|
10
|
-
version: 0.9.7.2
|
8
|
+
- 8
|
9
|
+
version: 0.9.8
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Ernie Miller
|
@@ -15,7 +14,7 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date: 2010-10-
|
17
|
+
date: 2010-10-20 00:00:00 -04:00
|
19
18
|
default_executable:
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|