resqued 0.11.2 → 0.12.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
  SHA256:
3
- metadata.gz: aa7e64a4c6a3e61fd60ad02aad37062a408ad34515e0218fa4526c7c23bbb296
4
- data.tar.gz: 540332007ba6fd7581c795f8114db0638e80390ef18c64d6336eb65ed0afbf92
3
+ metadata.gz: 5a92bd03c3a0bf63c872341d0df842ea52762a641efeb490584ef508ff61a868
4
+ data.tar.gz: 0c49b197b2fc672ff436f3eab41908de2a2a6e641a9a2d7df202a14c90557263
5
5
  SHA512:
6
- metadata.gz: 402d4c507e5809832e8e05ff3f0e3e243fdb8c3a9378d84e6589147b649b80426b5a934644e10cebc9d467948073e0db8f3771f803ac4befb80d4176233050dc
7
- data.tar.gz: 9a51246b791079456dd26faafa988aa9e2994c76bcd7a554b6a4f1c45539d2921604e17ee7be389b089cfd77cbeab60094f1da03c5ef85a19e9fa9de6acd32f9
6
+ metadata.gz: cebc5d49661bafd589c3eeecea7a2e8729fe26a546c6b2dd3839c8b7939c62f2baf7f26b99434df8863759a7bb228f5939551f1986e9798aab0e9ff314337d69
7
+ data.tar.gz: e3fdac521d55d512431f24d3dc26fdbd435491d7251ab6c5f4e7f375fac9d1956e2e878dcad47b54c1fe2323a968222dced0fd81733163c29eb61819cdc8f68d
data/CHANGES.md CHANGED
@@ -1,5 +1,12 @@
1
1
  Starting with version 0.6.1, resqued uses semantic versioning to indicate incompatibilities between the master process, listener process, and configuration.
2
2
 
3
+ v0.12.0
4
+ -------
5
+ * Drop "resque" as a dependency. Apps that use Resqued with a different job
6
+ system will no longer also have a transitive dependency on resque. Apps that
7
+ rely on resqued's resque dependency will need to add `gem "resque"` to their
8
+ `Gemfile`. (#65)
9
+
3
10
  v0.11.2
4
11
  -------
5
12
  * Add compatibility with Ruby 3.1. (#63)
@@ -96,6 +96,8 @@ module Resqued
96
96
  if Resque.respond_to?("logger=")
97
97
  Resque.logger = Resqued::Logging.build_logger
98
98
  end
99
+ rescue LoadError
100
+ # Skip this step.
99
101
  end
100
102
 
101
103
  # Private.
@@ -17,7 +17,6 @@ module Resqued
17
17
  config = Resqued::Config.new(paths)
18
18
  config.before_fork(RuntimeInfo.new)
19
19
  config.build_workers
20
- config.after_fork(Resque::Worker.new("*"))
21
20
  end
22
21
  end
23
22
 
@@ -1,3 +1,3 @@
1
1
  module Resqued
2
- VERSION = "0.11.2".freeze
2
+ VERSION = "0.12.0".freeze
3
3
  end
@@ -1,4 +1,3 @@
1
- require "resque"
2
1
  require "digest"
3
2
 
4
3
  require "resqued/backoff"
@@ -10,6 +9,7 @@ module Resqued
10
9
  include Resqued::Logging
11
10
 
12
11
  DEFAULT_WORKER_FACTORY = lambda { |queues|
12
+ require "resque"
13
13
  resque_worker = Resque::Worker.new(*queues)
14
14
  resque_worker.term_child = true if resque_worker.respond_to?("term_child=")
15
15
  redis_client = Resque.redis.respond_to?(:_client) ? Resque.redis._client : Resque.redis.client
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resqued
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.2
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Burke
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-11-15 00:00:00.000000000 Z
11
+ date: 2022-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kgio
@@ -45,7 +45,7 @@ dependencies:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: 1.9.1
48
- type: :runtime
48
+ type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements: