ts-resque-delta 1.1.5 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +24 -0
- data/Guardfile +17 -0
- data/README.markdown +1 -0
- data/Rakefile +16 -4
- data/cucumber.yml +2 -0
- data/features/smart_indexing.feature +43 -0
- data/features/step_definitions/common_steps.rb +16 -3
- data/features/step_definitions/resque_delta_steps.rb +1 -1
- data/features/step_definitions/smart_indexing_steps.rb +3 -0
- data/features/support/env.rb +3 -4
- data/lib/thinking_sphinx/deltas/resque_delta.rb +32 -10
- data/lib/thinking_sphinx/deltas/resque_delta/core_index.rb +101 -0
- data/lib/thinking_sphinx/deltas/resque_delta/delta_job.rb +72 -10
- data/lib/thinking_sphinx/deltas/resque_delta/flag_as_deleted_set.rb +56 -0
- data/lib/thinking_sphinx/deltas/resque_delta/index_utils.rb +47 -0
- data/lib/thinking_sphinx/deltas/resque_delta/tasks.rb +4 -46
- data/lib/thinking_sphinx/deltas/resque_delta/version.rb +1 -1
- data/spec/spec_helper.rb +9 -5
- data/spec/thinking_sphinx/deltas/resque_delta/core_index_spec.rb +210 -0
- data/spec/thinking_sphinx/deltas/resque_delta/delta_job_spec.rb +138 -35
- data/spec/thinking_sphinx/deltas/resque_delta/flag_as_deleted_set_spec.rb +126 -0
- data/spec/thinking_sphinx/deltas/resque_delta/index_utils_spec.rb +67 -0
- data/spec/thinking_sphinx/deltas/resque_delta_spec.rb +126 -53
- data/ts-resque-delta.gemspec +8 -2
- metadata +185 -180
- data/features/support/redis_test_setup.rb +0 -23
- data/lib/thinking_sphinx/deltas/resque_delta/flag_as_deleted_job.rb +0 -30
- data/spec/spec.opts +0 -1
- data/spec/thinking_sphinx/deltas/resque_delta/flag_as_deleted_job_spec.rb +0 -66
- data/tasks/testing.rb +0 -20
metadata
CHANGED
@@ -1,214 +1,224 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: ts-resque-delta
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.2.0
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 1
|
9
|
-
- 5
|
10
|
-
version: 1.1.5
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Aaron Gibralter
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
12
|
+
date: 2011-12-21 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: thinking-sphinx
|
16
|
+
requirement: &70339904258620 !ruby/object:Gem::Requirement
|
22
17
|
none: false
|
23
|
-
requirements:
|
24
|
-
- -
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
hash: 5
|
27
|
-
segments:
|
28
|
-
- 1
|
29
|
-
- 4
|
30
|
-
- 1
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
31
21
|
version: 1.4.1
|
32
|
-
requirement: *id001
|
33
|
-
prerelease: false
|
34
|
-
name: thinking-sphinx
|
35
22
|
type: :runtime
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
|
-
version_requirements: &id002 !ruby/object:Gem::Requirement
|
38
|
-
none: false
|
39
|
-
requirements:
|
40
|
-
- - ">="
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
hash: 5
|
43
|
-
segments:
|
44
|
-
- 1
|
45
|
-
- 5
|
46
|
-
version: "1.5"
|
47
|
-
requirement: *id002
|
48
23
|
prerelease: false
|
24
|
+
version_requirements: *70339904258620
|
25
|
+
- !ruby/object:Gem::Dependency
|
49
26
|
name: riddle
|
50
|
-
|
51
|
-
- !ruby/object:Gem::Dependency
|
52
|
-
version_requirements: &id003 !ruby/object:Gem::Requirement
|
27
|
+
requirement: &70339904252300 !ruby/object:Gem::Requirement
|
53
28
|
none: false
|
54
|
-
requirements:
|
55
|
-
- -
|
56
|
-
- !ruby/object:Gem::Version
|
57
|
-
|
58
|
-
|
59
|
-
- 1
|
60
|
-
- 10
|
61
|
-
version: "1.10"
|
62
|
-
requirement: *id003
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '1.5'
|
33
|
+
type: :runtime
|
63
34
|
prerelease: false
|
35
|
+
version_requirements: *70339904252300
|
36
|
+
- !ruby/object:Gem::Dependency
|
64
37
|
name: resque
|
65
|
-
|
66
|
-
- !ruby/object:Gem::Dependency
|
67
|
-
version_requirements: &id004 !ruby/object:Gem::Requirement
|
38
|
+
requirement: &70339904238260 !ruby/object:Gem::Requirement
|
68
39
|
none: false
|
69
|
-
requirements:
|
40
|
+
requirements:
|
70
41
|
- - ~>
|
71
|
-
- !ruby/object:Gem::Version
|
72
|
-
|
73
|
-
|
74
|
-
- 0
|
75
|
-
- 3
|
76
|
-
- 1
|
77
|
-
version: 0.3.1
|
78
|
-
requirement: *id004
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '1.10'
|
44
|
+
type: :runtime
|
79
45
|
prerelease: false
|
46
|
+
version_requirements: *70339904238260
|
47
|
+
- !ruby/object:Gem::Dependency
|
80
48
|
name: resque-lock-timeout
|
81
|
-
|
82
|
-
- !ruby/object:Gem::Dependency
|
83
|
-
version_requirements: &id005 !ruby/object:Gem::Requirement
|
49
|
+
requirement: &70339904228800 !ruby/object:Gem::Requirement
|
84
50
|
none: false
|
85
|
-
requirements:
|
51
|
+
requirements:
|
86
52
|
- - ~>
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
|
89
|
-
|
90
|
-
- 1
|
91
|
-
- 0
|
92
|
-
version: "1.0"
|
93
|
-
requirement: *id005
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.3.1
|
55
|
+
type: :runtime
|
94
56
|
prerelease: false
|
57
|
+
version_requirements: *70339904228800
|
58
|
+
- !ruby/object:Gem::Dependency
|
95
59
|
name: rspec
|
96
|
-
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
version_requirements: &id006 !ruby/object:Gem::Requirement
|
60
|
+
requirement: &70339904227020 !ruby/object:Gem::Requirement
|
99
61
|
none: false
|
100
|
-
requirements:
|
101
|
-
- -
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
|
104
|
-
|
105
|
-
- 0
|
106
|
-
version: "0"
|
107
|
-
requirement: *id006
|
62
|
+
requirements:
|
63
|
+
- - ~>
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: 2.7.0
|
66
|
+
type: :development
|
108
67
|
prerelease: false
|
68
|
+
version_requirements: *70339904227020
|
69
|
+
- !ruby/object:Gem::Dependency
|
109
70
|
name: cucumber
|
110
|
-
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
version_requirements: &id007 !ruby/object:Gem::Requirement
|
71
|
+
requirement: &70339904225160 !ruby/object:Gem::Requirement
|
113
72
|
none: false
|
114
|
-
requirements:
|
115
|
-
- -
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
|
118
|
-
|
119
|
-
- 0
|
120
|
-
- 5
|
121
|
-
- 2
|
122
|
-
version: 0.5.2
|
123
|
-
requirement: *id007
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
type: :development
|
124
78
|
prerelease: false
|
79
|
+
version_requirements: *70339904225160
|
80
|
+
- !ruby/object:Gem::Dependency
|
125
81
|
name: database_cleaner
|
82
|
+
requirement: &70339904224460 !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
84
|
+
requirements:
|
85
|
+
- - ! '>='
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: 0.5.2
|
126
88
|
type: :development
|
127
|
-
|
128
|
-
version_requirements:
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: *70339904224460
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: mysql2
|
93
|
+
requirement: &70339904223140 !ruby/object:Gem::Requirement
|
129
94
|
none: false
|
130
|
-
requirements:
|
95
|
+
requirements:
|
131
96
|
- - ~>
|
132
|
-
- !ruby/object:Gem::Version
|
133
|
-
hash: 25
|
134
|
-
segments:
|
135
|
-
- 0
|
136
|
-
- 2
|
137
|
-
- 7
|
97
|
+
- !ruby/object:Gem::Version
|
138
98
|
version: 0.2.7
|
139
|
-
requirement: *id008
|
140
|
-
prerelease: false
|
141
|
-
name: mysql2
|
142
99
|
type: :development
|
143
|
-
- !ruby/object:Gem::Dependency
|
144
|
-
version_requirements: &id009 !ruby/object:Gem::Requirement
|
145
|
-
none: false
|
146
|
-
requirements:
|
147
|
-
- - "="
|
148
|
-
- !ruby/object:Gem::Version
|
149
|
-
hash: 49
|
150
|
-
segments:
|
151
|
-
- 0
|
152
|
-
- 8
|
153
|
-
- 7
|
154
|
-
version: 0.8.7
|
155
|
-
requirement: *id009
|
156
100
|
prerelease: false
|
101
|
+
version_requirements: *70339904223140
|
102
|
+
- !ruby/object:Gem::Dependency
|
157
103
|
name: rake
|
104
|
+
requirement: &70339904221720 !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 0.8.7
|
158
110
|
type: :development
|
159
|
-
|
160
|
-
version_requirements:
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: *70339904221720
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: activerecord
|
115
|
+
requirement: &70339904220380 !ruby/object:Gem::Requirement
|
161
116
|
none: false
|
162
|
-
requirements:
|
117
|
+
requirements:
|
163
118
|
- - ~>
|
164
|
-
- !ruby/object:Gem::Version
|
165
|
-
hash: 21
|
166
|
-
segments:
|
167
|
-
- 2
|
168
|
-
- 3
|
169
|
-
- 11
|
119
|
+
- !ruby/object:Gem::Version
|
170
120
|
version: 2.3.11
|
171
|
-
requirement: *id010
|
172
|
-
prerelease: false
|
173
|
-
name: activerecord
|
174
121
|
type: :development
|
175
|
-
|
176
|
-
version_requirements:
|
122
|
+
prerelease: false
|
123
|
+
version_requirements: *70339904220380
|
124
|
+
- !ruby/object:Gem::Dependency
|
125
|
+
name: flying-sphinx
|
126
|
+
requirement: &70339904218340 !ruby/object:Gem::Requirement
|
177
127
|
none: false
|
178
|
-
requirements:
|
179
|
-
- -
|
180
|
-
- !ruby/object:Gem::Version
|
181
|
-
hash: 9
|
182
|
-
segments:
|
183
|
-
- 0
|
184
|
-
- 5
|
185
|
-
- 1
|
128
|
+
requirements:
|
129
|
+
- - ! '>='
|
130
|
+
- !ruby/object:Gem::Version
|
186
131
|
version: 0.5.1
|
187
|
-
|
132
|
+
type: :development
|
188
133
|
prerelease: false
|
189
|
-
|
134
|
+
version_requirements: *70339904218340
|
135
|
+
- !ruby/object:Gem::Dependency
|
136
|
+
name: ryansch-mock_redis
|
137
|
+
requirement: &70339904217680 !ruby/object:Gem::Requirement
|
138
|
+
none: false
|
139
|
+
requirements:
|
140
|
+
- - ~>
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: 0.3.0
|
143
|
+
type: :development
|
144
|
+
prerelease: false
|
145
|
+
version_requirements: *70339904217680
|
146
|
+
- !ruby/object:Gem::Dependency
|
147
|
+
name: guard
|
148
|
+
requirement: &70339904216900 !ruby/object:Gem::Requirement
|
149
|
+
none: false
|
150
|
+
requirements:
|
151
|
+
- - ~>
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: 0.8.8
|
154
|
+
type: :development
|
155
|
+
prerelease: false
|
156
|
+
version_requirements: *70339904216900
|
157
|
+
- !ruby/object:Gem::Dependency
|
158
|
+
name: guard-rspec
|
159
|
+
requirement: &70339904215960 !ruby/object:Gem::Requirement
|
160
|
+
none: false
|
161
|
+
requirements:
|
162
|
+
- - ~>
|
163
|
+
- !ruby/object:Gem::Version
|
164
|
+
version: 0.5.8
|
165
|
+
type: :development
|
166
|
+
prerelease: false
|
167
|
+
version_requirements: *70339904215960
|
168
|
+
- !ruby/object:Gem::Dependency
|
169
|
+
name: guard-bundler
|
170
|
+
requirement: &70339904214880 !ruby/object:Gem::Requirement
|
171
|
+
none: false
|
172
|
+
requirements:
|
173
|
+
- - ~>
|
174
|
+
- !ruby/object:Gem::Version
|
175
|
+
version: 0.1.3
|
190
176
|
type: :development
|
177
|
+
prerelease: false
|
178
|
+
version_requirements: *70339904214880
|
179
|
+
- !ruby/object:Gem::Dependency
|
180
|
+
name: guard-cucumber
|
181
|
+
requirement: &70339904213940 !ruby/object:Gem::Requirement
|
182
|
+
none: false
|
183
|
+
requirements:
|
184
|
+
- - ~>
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: 0.7.4
|
187
|
+
type: :development
|
188
|
+
prerelease: false
|
189
|
+
version_requirements: *70339904213940
|
190
|
+
- !ruby/object:Gem::Dependency
|
191
|
+
name: fakefs
|
192
|
+
requirement: &70339904212700 !ruby/object:Gem::Requirement
|
193
|
+
none: false
|
194
|
+
requirements:
|
195
|
+
- - ~>
|
196
|
+
- !ruby/object:Gem::Version
|
197
|
+
version: 0.4.0
|
198
|
+
type: :development
|
199
|
+
prerelease: false
|
200
|
+
version_requirements: *70339904212700
|
191
201
|
description: Manage delta indexes via Resque for Thinking Sphinx
|
192
|
-
email:
|
202
|
+
email:
|
193
203
|
- aaron.gibralter@gmail.com
|
194
204
|
executables: []
|
195
|
-
|
196
205
|
extensions: []
|
197
|
-
|
198
206
|
extra_rdoc_files: []
|
199
|
-
|
200
|
-
files:
|
207
|
+
files:
|
201
208
|
- .gitignore
|
202
209
|
- Gemfile
|
210
|
+
- Guardfile
|
203
211
|
- LICENSE
|
204
212
|
- README.markdown
|
205
213
|
- Rakefile
|
206
214
|
- config/redis-cucumber.conf
|
215
|
+
- cucumber.yml
|
207
216
|
- features/resque_deltas.feature
|
217
|
+
- features/smart_indexing.feature
|
208
218
|
- features/step_definitions/common_steps.rb
|
209
219
|
- features/step_definitions/resque_delta_steps.rb
|
220
|
+
- features/step_definitions/smart_indexing_steps.rb
|
210
221
|
- features/support/env.rb
|
211
|
-
- features/support/redis_test_setup.rb
|
212
222
|
- features/thinking_sphinx/database.example.yml
|
213
223
|
- features/thinking_sphinx/db/migrations/create_delayed_betas.rb
|
214
224
|
- features/thinking_sphinx/models/delayed_beta.rb
|
@@ -216,8 +226,10 @@ files:
|
|
216
226
|
- lib/flying_sphinx/resque_delta/delta_job.rb
|
217
227
|
- lib/flying_sphinx/resque_delta/flag_as_deleted_job.rb
|
218
228
|
- lib/thinking_sphinx/deltas/resque_delta.rb
|
229
|
+
- lib/thinking_sphinx/deltas/resque_delta/core_index.rb
|
219
230
|
- lib/thinking_sphinx/deltas/resque_delta/delta_job.rb
|
220
|
-
- lib/thinking_sphinx/deltas/resque_delta/
|
231
|
+
- lib/thinking_sphinx/deltas/resque_delta/flag_as_deleted_set.rb
|
232
|
+
- lib/thinking_sphinx/deltas/resque_delta/index_utils.rb
|
221
233
|
- lib/thinking_sphinx/deltas/resque_delta/railtie.rb
|
222
234
|
- lib/thinking_sphinx/deltas/resque_delta/tasks.rb
|
223
235
|
- lib/thinking_sphinx/deltas/resque_delta/version.rb
|
@@ -225,61 +237,54 @@ files:
|
|
225
237
|
- spec/flying_sphinx/resque_delta/delta_job_spec.rb
|
226
238
|
- spec/flying_sphinx/resque_delta/flag_as_deleted_job_spec.rb
|
227
239
|
- spec/flying_sphinx/resque_delta_spec.rb
|
228
|
-
- spec/spec.opts
|
229
240
|
- spec/spec_helper.rb
|
241
|
+
- spec/thinking_sphinx/deltas/resque_delta/core_index_spec.rb
|
230
242
|
- spec/thinking_sphinx/deltas/resque_delta/delta_job_spec.rb
|
231
|
-
- spec/thinking_sphinx/deltas/resque_delta/
|
243
|
+
- spec/thinking_sphinx/deltas/resque_delta/flag_as_deleted_set_spec.rb
|
244
|
+
- spec/thinking_sphinx/deltas/resque_delta/index_utils_spec.rb
|
232
245
|
- spec/thinking_sphinx/deltas/resque_delta_spec.rb
|
233
246
|
- tasks/rails.rake
|
234
|
-
- tasks/testing.rb
|
235
247
|
- ts-resque-delta.gemspec
|
236
248
|
homepage: https://github.com/agibralter/ts-resque-delta
|
237
249
|
licenses: []
|
238
|
-
|
239
250
|
post_install_message:
|
240
251
|
rdoc_options: []
|
241
|
-
|
242
|
-
require_paths:
|
252
|
+
require_paths:
|
243
253
|
- lib
|
244
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
254
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
245
255
|
none: false
|
246
|
-
requirements:
|
247
|
-
- -
|
248
|
-
- !ruby/object:Gem::Version
|
249
|
-
|
250
|
-
|
251
|
-
- 0
|
252
|
-
version: "0"
|
253
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
256
|
+
requirements:
|
257
|
+
- - ! '>='
|
258
|
+
- !ruby/object:Gem::Version
|
259
|
+
version: '0'
|
260
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
254
261
|
none: false
|
255
|
-
requirements:
|
256
|
-
- -
|
257
|
-
- !ruby/object:Gem::Version
|
258
|
-
|
259
|
-
segments:
|
260
|
-
- 0
|
261
|
-
version: "0"
|
262
|
+
requirements:
|
263
|
+
- - ! '>='
|
264
|
+
- !ruby/object:Gem::Version
|
265
|
+
version: '0'
|
262
266
|
requirements: []
|
263
|
-
|
264
267
|
rubyforge_project: ts-resque-delta
|
265
|
-
rubygems_version: 1.8.
|
268
|
+
rubygems_version: 1.8.10
|
266
269
|
signing_key:
|
267
270
|
specification_version: 3
|
268
271
|
summary: Thinking Sphinx - Resque Deltas
|
269
|
-
test_files:
|
272
|
+
test_files:
|
270
273
|
- features/resque_deltas.feature
|
274
|
+
- features/smart_indexing.feature
|
271
275
|
- features/step_definitions/common_steps.rb
|
272
276
|
- features/step_definitions/resque_delta_steps.rb
|
277
|
+
- features/step_definitions/smart_indexing_steps.rb
|
273
278
|
- features/support/env.rb
|
274
|
-
- features/support/redis_test_setup.rb
|
275
279
|
- features/thinking_sphinx/database.example.yml
|
276
280
|
- features/thinking_sphinx/db/migrations/create_delayed_betas.rb
|
277
281
|
- features/thinking_sphinx/models/delayed_beta.rb
|
278
282
|
- spec/flying_sphinx/resque_delta/delta_job_spec.rb
|
279
283
|
- spec/flying_sphinx/resque_delta/flag_as_deleted_job_spec.rb
|
280
284
|
- spec/flying_sphinx/resque_delta_spec.rb
|
281
|
-
- spec/spec.opts
|
282
285
|
- spec/spec_helper.rb
|
286
|
+
- spec/thinking_sphinx/deltas/resque_delta/core_index_spec.rb
|
283
287
|
- spec/thinking_sphinx/deltas/resque_delta/delta_job_spec.rb
|
284
|
-
- spec/thinking_sphinx/deltas/resque_delta/
|
288
|
+
- spec/thinking_sphinx/deltas/resque_delta/flag_as_deleted_set_spec.rb
|
289
|
+
- spec/thinking_sphinx/deltas/resque_delta/index_utils_spec.rb
|
285
290
|
- spec/thinking_sphinx/deltas/resque_delta_spec.rb
|