ts-datetime-delta 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/thinking_sphinx/deltas/datetime_delta.rb +7 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1e872a0608ee6f16b3cf455adfd90023b5e87be
|
4
|
+
data.tar.gz: 28e2b13539ca1d35460957599876c371e9dfa753
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a5d4951f8d34d59adedb5b1ca1b6c2750659ca82f7f2119f227cf5c20a7c6c13fe60b81e3bc25bb8d2ad9f1007725948fa3b8f4a66f5a7aa5de22786f4b1b74
|
7
|
+
data.tar.gz: 351f6826a36ef0523b0788cccb857ef4418a2c5c10296bad1987350d343f4cf0606f692efed44f7abee71aff470e9b52d554bd3801c60c89841a7abd37b09a1f
|
@@ -59,6 +59,13 @@ class ThinkingSphinx::Deltas::DatetimeDelta < ThinkingSphinx::Deltas::DefaultDel
|
|
59
59
|
@threshold = options[:threshold] || 1.day
|
60
60
|
end
|
61
61
|
|
62
|
+
# Don't remove records from the core index - we want them to stick around.
|
63
|
+
#
|
64
|
+
def delete(index, instance)
|
65
|
+
# do nothing
|
66
|
+
true
|
67
|
+
end
|
68
|
+
|
62
69
|
# Does absolutely nothing, beyond returning true. Thinking Sphinx expects
|
63
70
|
# this method, though, and we don't want to use the inherited behaviour from
|
64
71
|
# DefaultDelta.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ts-datetime-delta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pat Allan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thinking-sphinx
|
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
109
|
version: '0'
|
110
110
|
requirements: []
|
111
111
|
rubyforge_project:
|
112
|
-
rubygems_version: 2.
|
112
|
+
rubygems_version: 2.4.5
|
113
113
|
signing_key:
|
114
114
|
specification_version: 4
|
115
115
|
summary: Thinking Sphinx - Datetime Deltas
|