noodall-core 0.3.7 → 0.3.8

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.7
1
+ 0.3.8
@@ -50,7 +50,7 @@ module Noodall
50
50
  criteria.merge!( :_keywords => { :$in => words } )
51
51
 
52
52
  # The Search result
53
- search_result = collection.map_reduce(search_map(words), search_reduce, {:query => criteria, :finalize => search_finalize})
53
+ search_result = collection.map_reduce(search_map(words), search_reduce, :query => criteria)
54
54
 
55
55
  # Add value to sort options because model is stored in the value key
56
56
  options[:sort].map! do |s,v|
@@ -91,7 +91,7 @@ module Noodall
91
91
  end
92
92
 
93
93
  def search_reduce
94
- "function( key , values ){return { model: values[0]};}"
94
+ "function( key , values ){return values[0];}"
95
95
  end
96
96
 
97
97
  def search_finalize
data/noodall-core.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{noodall-core}
8
- s.version = "0.3.7"
8
+ s.version = "0.3.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Steve England"]
data/spec/node_spec.rb CHANGED
@@ -361,7 +361,7 @@ describe Noodall::Node do
361
361
  end
362
362
 
363
363
  end
364
-
364
+
365
365
  it "should return related" do
366
366
  Factory(:page, :title => "My Page 1", :tag_list => 'one,two,three')
367
367
  Factory(:page, :title => "My Page 2", :tag_list => 'two,three,four')
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: noodall-core
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 3
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 7
10
- version: 0.3.7
9
+ - 8
10
+ version: 0.3.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Steve England