delayed_job_master 2.0.0 → 2.0.1

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: 90f6ec1ebe00243f5d69adf6a92a6e2716772b7a9af68b7301220bae2cfc55d7
4
- data.tar.gz: 30db6bc4a8183622514a9e4fcad3f5130e3061cff0bb973b834e5e0c9db5ffb0
3
+ metadata.gz: e3183f5a73de37ebe6c4303cab37285c8378b8b7f06fc809abf40404efbfea66
4
+ data.tar.gz: 43a33ec26663e0bd1fe632663cec398b79c53859dd9f17c29e5ca77b881c0ca2
5
5
  SHA512:
6
- metadata.gz: 6958a025ee232142b6a3049b25ea62075a08dea1446ddc0b29ee3f26d5ef1dd9351e6df46a2ad2a8d8068238e44a84bce6140639ff62aa8a0c8f2ad0ba43c2fe
7
- data.tar.gz: c863131bde412c128fc3f144fd5ba1bb472cd8850a0c31a32d0500e043572e389ce7184c6a98a0b57de31bd5c434601c5641c64ea00b7a7db1a41bd11095f4dc
6
+ metadata.gz: 2cdeb80a4394fa04cb51289413b5f16f80006ecd958fcd24919cda177e01883e09f1d13876c0218f5cc1e645bd514a5a93f1e1b412a056e3f08b0dcf8fb1eb3c
7
+ data.tar.gz: 2dc3d4c9370b77648fd7e7b26388cdae0ec5798eb043f88df3b9b04d0b966de79a9f2e48a72068a93bd79e83cae2e27e324a1d4e41eff364d8fbdc41e6dd0321
@@ -4,6 +4,7 @@ rvm:
4
4
  - 2.4
5
5
  - 2.5
6
6
  - 2.6
7
+ - 2.7
7
8
  gemfile:
8
9
  - gemfiles/rails50.gemfile
9
10
  - gemfiles/rails51.gemfile
@@ -1,5 +1,11 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 2.0.1
4
+
5
+ * Force file reopen mode to `a+`.
6
+ * Set empty array for default `queues` config.
7
+ * Support to configure worker's option as false. (flavono123, #8)
8
+
3
9
  ## 2.0.0
4
10
 
5
11
  * Support multiple databases.
@@ -21,7 +21,7 @@ module Delayed
21
21
  end
22
22
 
23
23
  def add_worker
24
- worker = WorkerSetting.new(id: @workers.size, count: 1, exit_on_complete: true)
24
+ worker = WorkerSetting.new(id: @workers.size, queues: [], count: 1, exit_on_complete: true)
25
25
  yield worker
26
26
  @workers << worker
27
27
  end
@@ -36,7 +36,7 @@ module Delayed
36
36
 
37
37
  SIMPLE_CONFIGS.each do |key|
38
38
  define_method(key) do |value = nil|
39
- if value
39
+ if !value.nil?
40
40
  @data[key] = value
41
41
  else
42
42
  @data[key]
@@ -72,7 +72,7 @@ module Delayed
72
72
 
73
73
  SIMPLE_CONFIGS.each do |key|
74
74
  define_method(key) do |value = nil|
75
- if value
75
+ if !value.nil?
76
76
  @data[key] = value
77
77
  else
78
78
  @data[key]
@@ -6,7 +6,7 @@ module Delayed
6
6
  def reopen
7
7
  ObjectSpace.each_object(File) do |file|
8
8
  next if file.closed? || !file.sync
9
- file.reopen file.path
9
+ file.reopen file.path, 'a+'
10
10
  file.sync = true
11
11
  file.flush
12
12
  end
@@ -1,5 +1,5 @@
1
1
  module Delayed
2
2
  class Master
3
- VERSION = "2.0.0"
3
+ VERSION = "2.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delayed_job_master
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoshikazu Kaneta
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-10-08 00:00:00.000000000 Z
11
+ date: 2020-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: delayed_job
@@ -181,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
181
  - !ruby/object:Gem::Version
182
182
  version: '0'
183
183
  requirements: []
184
- rubygems_version: 3.0.3
184
+ rubygems_version: 3.1.2
185
185
  signing_key:
186
186
  specification_version: 4
187
187
  summary: A simple delayed_job master process to control multiple workers