sidekiq_portal 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/portal/job_manager/builder.rb +5 -2
- data/lib/portal/version.rb +2 -2
- 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: 54b2320c7a9a11f922666cf4d44c8823b76c35f2c5cc5bf574d3beeffab7f855
|
4
|
+
data.tar.gz: 60c92d020518f8fdb07adc0ac7766cc81e7d630b1352517fff385ef607ede576
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9579c101a8d3fab7eed7632bfb4f5d1980a6ad98f2e380bb1a9390ad678896dd200a14e7da3dbbe91b055e0d1ff09ff8c634e7672e0c59e2d5fea610a2d7038
|
7
|
+
data.tar.gz: b685d0e506d87dde2f125d44e5e6265b45958a73b1a84c1c39864fdaf1380a98ba80ac7a118bc7ab8bed8f987ff3185ccf705b6c024d47c6682c6e17729b1b02
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
# Changelog
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
|
4
|
+
## [0.3.2] - 2023-04-27
|
5
|
+
- Support for `:class` option name for job class name in scheduler config;
|
6
|
+
|
4
7
|
## [0.3.1] - 2022-10-10
|
5
8
|
### Fixed
|
6
9
|
- Fixed `ActiveSupport`'s dependnecy lock which did not allow the use of Rails@7;
|
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
# @api private
|
4
4
|
# @since 0.1.0
|
5
|
+
# @version 0.3.2
|
5
6
|
class Sidekiq::Portal::JobManager::Builder
|
6
7
|
class << self
|
7
8
|
# @param config [Sidekiq::Portal::Config]
|
@@ -63,12 +64,14 @@ class Sidekiq::Portal::JobManager::Builder
|
|
63
64
|
#
|
64
65
|
# @api private
|
65
66
|
# @since 0.1.0
|
67
|
+
# @version 0.3.2
|
66
68
|
def resolve_job_klass(job_config_series, scheduler_options)
|
67
|
-
|
69
|
+
job_klass_name = scheduler_options['class'] || scheduler_options[:class]
|
70
|
+
job_klass = job_klass_name.to_s.constantize rescue nil
|
68
71
|
job_klass ||= job_config_series.to_s.constantize rescue nil
|
69
72
|
|
70
73
|
raise(Sidekiq::Portal::ConfusingJobConfigError, <<~ERROR_MESSAGE) unless job_klass
|
71
|
-
Can't resolve job class from \"#{
|
74
|
+
Can't resolve job class from \"#{job_klass_name || job_config_series}\" job name
|
72
75
|
ERROR_MESSAGE
|
73
76
|
|
74
77
|
job_klass
|
data/lib/portal/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq_portal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rustam Ibragimov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: qonfig
|