que-scheduler 3.2.6 → 3.2.7

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7529f8184cfe7309afb6c9eee51711491b820bf7f67268b0a6d3c061ff382cca
4
- data.tar.gz: d6b56d73a4c7844881418b12071283a2da79c9bf932e7d24320211d3dcdc0d54
3
+ metadata.gz: 1085b028076fd5380d046d26f49dbc42004e0a0c9a0576e8e92cff93726e980f
4
+ data.tar.gz: 61c315d358848616d9bdc74a6704a011e0ca6165ebd5fce104eeac7a1ad830ec
5
5
  SHA512:
6
- metadata.gz: 7623907aacf3c0754ac60677a63638455dcf38fc0bb7abbb39f4cbbd728d880d5697354f43e6557985a7cc64eecfcb1c7cc7ee918536f16ac70c53a7c3c1765e
7
- data.tar.gz: 115f75f933ded700e39f3ad68a930bfc160a09c34eb872f99bb0bc9cfae8c058b3c54de3b2875293ea8cedf06a086648b54c3706b1bf53158093487deb09d555
6
+ metadata.gz: b11700cb20b528d2cac6b00960736e1107277163d80b22f68eb498fe00b5530260c6f89e1f6c6981f982af33b73bf6d7ebf8fa9273e35fd6495fb8cb0f516aa1
7
+ data.tar.gz: aa6b0ca104cbe5daf013c748d854df1e9755a065a7183ef9182783d155707272fbd27d89b58c8097b16ba7368b42f3c68f5802756f4f012851c2392bc36a8640
data/README.md CHANGED
@@ -222,27 +222,6 @@ The scheduler will then continue to retry indefinitely.
222
222
  que-scheduler uses [semantic versioning](https://semver.org/), so major version changes will usually
223
223
  require additional actions to be taken upgrading from one major version to another.
224
224
 
225
- Major feature changes are listed below. The full
226
- [CHANGELOG](https://github.com/hlascelles/que-scheduler/blob/master/CHANGELOG.md) can be found in
227
- the root of the project.
228
-
229
- #### Versions 3.x
230
- - Addition of a config initializer.
231
- - Addition of numerous extra columns to the audit table.
232
- - Drop support for ruby 2.1 and rails 3.x
233
- - Required cumulative migration: `Que::Scheduler::Migrations.migrate!(version: 4)`
234
- #### Versions 2.x
235
- - Introduction of the audit table.
236
- - Support for older versions of postgres
237
- - Required cumulative migration: `Que::Scheduler::Migrations.migrate!(version: 3)`
238
- #### Versions 1.x
239
- - Sequel support
240
- - Config specified Timezone support
241
- - Required migration adding the initial job: `Que::Scheduler::SchedulerJob.enqueue`
242
- #### Versions 0.x
243
- - The first public release.
244
- - Required migration adding the initial job: `Que::Scheduler::SchedulerJob.enqueue`
245
-
246
225
  ## System requirements
247
226
 
248
227
  Your [postgres](https://www.postgresql.org/) database must be at least version 9.4.0.
@@ -1,5 +1,5 @@
1
1
  module Que
2
2
  module Scheduler
3
- VERSION = '3.2.6'.freeze
3
+ VERSION = '3.2.7'.freeze
4
4
  end
5
5
  end
@@ -5,13 +5,12 @@ require 'que'
5
5
  module Que
6
6
  module Scheduler
7
7
  module VersionSupport
8
- # rubocop:disable Style/GuardClause Temporary code
9
8
  class << self
10
9
  def set_priority(context, priority)
11
10
  if zero_major?
12
11
  context.instance_variable_set('@priority', priority)
13
12
  else
14
- raise 'Unsupported Que version'
13
+ context.priority = priority
15
14
  end
16
15
  end
17
16
 
@@ -19,7 +18,9 @@ module Que
19
18
  if zero_major?
20
19
  enqueued_job.attrs.transform_keys(&:to_sym)
21
20
  else
22
- raise 'Unsupported Que version'
21
+ enqueued_job.que_attrs.transform_keys(&:to_sym).tap do |hash|
22
+ hash[:job_id] = hash.delete(:id)
23
+ end
23
24
  end
24
25
  end
25
26
 
@@ -33,7 +34,7 @@ module Que
33
34
  if zero_major?
34
35
  ''
35
36
  else
36
- raise 'Unsupported Que version'
37
+ Que::DEFAULT_QUEUE
37
38
  end
38
39
  end
39
40
 
@@ -48,7 +49,6 @@ module Que
48
49
  array.map { |row| row.transform_keys(&:to_sym) }
49
50
  end
50
51
  end
51
- # rubocop:enable Style/GuardClause
52
52
  end
53
53
  end
54
54
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: que-scheduler
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.6
4
+ version: 3.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Harry Lascelles
@@ -76,16 +76,22 @@ dependencies:
76
76
  name: que
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
- - - "~>"
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0.12'
82
+ - - "<="
80
83
  - !ruby/object:Gem::Version
81
- version: '0.10'
84
+ version: 1.0.0.beta3
82
85
  type: :runtime
83
86
  prerelease: false
84
87
  version_requirements: !ruby/object:Gem::Requirement
85
88
  requirements:
86
- - - "~>"
89
+ - - ">="
90
+ - !ruby/object:Gem::Version
91
+ version: '0.12'
92
+ - - "<="
87
93
  - !ruby/object:Gem::Version
88
- version: '0.10'
94
+ version: 1.0.0.beta3
89
95
  - !ruby/object:Gem::Dependency
90
96
  name: activerecord
91
97
  requirement: !ruby/object:Gem::Requirement