thinking-sphinx-raspell 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 1
3
3
  :minor: 1
4
- :patch: 0
4
+ :patch: 1
@@ -24,7 +24,7 @@ module ThinkingSphinx
24
24
  # original
25
25
  #
26
26
  def suggestion?
27
- suggestion != query
27
+ suggestion != all_args
28
28
  end
29
29
 
30
30
  # Modifies the current search object, switching queries and removing any
@@ -27,6 +27,13 @@ describe ThinkingSphinx::Search do
27
27
  search = ThinkingSphinx::Search.new('words all correct here')
28
28
  search.suggestion?.should be_false
29
29
  end
30
+
31
+ it "should return false if there are conditions and no spelling suggestion" do
32
+ search = ThinkingSphinx::Search.new('words',
33
+ :conditions => {:all => 'here'}
34
+ )
35
+ search.suggestion?.should be_false
36
+ end
30
37
  end
31
38
 
32
39
  describe '#redo_with_suggestion' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thinking-sphinx-raspell
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pat Allan
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-04 00:00:00 +02:00
12
+ date: 2010-02-15 00:00:00 +11:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency