sunspot_rails 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/History.txt CHANGED
@@ -1,3 +1,6 @@
1
+ == 1.0.4 2010-03-19
2
+ * Fix StubSessionProxy to match new internal API
3
+
1
4
  == 1.0.2 2010-03-11
2
5
  * Allow use of ActiveRecord object for coordinates extraction
3
6
  * Works with non-standard primary keys
@@ -57,6 +57,10 @@ module Sunspot
57
57
  end
58
58
 
59
59
  class Search
60
+ def build
61
+ self
62
+ end
63
+
60
64
  def results
61
65
  []
62
66
  end
@@ -76,6 +80,7 @@ module Sunspot
76
80
  end
77
81
 
78
82
  def execute
83
+ self
79
84
  end
80
85
  end
81
86
  end
@@ -1,5 +1,5 @@
1
1
  module Sunspot
2
2
  module Rails
3
- VERSION = '1.0.3'
3
+ VERSION = '1.0.4'
4
4
  end
5
5
  end
@@ -84,6 +84,11 @@ describe 'specs with Sunspot stubbed' do
84
84
  Post.search
85
85
  end
86
86
 
87
+ it 'should not execute a search when #search called with parameters' do
88
+ @session.should_not_receive(:search)
89
+ Post.search(:include => :blog, :select => 'id, title')
90
+ end
91
+
87
92
  it 'should return a new search' do
88
93
  @session.should_not_receive(:new_search)
89
94
  Sunspot.new_search(Post).should respond_to(:execute)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 3
9
- version: 1.0.3
8
+ - 4
9
+ version: 1.0.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Mat Brown
@@ -22,7 +22,7 @@ autorequire:
22
22
  bindir: bin
23
23
  cert_chain: []
24
24
 
25
- date: 2010-03-11 00:00:00 -05:00
25
+ date: 2010-03-19 00:00:00 -04:00
26
26
  default_executable:
27
27
  dependencies:
28
28
  - !ruby/object:Gem::Dependency
@@ -35,8 +35,8 @@ dependencies:
35
35
  segments:
36
36
  - 1
37
37
  - 0
38
- - 3
39
- version: 1.0.3
38
+ - 4
39
+ version: 1.0.4
40
40
  type: :runtime
41
41
  version_requirements: *id001
42
42
  - !ruby/object:Gem::Dependency