dnif 0.0.1.alpha.2 → 0.0.1.alpha.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/Rakefile +1 -1
- data/dnif.gemspec +2 -2
- data/lib/dnif/search.rb +1 -1
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
dnif is the new find... for sphinx
|
4
4
|
|
5
|
-
dnif is a gem to index data using ActiveRecord finders, letting you index your custom methods and not your table fields
|
5
|
+
dnif is a gem to index data using ActiveRecord finders, letting you index your custom methods and not only your table fields
|
6
6
|
|
7
7
|
== Usage
|
8
8
|
|
data/Rakefile
CHANGED
@@ -4,7 +4,7 @@ begin
|
|
4
4
|
Jeweler::Tasks.new do |gemspec|
|
5
5
|
gemspec.name = "dnif"
|
6
6
|
gemspec.summary = "dnif is the new find... for sphinx"
|
7
|
-
gemspec.description = "dnif is a gem to index data using ActiveRecord finders, letting you index your custom methods and not your table fields
|
7
|
+
gemspec.description = "dnif is a gem to index data using ActiveRecord finders, letting you index your custom methods and not only your table fields"
|
8
8
|
gemspec.email = "me@rafaelss.com"
|
9
9
|
gemspec.homepage = "http://github.com/rafaelss/dnif"
|
10
10
|
gemspec.authors = ["Rafael Souza"]
|
data/dnif.gemspec
CHANGED
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{dnif}
|
8
|
-
s.version = "0.0.1.alpha.
|
8
|
+
s.version = "0.0.1.alpha.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Rafael Souza"]
|
12
12
|
s.date = %q{2010-07-01}
|
13
|
-
s.description = %q{dnif is a gem to index data using ActiveRecord finders, letting you index your custom methods and not your table fields
|
13
|
+
s.description = %q{dnif is a gem to index data using ActiveRecord finders, letting you index your custom methods and not only your table fields}
|
14
14
|
s.email = %q{me@rafaelss.com}
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"README.rdoc"
|
data/lib/dnif/search.rb
CHANGED
@@ -14,7 +14,7 @@ module Dnif
|
|
14
14
|
raise results[:error] if results[:error]
|
15
15
|
|
16
16
|
models = results[:matches].inject({}) do |memo, match|
|
17
|
-
class_id = match[:attributes]["class_id"].split(',')
|
17
|
+
class_id = match[:attributes]["class_id"].split(',').flatten
|
18
18
|
class_name = Dnif::MultiAttribute.decode(class_id)
|
19
19
|
|
20
20
|
memo[class_name] ||= []
|
metadata
CHANGED
@@ -7,8 +7,8 @@ version: !ruby/object:Gem::Version
|
|
7
7
|
- 0
|
8
8
|
- 1
|
9
9
|
- alpha
|
10
|
-
-
|
11
|
-
version: 0.0.1.alpha.
|
10
|
+
- 3
|
11
|
+
version: 0.0.1.alpha.3
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Rafael Souza
|
@@ -58,7 +58,7 @@ dependencies:
|
|
58
58
|
version: "0"
|
59
59
|
type: :runtime
|
60
60
|
version_requirements: *id003
|
61
|
-
description:
|
61
|
+
description: dnif is a gem to index data using ActiveRecord finders, letting you index your custom methods and not only your table fields
|
62
62
|
email: me@rafaelss.com
|
63
63
|
executables: []
|
64
64
|
|