delayed_job_groups_plugin 0.1.3 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -0
- data/CHANGELOG.md +3 -1
- data/delayed_job_groups.gemspec +2 -1
- data/lib/delayed/job_groups/plugin.rb +0 -13
- data/lib/delayed/job_groups/version.rb +1 -1
- metadata +19 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5409e2a3bc8eebbe71680ca0275c194b3eb0707
|
4
|
+
data.tar.gz: 781737c5ed0983a1029f7ee1a098924973a2adf7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba7664bd77f42330c748ab9ab642fdf88e235620ba41df98965fcea38620653e9d69743b97c947fa25e5abd2e3227deae21268138178645fb7836fac0814a6b5
|
7
|
+
data.tar.gz: f766f35242d34702ae6a25453777552adf90e134f66ef179e47bc25afef5f6649c2724e60ee3497c3a0645ec74c2c7d2b6b5c74b3803333b99e112d3d2bf2f5f
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/delayed_job_groups.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.test_files = Dir.glob('spec/**/*')
|
18
18
|
spec.require_paths = ['lib']
|
19
19
|
|
20
|
-
spec.add_dependency 'delayed_job', '>=
|
20
|
+
spec.add_dependency 'delayed_job', '>= 4.1'
|
21
21
|
spec.add_dependency 'delayed_job_active_record', '>= 0.4'
|
22
22
|
|
23
23
|
spec.post_install_message = 'See https://github.com/salsify/delayed_job_groups_plugin#installation for upgrade/installation notes.'
|
@@ -29,6 +29,7 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.add_development_dependency 'rspec', '>= 2.14', '< 2.99'
|
30
30
|
spec.add_development_dependency 'simplecov', '~> 0.7.1'
|
31
31
|
spec.add_development_dependency 'timecop'
|
32
|
+
spec.add_development_dependency 'mime-types', '~> 2'
|
32
33
|
|
33
34
|
if RUBY_PLATFORM == 'java'
|
34
35
|
spec.add_development_dependency 'jdbc-sqlite3'
|
@@ -7,19 +7,6 @@ module Delayed
|
|
7
7
|
module JobGroups
|
8
8
|
class Plugin < Delayed::Plugin
|
9
9
|
|
10
|
-
# Delayed job callbacks will be registered in a global Delayed::Lifecycle every time a
|
11
|
-
# Delayed::Worker is created. This creates problems in test runs that create
|
12
|
-
# multiple workers because we register the callbacks multiple times on the same
|
13
|
-
# global Lifecycle.
|
14
|
-
def self.callbacks(&block)
|
15
|
-
registered_lifecycles = Set.new
|
16
|
-
super do |lifecycle|
|
17
|
-
if registered_lifecycles.add?(lifecycle.object_id)
|
18
|
-
block.call(lifecycle)
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
10
|
callbacks do |lifecycle|
|
24
11
|
lifecycle.before(:error) do |worker, job|
|
25
12
|
# If the job group has been cancelled then don't let the job be retried
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: delayed_job_groups_plugin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joel Turkel
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2016-10-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: delayed_job
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
20
|
+
version: '4.1'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '
|
27
|
+
version: '4.1'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: delayed_job_active_record
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -149,6 +149,20 @@ dependencies:
|
|
149
149
|
- - ">="
|
150
150
|
- !ruby/object:Gem::Version
|
151
151
|
version: '0'
|
152
|
+
- !ruby/object:Gem::Dependency
|
153
|
+
name: mime-types
|
154
|
+
requirement: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - "~>"
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: '2'
|
159
|
+
type: :development
|
160
|
+
prerelease: false
|
161
|
+
version_requirements: !ruby/object:Gem::Requirement
|
162
|
+
requirements:
|
163
|
+
- - "~>"
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '2'
|
152
166
|
- !ruby/object:Gem::Dependency
|
153
167
|
name: sqlite3
|
154
168
|
requirement: !ruby/object:Gem::Requirement
|
@@ -216,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
216
230
|
version: '0'
|
217
231
|
requirements: []
|
218
232
|
rubyforge_project:
|
219
|
-
rubygems_version: 2.4.
|
233
|
+
rubygems_version: 2.4.8
|
220
234
|
signing_key:
|
221
235
|
specification_version: 4
|
222
236
|
summary: Delayed::Job job groups plugin
|