ts-sidekiq-delta 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c0bd462a8ad1e3df98e85d3551b84c888c25c36
|
4
|
+
data.tar.gz: ecdc20bb90c03e8c6dd090d67100b0056b06ab90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bacebe0e0cfe7d759b561cc05ce602d925402ba2a2b7a5a7c5d4735604b327c22819807eb2445c8579e14f47489b99fda00b5ccba65f99bd6ff80c4a249c250
|
7
|
+
data.tar.gz: d4180c6f85109b80f8a35c060dfa66c667230865572d1a7aa23dea01bc61ccf4326e519f80b8fb24a2238b79869227681341ae865d4c7333aa119d1b789ef6a9
|
data/README.markdown
CHANGED
@@ -8,7 +8,9 @@ This version of `ts-sidekiq-delta` works only with [Thinking Sphinx](https://git
|
|
8
8
|
|
9
9
|
Get it into your Gemfile - and don't forget the version constraint!
|
10
10
|
|
11
|
-
gem 'ts-sidekiq-delta', '~> 0.
|
11
|
+
gem 'ts-sidekiq-delta', '~> 0.2.0'
|
12
|
+
|
13
|
+
If you're using Thinking Sphinx v3.0.x, you'll need to jump back to the 0.1.0 release of this gem.
|
12
14
|
|
13
15
|
## Usage
|
14
16
|
|
@@ -10,8 +10,7 @@ class ThinkingSphinx::Deltas::SidekiqDelta::DeltaJob
|
|
10
10
|
# @param [String] index the name of the Sphinx index
|
11
11
|
#
|
12
12
|
def perform(index)
|
13
|
-
|
14
|
-
config.controller.index index, :verbose => !config.settings['quiet_deltas']
|
13
|
+
ThinkingSphinx::Deltas::IndexJob.new(index).perform
|
15
14
|
end
|
16
15
|
|
17
16
|
# Try again later if lock is in use.
|
@@ -6,11 +6,7 @@ class ThinkingSphinx::Deltas::SidekiqDelta::FlagAsDeletedJob
|
|
6
6
|
sidekiq_options unique: true, retry: true, queue: 'ts_delta'
|
7
7
|
|
8
8
|
def perform(index, document_id)
|
9
|
-
ThinkingSphinx::
|
10
|
-
connection.query(
|
11
|
-
Riddle::Query.update(index, document_id, :sphinx_deleted => true)
|
12
|
-
)
|
13
|
-
end
|
9
|
+
ThinkingSphinx::Deltas::DeleteJob.new(index, document_id).perform
|
14
10
|
rescue Mysql2::Error => error
|
15
11
|
# This isn't vital, so don't raise the error
|
16
12
|
end
|
data/ts-sidekiq-delta.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
Gem::Specification.new do |s|
|
3
3
|
s.name = 'ts-sidekiq-delta'
|
4
|
-
s.version = '0.
|
4
|
+
s.version = '0.2.0'
|
5
5
|
s.platform = Gem::Platform::RUBY
|
6
6
|
s.authors = ['Pat Allan', 'Aaron Gibralter', 'Danny Hawkins']
|
7
7
|
s.email = ['pat@freelancing-gods.com', 'danny.hawkins@gmail.com']
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
16
16
|
s.require_paths = ["lib"]
|
17
17
|
|
18
|
-
s.add_dependency 'thinking-sphinx', '>= 3.
|
18
|
+
s.add_dependency 'thinking-sphinx', '>= 3.1.0'
|
19
19
|
s.add_dependency 'sidekiq', '>= 2.5.4'
|
20
20
|
|
21
21
|
s.add_development_dependency 'activerecord', '>= 3.1.0'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ts-sidekiq-delta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pat Allan
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2014-01-15 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: thinking-sphinx
|
@@ -18,14 +18,14 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 3.
|
21
|
+
version: 3.1.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - '>='
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: 3.
|
28
|
+
version: 3.1.0
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: sidekiq
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|