sidekiq-scheduler 5.0.0.beta2 → 5.0.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: 61b712b6041cf2ae56091ce03f0e81e0fe7ba1b5e67eb65dec491ab93c8c3a0a
4
- data.tar.gz: 4ce412bfb35904d1097bb9ac030841ba095db54d9f4c235aae85455317f3bd5e
3
+ metadata.gz: dbc0959de6089dd904f4926977972ed661fd16291ac2182ac841266b9672d05b
4
+ data.tar.gz: 46f8bec57950a5f60af7d325b6b9a6975a79fe4cbab7b8c40a26ea620c39e688
5
5
  SHA512:
6
- metadata.gz: 39493fccab0561b13e0d81c72b657e00bae884010c441e18c3e61f0f6faf820dd16948b34efc8b941aa36332e603ab9f61044d3eebecff79ba4b0dc734fc0343
7
- data.tar.gz: 2e49516641e09dfb90a8bbe07f617412c7d9dbe281d9c02fb7c30df172225f4f7a8d4037139fe7e4ed83ff7739040267afebc79fd53f983ca78d69fb1e84f212
6
+ metadata.gz: ce26367bbd65a8600beb96de05dca16b80b3fabf4a0befe5c905ba76f02aa45c7acb291fc4636970c0e0deb43d56b4dade39118519ee72538c58c66eaa3dc077
7
+ data.tar.gz: bd9d13424d3eb2c9e06cf0482376aa3463af2560ba387908072cb99acb27b810ba80f7d74076829ec20cd3ea19eab1a882a3eac2904c41eb98c6eedfc9cd2635
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ # 5.0.0
2
+
3
+ - [**FIX**] Ensure generated scheduled time has a precision of 3 miliseconds. [#418](https://github.com/sidekiq-scheduler/sidekiq-scheduler/pull/418)
4
+
5
+ *Note 1:* Check [# 5.0.0.beta1](#500beta1) & [# 5.0.0.beta2](#500beta2) releases for breaking changes.
6
+
7
+ *Note 2:* Sidekiq Embedding is yet not supported, see [#419](https://github.com/sidekiq-scheduler/sidekiq-scheduler/issues/419) for more details.
8
+
9
+
1
10
  # 5.0.0.beta2
2
11
 
3
12
  - [**FIX**] Drop explicit redis dependency [#416](https://github.com/sidekiq-scheduler/sidekiq-scheduler/pull/416)
@@ -17,7 +17,7 @@ module SidekiqScheduler
17
17
  # saying we will have to do it somehow still)
18
18
  #
19
19
  # NOTE: ^ Keeping this TODO here for now, in a future version of this project
20
- # we will remove those attr acessors and use only our config object. For now,
20
+ # we will remove those attr acessors and use only our config object. For now,
21
21
  # let's keep as it is.
22
22
 
23
23
  # Set to enable or disable the scheduler.
@@ -170,7 +170,7 @@ module SidekiqScheduler
170
170
  config = prepare_arguments(job_config.dup)
171
171
 
172
172
  if config.delete('include_metadata')
173
- config['args'] = arguments_with_metadata(config['args'], "scheduled_at" => time.to_f)
173
+ config['args'] = arguments_with_metadata(config['args'], "scheduled_at" => time.to_f.round(3))
174
174
  end
175
175
 
176
176
  if SidekiqScheduler::Utils.active_job_enqueue?(config['class'])
@@ -291,7 +291,7 @@ module SidekiqScheduler
291
291
  # since epoch.
292
292
  #
293
293
  # @example with hash argument
294
- # arguments_with_metadata({value: 1}, scheduled_at: Time.now)
294
+ # arguments_with_metadata({value: 1}, scheduled_at: Time.now.round(3))
295
295
  # #=> [{value: 1}, {scheduled_at: <miliseconds since epoch>}]
296
296
  #
297
297
  # @param args [Array|Hash]
@@ -1,3 +1,3 @@
1
1
  module SidekiqScheduler
2
- VERSION = "5.0.0.beta2"
2
+ VERSION = "5.0.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-scheduler
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0.beta2
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Morton Jonuschat
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2023-01-02 00:00:00.000000000 Z
13
+ date: 2023-01-23 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: sidekiq
@@ -244,9 +244,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
244
244
  version: '2.7'
245
245
  required_rubygems_version: !ruby/object:Gem::Requirement
246
246
  requirements:
247
- - - ">"
247
+ - - ">="
248
248
  - !ruby/object:Gem::Version
249
- version: 1.3.1
249
+ version: '0'
250
250
  requirements: []
251
251
  rubygems_version: 3.2.33
252
252
  signing_key: