sidekiq-cron 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 +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile +3 -0
- data/lib/sidekiq/cron/job.rb +5 -3
- data/lib/sidekiq/cron/locales/ja.yml +4 -4
- data/lib/sidekiq/cron/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf984d9ac3e15500e5d146f99178d6310b5764e397d3d98ccb9661dc437b88c0
|
4
|
+
data.tar.gz: 89bd805d369b10b78fcb9e82ef8747743ab415fd3dc55f9a927215092b9bcd39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6c5995218160d696554156e7f88723021cb51b407ad01f42ecfcfd306010f50d61a02435a00d1fb2c193e2611cfd84eaf9bf620e05eadbb094ea51dbfe45d2d
|
7
|
+
data.tar.gz: 2455bc30bb2aba3969f8ede6a18a20e38559b152366290aeba8611c76465173ff4ef904da043624a4d6e78754f82b922c10d9df8a4668b45e122925d9bda2451
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,11 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
+
## 2.0.1
|
6
|
+
|
7
|
+
- Fix usage of ActiveJob::Base.queue_name (https://github.com/sidekiq-cron/sidekiq-cron/pull/517)
|
8
|
+
- Fix: Add quotes to Japanese translations containing multi-byte symbols (https://github.com/sidekiq-cron/sidekiq-cron/pull/515)
|
9
|
+
|
5
10
|
## 2.0.0
|
6
11
|
|
7
12
|
Sidekiq-Cron v2 is here! In this release we refactored some internals, plus:
|
data/Gemfile
CHANGED
data/lib/sidekiq/cron/job.rb
CHANGED
@@ -70,7 +70,7 @@ module Sidekiq
|
|
70
70
|
|
71
71
|
# Get right data for message,
|
72
72
|
# only if message wasn't specified before.
|
73
|
-
klass_data =
|
73
|
+
klass_data = get_job_options(@klass, @args)
|
74
74
|
message_data = klass_data.merge(message_data)
|
75
75
|
|
76
76
|
# Override queue and retry if set in config,
|
@@ -793,7 +793,7 @@ module Sidekiq
|
|
793
793
|
end
|
794
794
|
end
|
795
795
|
|
796
|
-
def
|
796
|
+
def get_job_options(klass, args)
|
797
797
|
klass = klass.is_a?(Class) ? klass : begin
|
798
798
|
Sidekiq::Cron::Support.constantize(klass)
|
799
799
|
rescue NameError
|
@@ -804,7 +804,9 @@ module Sidekiq
|
|
804
804
|
# Unknown class
|
805
805
|
{"queue"=>"default"}
|
806
806
|
elsif is_active_job?(klass)
|
807
|
-
|
807
|
+
job = klass.new(args)
|
808
|
+
|
809
|
+
{"queue"=>job.queue_name}
|
808
810
|
else
|
809
811
|
klass.get_sidekiq_options
|
810
812
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
ja:
|
2
|
-
AreYouSureDeleteCronJob: 本当に%{job}のcronジョブを削除しますか?
|
3
|
-
AreYouSureDeleteCronJobs: 本当にすべてのcronジョブを削除しますか?
|
4
|
-
AreYouSureEnqueueCronJob: %{job} の クロン ジョブをキューに入れてもよろしいですか?
|
5
|
-
AreYouSureEnqueueCronJobs: すべての クロン ジョブをキューに入れてもよろしいですか?
|
2
|
+
AreYouSureDeleteCronJob: "本当に%{job}のcronジョブを削除しますか?"
|
3
|
+
AreYouSureDeleteCronJobs: "本当にすべてのcronジョブを削除しますか?"
|
4
|
+
AreYouSureEnqueueCronJob: "%{job} の クロン ジョブをキューに入れてもよろしいですか?"
|
5
|
+
AreYouSureEnqueueCronJobs: "すべての クロン ジョブをキューに入れてもよろしいですか?"
|
6
6
|
Cron: Cron
|
7
7
|
CronJobs: Cronジョブ
|
8
8
|
CronString: Cron
|
data/lib/sidekiq/cron/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq-cron
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ondrej Bartas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cronex
|