ts-delayed-delta 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.textile CHANGED
@@ -9,7 +9,7 @@ You'll need Thinking Sphinx 1.3.0 or later, and Delayed Job as well. The latter
9
9
  In your @environment.rb@ file, with the rest of your gem dependencies:
10
10
 
11
11
  <pre><code>config.gem 'ts-delayed-delta',
12
- :lib => 'thinking_sphinx/deltas/delayed_delta'
12
+ :lib => 'thinking_sphinx/deltas/delayed_delta',
13
13
  :version => '>= 1.0.0',
14
14
  :source => 'http://gemcutter.org'</code></pre>
15
15
 
@@ -51,6 +51,7 @@ h2. Contributors
51
51
  * "Maximilian Schulz":http://max.jungeelite.de (Ensuring compatibility with Bundler)
52
52
  * "Edgars Beigarts":http://github.com/ebeigarts (Adding intelligent description for tasks)
53
53
  * "Alexander Simonov":http://simonov.me/ (Explicit table definition)
54
+ * "David Goodlad":http://david.goodlad.ca/ (Delayed Job/ActiveRecord load order fix)
54
55
 
55
56
  h2. Copyright
56
57
 
@@ -1,5 +1,4 @@
1
1
  require 'delayed_job'
2
- Delayed::Worker.backend = :active_record if Delayed::Worker.respond_to? :backend
3
2
 
4
3
  require 'thinking_sphinx'
5
4
  require 'thinking_sphinx/deltas/delayed_delta/delta_job'
@@ -1,10 +1,19 @@
1
+ module Delayed
2
+ module Backend
3
+ module ActiveRecord
4
+ class Job < ::ActiveRecord::Base
5
+ end
6
+ end
7
+ end
8
+ end
9
+
1
10
  # A custom job model, subclassed from Delayed::Job. The two things it does
2
11
  # differently is that it checks for duplicate tasks before enqueuing them, and
3
12
  # provides the option to remove all Delayed Delta jobs from the queue.
4
13
  #
5
14
  # As such, this class should not be used for any other tasks.
6
15
  #
7
- class ThinkingSphinx::Deltas::Job < Delayed::Job
16
+ class ThinkingSphinx::Deltas::Job < Delayed::Backend::ActiveRecord::Job
8
17
  set_table_name :delayed_jobs
9
18
  # Adds a job to the queue, if it doesn't already exist. This is to ensure
10
19
  # multiple indexing requests for the same delta index don't get added, as the
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ts-delayed-delta
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 17
4
5
  prerelease: false
5
6
  segments:
6
7
  - 1
7
8
  - 1
8
- - 0
9
- version: 1.1.0
9
+ - 1
10
+ version: 1.1.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Pat Allan
@@ -14,16 +15,18 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-05-20 00:00:00 +10:00
18
+ date: 2010-10-17 00:00:00 +11:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: thinking-sphinx
22
23
  prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
27
  - - ">="
26
28
  - !ruby/object:Gem::Version
29
+ hash: 23
27
30
  segments:
28
31
  - 1
29
32
  - 3
@@ -35,9 +38,11 @@ dependencies:
35
38
  name: delayed_job
36
39
  prerelease: false
37
40
  requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
38
42
  requirements:
39
43
  - - ">="
40
44
  - !ruby/object:Gem::Version
45
+ hash: 63
41
46
  segments:
42
47
  - 1
43
48
  - 8
@@ -49,9 +54,11 @@ dependencies:
49
54
  name: rspec
50
55
  prerelease: false
51
56
  requirement: &id003 !ruby/object:Gem::Requirement
57
+ none: false
52
58
  requirements:
53
59
  - - ">="
54
60
  - !ruby/object:Gem::Version
61
+ hash: 13
55
62
  segments:
56
63
  - 1
57
64
  - 2
@@ -63,9 +70,11 @@ dependencies:
63
70
  name: yard
64
71
  prerelease: false
65
72
  requirement: &id004 !ruby/object:Gem::Requirement
73
+ none: false
66
74
  requirements:
67
75
  - - ">="
68
76
  - !ruby/object:Gem::Version
77
+ hash: 3
69
78
  segments:
70
79
  - 0
71
80
  version: "0"
@@ -75,9 +84,11 @@ dependencies:
75
84
  name: cucumber
76
85
  prerelease: false
77
86
  requirement: &id005 !ruby/object:Gem::Requirement
87
+ none: false
78
88
  requirements:
79
89
  - - ">="
80
90
  - !ruby/object:Gem::Version
91
+ hash: 3
81
92
  segments:
82
93
  - 0
83
94
  version: "0"
@@ -100,33 +111,52 @@ files:
100
111
  - lib/thinking_sphinx/deltas/delayed_delta/flag_as_deleted_job.rb
101
112
  - lib/thinking_sphinx/deltas/delayed_delta/job.rb
102
113
  - lib/thinking_sphinx/deltas/delayed_delta/tasks.rb
114
+ - features/delayed_deltas.feature
115
+ - features/step_definitions/common_steps.rb
116
+ - features/step_definitions/delayed_delta_steps.rb
117
+ - features/support/env.rb
118
+ - features/thinking_sphinx/database.example.yml
119
+ - features/thinking_sphinx/database.yml
120
+ - features/thinking_sphinx/db/fixtures/delayed_betas.rb
121
+ - features/thinking_sphinx/db/migrations/create_delayed_betas.rb
122
+ - features/thinking_sphinx/models/delayed_beta.rb
123
+ - spec/spec.opts
124
+ - spec/spec_helper.rb
125
+ - spec/thinking_sphinx/deltas/delayed_delta/delta_job_spec.rb
126
+ - spec/thinking_sphinx/deltas/delayed_delta/flag_as_deleted_job_spec.rb
127
+ - spec/thinking_sphinx/deltas/delayed_delta/job_spec.rb
128
+ - spec/thinking_sphinx/deltas/delayed_delta_spec.rb
103
129
  has_rdoc: true
104
130
  homepage: http://github.com/freelancing-god/ts-delayed-delta
105
131
  licenses: []
106
132
 
107
133
  post_install_message:
108
- rdoc_options:
109
- - --charset=UTF-8
134
+ rdoc_options: []
135
+
110
136
  require_paths:
111
137
  - lib
112
138
  required_ruby_version: !ruby/object:Gem::Requirement
139
+ none: false
113
140
  requirements:
114
141
  - - ">="
115
142
  - !ruby/object:Gem::Version
143
+ hash: 3
116
144
  segments:
117
145
  - 0
118
146
  version: "0"
119
147
  required_rubygems_version: !ruby/object:Gem::Requirement
148
+ none: false
120
149
  requirements:
121
150
  - - ">="
122
151
  - !ruby/object:Gem::Version
152
+ hash: 3
123
153
  segments:
124
154
  - 0
125
155
  version: "0"
126
156
  requirements: []
127
157
 
128
158
  rubyforge_project:
129
- rubygems_version: 1.3.6
159
+ rubygems_version: 1.3.7
130
160
  signing_key:
131
161
  specification_version: 3
132
162
  summary: Thinking Sphinx - Delayed Deltas