thinking-sphinx 1.3.12 → 1.3.13

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.12
1
+ 1.3.13
@@ -181,7 +181,7 @@ module ThinkingSphinx
181
181
  column = @columns.first
182
182
  column.__stack.each { |method|
183
183
  object = object.send(method)
184
- return nil if object.nil?
184
+ return sphinx_value(nil) if object.nil?
185
185
  }
186
186
 
187
187
  sphinx_value object.send(column.__name)
@@ -548,7 +548,7 @@ describe ThinkingSphinx::Attribute do
548
548
  stub('column', :__stack => [:assoc_name], :__name => :id)
549
549
  ]
550
550
  @instance.stub!(:assoc_name => nil)
551
- @attribute.live_value(@instance).should be_nil
551
+ @attribute.live_value(@instance).should == 0
552
552
  end
553
553
 
554
554
  it "should handle association chains" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thinking-sphinx
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.12
4
+ version: 1.3.13
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-12-14 00:00:00 +11:00
12
+ date: 2009-12-15 00:00:00 +11:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency