ts-sidekiq-delta 0.2.0 → 0.3.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
- SHA1:
3
- metadata.gz: 8c0bd462a8ad1e3df98e85d3551b84c888c25c36
4
- data.tar.gz: ecdc20bb90c03e8c6dd090d67100b0056b06ab90
2
+ SHA256:
3
+ metadata.gz: 0a34f8c20bb7dd19b659c3102c1ce469f0a774b16802f72fc3d48c28ee7095cc
4
+ data.tar.gz: 88ba8dd20506b3e103aa96b44ce684f91df76135026bc367c56002bb5050ab17
5
5
  SHA512:
6
- metadata.gz: 3bacebe0e0cfe7d759b561cc05ce602d925402ba2a2b7a5a7c5d4735604b327c22819807eb2445c8579e14f47489b99fda00b5ccba65f99bd6ff80c4a249c250
7
- data.tar.gz: d4180c6f85109b80f8a35c060dfa66c667230865572d1a7aa23dea01bc61ccf4326e519f80b8fb24a2238b79869227681341ae865d4c7333aa119d1b789ef6a9
6
+ metadata.gz: 4a2933c6c6123d71f535360795d394a39106fa9addf8f6f9c1a17b0d68f9dbf5e33c4da19effd520036da9950495719dc3b6c1cbcab039b1cee1a0f0e33b1ab7
7
+ data.tar.gz: '029b98245027eb02d4d151b3545bd41e00b982fb84d2b5a2532393e7ac52a4acd37d00d745357295b107bc41b43bcff497838a61fe4f3486f3733864deb6cce0'
data/Gemfile CHANGED
@@ -1,10 +1,3 @@
1
- source :rubygems
1
+ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
-
5
- gem 'thinking-sphinx',
6
- :git => 'git://github.com/pat/thinking-sphinx.git',
7
- :branch => 'edge'
8
- gem 'combustion',
9
- :git => 'git://github.com/pat/combustion.git',
10
- :ref => '45f50e64c3'
@@ -8,7 +8,7 @@ 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.2.0'
11
+ gem 'ts-sidekiq-delta', '~> 0.3.0'
12
12
 
13
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.
14
14
 
@@ -33,6 +33,8 @@ column named `:delta` to each model's table and a corresponding database index:
33
33
 
34
34
  From here on in, just use Thinking Sphinx and Sidekiq as you normally would, and you'll find your Sphinx indices are updated quite promptly by Sidekiq.
35
35
 
36
+ Make sure you have a sidekiq worker monitoring the `ts_delta` queue.
37
+
36
38
  ## Licence
37
39
 
38
40
  Copyright (c) 2013, ts-sidekiq-delta was originally developed by Danny Hawkins, is currently maintained by Pat Allan, and is released under the open MIT Licence.
@@ -3,7 +3,7 @@
3
3
  class ThinkingSphinx::Deltas::SidekiqDelta::DeltaJob
4
4
  include Sidekiq::Worker
5
5
 
6
- sidekiq_options unique: true, retry: true, queue: 'ts_delta'
6
+ sidekiq_options lock: :until_executed, retry: true, queue: 'ts_delta', unique_prefix: 'tsdelta'
7
7
 
8
8
  # Runs Sphinx's indexer tool to process the index.
9
9
  #
@@ -3,7 +3,7 @@ class ThinkingSphinx::Deltas::SidekiqDelta::FlagAsDeletedJob
3
3
 
4
4
  # Runs Sphinx's indexer tool to process the index. Currently assumes Sphinx
5
5
  # is running.
6
- sidekiq_options unique: true, retry: true, queue: 'ts_delta'
6
+ sidekiq_options lock: :until_executed, retry: true, queue: 'ts_delta', unique_prefix: "tsflagasdeleted"
7
7
 
8
8
  def perform(index, document_id)
9
9
  ThinkingSphinx::Deltas::DeleteJob.new(index, document_id).perform
@@ -2,7 +2,7 @@ require 'acceptance/spec_helper'
2
2
 
3
3
  describe 'SQL delta indexing', :live => true do
4
4
  before :each do
5
- Sidekiq.redis = { url: "resque://localhost:6379/", namespace: 'test' }
5
+ Sidekiq.redis = { url: "redis://localhost:6379/", namespace: 'test' }
6
6
  end
7
7
 
8
8
  it "automatically indexes new records" do
@@ -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.2.0'
4
+ s.version = '0.3.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,12 +15,16 @@ 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.1.0'
19
- s.add_dependency 'sidekiq', '>= 2.5.4'
18
+ s.add_dependency 'thinking-sphinx', '>= 3.1.0'
19
+ s.add_dependency 'sidekiq', '>= 2.5.4'
20
+ s.add_dependency 'sidekiq-unique-jobs', '>= 6.0.0'
20
21
 
21
22
  s.add_development_dependency 'activerecord', '>= 3.1.0'
23
+ s.add_development_dependency 'combustion'
24
+ s.add_development_dependency 'cucumber'
22
25
  s.add_development_dependency 'database_cleaner', '>= 0.5.2'
23
26
  s.add_development_dependency 'mysql2', '>= 0.3.12b4'
24
27
  s.add_development_dependency 'rake', '>= 0.8.7'
28
+ s.add_development_dependency 'redis-namespace'
25
29
  s.add_development_dependency 'rspec', '>= 2.11.0'
26
30
  end
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.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pat Allan
@@ -10,104 +10,160 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-01-15 00:00:00.000000000 Z
13
+ date: 2020-05-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: thinking-sphinx
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - '>='
19
+ - - ">="
20
20
  - !ruby/object:Gem::Version
