ts-delayed-delta 1.0.4 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.textile +2 -0
- data/features/step_definitions/delayed_delta_steps.rb +5 -1
- data/features/support/env.rb +4 -0
- data/features/{support → thinking_sphinx}/database.example.yml +0 -0
- data/features/thinking_sphinx/database.yml +4 -0
- data/features/{support → thinking_sphinx}/db/fixtures/delayed_betas.rb +0 -0
- data/features/{support → thinking_sphinx}/db/migrations/create_delayed_betas.rb +0 -0
- data/features/{support → thinking_sphinx}/models/delayed_beta.rb +0 -0
- data/lib/thinking_sphinx/deltas/delayed_delta.rb +2 -0
- data/lib/thinking_sphinx/deltas/delayed_delta/job.rb +1 -0
- metadata +8 -8
- data/features/support/database.yml +0 -5
data/README.textile
CHANGED
@@ -49,6 +49,8 @@ h2. Contributors
|
|
49
49
|
|
50
50
|
* "Ryan Schlesinger":http://github.com/ryansch (Allowing installs as a plugin)
|
51
51
|
* "Maximilian Schulz":http://max.jungeelite.de (Ensuring compatibility with Bundler)
|
52
|
+
* "Edgars Beigarts":http://github.com/ebeigarts (Adding intelligent description for tasks)
|
53
|
+
* "Alexander Simonov":http://simonov.me/ (Explicit table definition)
|
52
54
|
|
53
55
|
h2. Copyright
|
54
56
|
|
@@ -1,5 +1,9 @@
|
|
1
1
|
When /^I run the delayed jobs$/ do
|
2
|
-
Delayed::
|
2
|
+
if Delayed::Worker.respond_to? :backend
|
3
|
+
Delayed::Worker.new(:quiet => true).work_off
|
4
|
+
else
|
5
|
+
Delayed::Job.work_off
|
6
|
+
end
|
3
7
|
end
|
4
8
|
|
5
9
|
When /^I change the name of delayed beta (\w+) to (\w+)$/ do |current, replacement|
|
data/features/support/env.rb
CHANGED
@@ -8,6 +8,10 @@ $:.unshift File.dirname(__FILE__) + '/../../lib'
|
|
8
8
|
|
9
9
|
require 'cucumber/thinking_sphinx/internal_world'
|
10
10
|
|
11
|
+
Time.zone_default = Time.__send__(:get_zone, 'Melbourne')
|
12
|
+
ActiveRecord::Base.time_zone_aware_attributes = true
|
13
|
+
ActiveRecord::Base.default_timezone = :utc
|
14
|
+
|
11
15
|
world = Cucumber::ThinkingSphinx::InternalWorld.new
|
12
16
|
world.configure_database
|
13
17
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -5,6 +5,7 @@
|
|
5
5
|
# As such, this class should not be used for any other tasks.
|
6
6
|
#
|
7
7
|
class ThinkingSphinx::Deltas::Job < Delayed::Job
|
8
|
+
set_table_name :delayed_jobs
|
8
9
|
# Adds a job to the queue, if it doesn't already exist. This is to ensure
|
9
10
|
# multiple indexing requests for the same delta index don't get added, as the
|
10
11
|
# index only needs to be processed once.
|
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 1
|
7
|
+
- 1
|
7
8
|
- 0
|
8
|
-
|
9
|
-
version: 1.0.4
|
9
|
+
version: 1.1.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Pat Allan
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-05-20 00:00:00 +10:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -134,12 +134,12 @@ test_files:
|
|
134
134
|
- features/delayed_deltas.feature
|
135
135
|
- features/step_definitions/common_steps.rb
|
136
136
|
- features/step_definitions/delayed_delta_steps.rb
|
137
|
-
- features/support/database.example.yml
|
138
|
-
- features/support/database.yml
|
139
|
-
- features/support/db/fixtures/delayed_betas.rb
|
140
|
-
- features/support/db/migrations/create_delayed_betas.rb
|
141
137
|
- features/support/env.rb
|
142
|
-
- features/
|
138
|
+
- features/thinking_sphinx/database.example.yml
|
139
|
+
- features/thinking_sphinx/database.yml
|
140
|
+
- features/thinking_sphinx/db/fixtures/delayed_betas.rb
|
141
|
+
- features/thinking_sphinx/db/migrations/create_delayed_betas.rb
|
142
|
+
- features/thinking_sphinx/models/delayed_beta.rb
|
143
143
|
- spec/spec.opts
|
144
144
|
- spec/spec_helper.rb
|
145
145
|
- spec/thinking_sphinx/deltas/delayed_delta/delta_job_spec.rb
|