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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2cdf28d112977ed9da2df4da06a16a3d54dbbd46925a3f157a0668bb9e0e357d
4
- data.tar.gz: 2ce2bba5f4376837174b0151075c0a662eaf59fad0ff6ff4939182499403c298
3
+ metadata.gz: 54b2320c7a9a11f922666cf4d44c8823b76c35f2c5cc5bf574d3beeffab7f855
4
+ data.tar.gz: 60c92d020518f8fdb07adc0ac7766cc81e7d630b1352517fff385ef607ede576
5
5
  SHA512:
6
- metadata.gz: 15b6f23c65ec5775886218acbf6262074db60f05b12737e3481a8b2d58225866a1bfa01dd85c8a6d8768974e5826f75965d8fdd51659694ea3541027f0da019b
7
- data.tar.gz: 2120bc4cfc85a9845ecba88ab78eb6132b68cb098ec489f3343afe99ff70963eede57e73a675b5130d000b05cc62f202a4f4e32969f98af9adebc5d702f6acda
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
- job_klass = scheduler_options['class'].to_s.constantize rescue nil
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 \"#{scheduler_options['class'] || job_config_series}\" job name
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
@@ -10,7 +10,7 @@ module Sidekiq
10
10
  #
11
11
  # @api public
12
12
  # @since 0.1.0
13
- # @version 0.3.1
14
- VERSION = '0.3.1'
13
+ # @version 0.3.2
14
+ VERSION = '0.3.2'
15
15
  end
16
16
  end
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.1
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: 2022-10-10 00:00:00.000000000 Z
11
+ date: 2023-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: qonfig