21
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
28
  version: 3.1.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: sidekiq
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - '>='
33
+ - - ">="
34
34
  - !ruby/object:Gem::Version
35
35
  version: 2.5.4
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - '>='
40
+ - - ">="
41
41
  - !ruby/object:Gem::Version
42
42
  version: 2.5.4
43
+ - !ruby/object:Gem::Dependency
44
+ name: sidekiq-unique-jobs
45
+ requirement: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: 6.0.0
50
+ type: :runtime
51
+ prerelease: false
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: 6.0.0
43
57
  - !ruby/object:Gem::Dependency
44
58
  name: activerecord
45
59
  requirement: !ruby/object:Gem::Requirement
46
60
  requirements:
47
- - - '>='
61
+ - - ">="
48
62
  - !ruby/object:Gem::Version
49
63
  version: 3.1.0
50
64
  type: :development
51
65
  prerelease: false
52
66
  version_requirements: !ruby/object:Gem::Requirement
53
67
  requirements:
54
- - - '>='
68
+ - - ">="
55
69
  - !ruby/object:Gem::Version
56
70
  version: 3.1.0
71
+ - !ruby/object:Gem::Dependency
72
+ name: combustion
73
+ requirement: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ type: :development
79
+ prerelease: false
80
+ version_requirements: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: '0'
85
+ - !ruby/object:Gem::Dependency
86
+ name: cucumber
87
+ requirement: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - ">="
90
+ - !ruby/object:Gem::Version
91
+ version: '0'
92
+ type: :development
93
+ prerelease: false
94
+ version_requirements: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - ">="
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
57
99
  - !ruby/object:Gem::Dependency
58
100
  name: database_cleaner
59
101
  requirement: !ruby/object:Gem::Requirement
60
102
  requirements:
61
- - - '>='
103
+ - - ">="
62
104
  - !ruby/object:Gem::Version
63
105
  version: 0.5.2
64
106
  type: :development
65
107
  prerelease: false
66
108
  version_requirements: !ruby/object:Gem::Requirement
67
109
  requirements:
68
- - - '>='
110
+ - - ">="
69
111
  - !ruby/object:Gem::Version
70
112
  version: 0.5.2
71
113
  - !ruby/object:Gem::Dependency
72
114
  name: mysql2
73
115
  requirement: !ruby/object:Gem::Requirement
74
116
  requirements:
75
- - - '>='
117
+ - - ">="
76
118
  - !ruby/object:Gem::Version
77
119
  version: 0.3.12b4
78
120
  type: :development
79
121
  prerelease: false
80
122
  version_requirements: !ruby/object:Gem::Requirement
81
123
  requirements:
82
- - - '>='
124
+ - - ">="
83
125
  - !ruby/object:Gem::Version
84
126
  version: 0.3.12b4
85
127
  - !ruby/object:Gem::Dependency
86
128
  name: rake
87
129
  requirement: !ruby/object:Gem::Requirement
88
130
  requirements:
89
- - - '>='
131
+ - - ">="
90
132
  - !ruby/object:Gem::Version
91
133
  version: 0.8.7
92
134
  type: :development
93
135
  prerelease: false
94
136
  version_requirements: !ruby/object:Gem::Requirement
95
137
  requirements:
96
- - - '>='
138
+ - - ">="
97
139
  - !ruby/object:Gem::Version
98
140
  version: 0.8.7
141
+ - !ruby/object:Gem::Dependency
142
+ name: redis-namespace
143
+ requirement: !ruby/object:Gem::Requirement
144
+ requirements:
145
+ - - ">="
146
+ - !ruby/object:Gem::Version
147
+ version: '0'
148
+ type: :development
149
+ prerelease: false
150
+ version_requirements: !ruby/object:Gem::Requirement
151
+ requirements:
152
+ - - ">="
153
+ - !ruby/object:Gem::Version
154
+ version: '0'
99
155
  - !ruby/object:Gem::Dependency
100
156
  name: rspec
101
157
  requirement: !ruby/object:Gem::Requirement
102
158
  requirements:
103
- - - '>='
159
+ - - ">="
104
160
  - !ruby/object:Gem::Version
105
161
  version: 2.11.0
106
162
  type: :development
107
163
  prerelease: false
108
164
  version_requirements: !ruby/object:Gem::Requirement
109
165
  requirements:
110
- - - '>='
166
+ - - ">="
111
167
  - !ruby/object:Gem::Version
112
168
  version: 2.11.0
113
169
  description: Manage delta indexes via Sidekiq for Thinking Sphinx
@@ -118,8 +174,8 @@ executables: []
118
174
  extensions: []
119
175
  extra_rdoc_files: []
120
176
  files:
121
- - .gitignore
122
- - .rspec
177
+ - ".gitignore"
178
+ - ".rspec"
123
179
  - Gemfile
124
180
  - Guardfile
125
181
  - LICENSE
@@ -166,17 +222,16 @@ require_paths:
166
222
  - lib
167
223
  required_ruby_version: !ruby/object:Gem::Requirement
168
224
  requirements:
169
- - - '>='
225
+ - - ">="
170
226
  - !ruby/object:Gem::Version
171
227
  version: '0'
172
228
  required_rubygems_version: !ruby/object:Gem::Requirement
173
229
  requirements:
174
- - - '>='
230
+ - - ">="
175
231
  - !ruby/object:Gem::Version
176
232
  version: '0'
177
233
  requirements: []
178
- rubyforge_project:
179
- rubygems_version: 2.1.11
234
+ rubygems_version: 3.0.3
180
235
  signing_key:
181
236
  specification_version: 4
182
237
  summary: Thinking Sphinx - Sidekiq Deltas