yoomee-mongosphinx 0.1.2 → 0.1.3
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/lib/mixins/properties.rb +7 -8
- metadata +3 -3
data/lib/mixins/properties.rb
CHANGED
|
@@ -51,14 +51,13 @@ module MongoMapper # :nodoc:
|
|
|
51
51
|
end
|
|
52
52
|
|
|
53
53
|
# Returns the numeric part of the document ID (compatible to Sphinx).
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
end
|
|
54
|
+
# def sphinx_id
|
|
55
|
+
# if (match = self.id.match(/#{self.class}-([0-9]+)/))
|
|
56
|
+
# return match[1]
|
|
57
|
+
# else
|
|
58
|
+
# return nil
|
|
59
|
+
# end
|
|
60
|
+
# end
|
|
62
61
|
end
|
|
63
62
|
end
|
|
64
63
|
end
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: yoomee-mongosphinx
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 29
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 0.1.
|
|
9
|
+
- 3
|
|
10
|
+
version: 0.1.3
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Matt Atkins
|