mongoid-sphinx 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -73,9 +73,9 @@ module Mongoid
73
73
  end
74
74
  self.search_attributes.each do |key, value|
75
75
  value = case value
76
- when 'bool' : document.send(key.to_s) ? 1 : 0
77
- when 'timestamp' : document.send(key.to_s).to_i
78
- else document.send(key.to_s).to_s
76
+ when 'bool' : document[key.to_s] ? 1 : 0
77
+ when 'timestamp' : document[key.to_s].to_i
78
+ else document[key.to_s].to_s
79
79
  end
80
80
  puts "<#{key}>#{value}</#{key}>"
81
81
  end
@@ -1,3 +1,3 @@
1
1
  module MongoidSphinx #:nodoc
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid-sphinx
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matt Hodgson
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-26 00:00:00 -05:00
18
+ date: 2011-03-01 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency