kiq_tock 0.1.1 → 0.1.2

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: d2b39f05dc56160fdd9d02de21cf62e4f579aac955e0b0ad05ca16a851fada13
4
- data.tar.gz: d345f9df64faf0b68fb9804846dd9b440c4cd7d0298daeb30589e2da0eaefd9a
3
+ metadata.gz: c0c31d7fc88dfd9041767079be36217c688b01d1e199cf6dfcc12f3b89ec3fda
4
+ data.tar.gz: 03fc6d473aaf652276376aa174b7b14ee9127253efb0bb70e96673a4a9608abb
5
5
  SHA512:
6
- metadata.gz: be36d58b2d9543e9f5ea4253b1c1a488b6febb1149fbc02973d934bd1ecae79f3825d33cb0d268b3d5e0b51ac9c34ee8e56f28f91a6db2e6a5b5a5ba55cb1339
7
- data.tar.gz: 62845ce72c8c863f05790ddd624722f46775505433f98099f4b6ca8d834b72abff9afba3eda89d2efd966f7383dfc1757f022df028d73db1c9f3668b10d01b12
6
+ metadata.gz: 4131b9e240fa0c84c2bd80d7b1d10cf623f078131fcd1728cdf1eee3ab0a9b0e3d8c13cdb34f359e9f53921f2c15fa4cfea80af8924a591b769c32c05a95a588
7
+ data.tar.gz: 4ddfae4fd8e20890f20a01d2337166572c92f48eedd0064d0a6bee9d301a7e2ba537d59c620379693e7802790205180e82064d4f7f0c7a65bcc6fc35b922438b
@@ -8,6 +8,10 @@ module KiqTock
8
8
  CRON_FIELDS = %i[minutes hours days_of_month days_of_week months_of_year].freeze
9
9
  DEFAULT_JOBS_FILE = File.expand_path 'sidekiq/periodic_jobs.yml'
10
10
 
11
+ def self.register_jobs(scheduler:, jobs_file: nil)
12
+ new(scheduler: scheduler, jobs_file: jobs_file).register_jobs
13
+ end
14
+
11
15
  def initialize(scheduler:, jobs_file: nil)
12
16
  @jobs_file = jobs_file
13
17
  @scheduler = scheduler
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KiqTock
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kiq_tock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Streicher