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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f6e739f09f2271ea9904b73771ac03701be57e5eae64e3dd3963e772cda7bdb2
4
- data.tar.gz: 2ab0776fd2dad66b0db9ba38904a3edfbc540e854187f7a59ca205a748b4fd74
3
+ metadata.gz: bf984d9ac3e15500e5d146f99178d6310b5764e397d3d98ccb9661dc437b88c0
4
+ data.tar.gz: 89bd805d369b10b78fcb9e82ef8747743ab415fd3dc55f9a927215092b9bcd39
5
5
  SHA512:
6
- metadata.gz: 9231cf42e072213083e19c924a09838185faf20d240db195cba87db8f406443ac83172622e4ed89652d09f669e6ce04b7bae3a7836755b28043350c1e2ca056a
7
- data.tar.gz: 9b63c398a1e129701a20330c5e801f8f36a04651366ed3f38d01061d86033774eb9fe845097af0041f465083d433f4ef783e1be8abf1d083a43f6e3e714c3057
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
@@ -4,3 +4,6 @@ gemspec
4
4
 
5
5
  # To test different Sidekiq versions
6
6
  gem "sidekiq", ENV.fetch("SIDEKIQ_VERSION", ">= 6")
7
+
8
+ # To test different Active Job versions
9
+ gem "activejob", ENV.fetch("ACTIVE_JOB_VERSION", "~> 7")
@@ -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 = get_job_class_options(@klass)
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 get_job_class_options(klass)
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
- {"queue"=>klass.queue_name}
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sidekiq
4
4
  module Cron
5
- VERSION = "2.0.0"
5
+ VERSION = "2.0.1"
6
6
  end
7
7
  end
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.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 00:00:00.000000000 Z
11
+ date: 2024-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cronex