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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f43ffca72b01980b11ae8ddf09838814aca69655
4
- data.tar.gz: 21beb5d9d657a1b594eecd8ab5ead1b41c80f9fd
3
+ metadata.gz: d5409e2a3bc8eebbe71680ca0275c194b3eb0707
4
+ data.tar.gz: 781737c5ed0983a1029f7ee1a098924973a2adf7
5
5
  SHA512:
6
- metadata.gz: 4b237b11183b3492791071bdc3e8b46afb9ed6d9916afe5771f3ea7931fda82094a4df36f79ac9281589d78a53f26d771ee0ba2f6f18ba6f596ade2b47a72cd1
7
- data.tar.gz: 849d41f1e585797dc2305c00dcdeedba2799a13c6572384716835bf2d878b3dea5cefeb9d47ceee0d05e43ad4d42492f4a00ddfdc3f707e2272438ae6e4b62c3
6
+ metadata.gz: ba7664bd77f42330c748ab9ab642fdf88e235620ba41df98965fcea38620653e9d69743b97c947fa25e5abd2e3227deae21268138178645fb7836fac0814a6b5
7
+ data.tar.gz: f766f35242d34702ae6a25453777552adf90e134f66ef179e47bc25afef5f6649c2724e60ee3497c3a0645ec74c2c7d2b6b5c74b3803333b99e112d3d2bf2f5f
data/.travis.yml CHANGED
@@ -18,3 +18,5 @@ matrix:
18
18
  # See https://github.com/rails/rails/pull/18306
19
19
  - rvm: 2.2.0
20
20
  env: RAILS_VERSION="~> 3.2.21" JRUBY_OPTS="$JRUBY_OPTS --debug"
21
+ before_install:
22
+ - gem install bundler
data/CHANGELOG.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Changelog
2
2
 
3
- ### 0.1.4(Unreleased)
3
+ ### 0.2.0
4
+ * Change supported delayed job version
5
+ * Clean up lifecycle management in plugin
4
6
 
5
7
  ### 0.1.3
6
8
  * Change supported rails version.
@@ -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', '>= 3.0'
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Delayed
4
4
  module JobGroups
5
- VERSION = '0.1.3'
5
+ VERSION = '0.2.0'
6
6
  end
7
7
  end
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.1.3
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: 2015-02-26 00:00:00.000000000 Z
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: '3.0'
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: '3.0'
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.5
233
+ rubygems_version: 2.4.8
220
234
  signing_key:
221
235
  specification_version: 4
222
236
  summary: Delayed::Job job groups plugin