anachronic 0.43.0 → 0.43.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 258ec036a2fdc3a3ef100b6e77b9db95f09b640138297cdefe8eb8120cb18bc7
4
- data.tar.gz: f71aa8121e0a373044026d82b3ea654c67f47816aaca3645a99df8cfcac6d941
3
+ metadata.gz: c47a036f9c454bc2d3611bb5112971aced6ffb11ec19cd52c4395f9a65de15a2
4
+ data.tar.gz: 1e0cca89c7fa62548050133dfbf1fd57b6d2e3a86d69b4f4d5aac55a580a8bd1
5
5
  SHA512:
6
- metadata.gz: 707d67121db58d16bfd44f504ebfd7d5ee234cab4824d1e42d71ede2cbe96649898c21404f8e21480e0d0a1a8f02a3415e214f2fffd03cde9b7ccd2ca1364e6f
7
- data.tar.gz: 461deb146099ef7e3f97b9369be8f66229bd3503acc9fc6391257decc123f7d14c9626bd4bef291529ec33403bd6d278934166b427625f3d1d365003fe041c32
6
+ metadata.gz: c4c0b3344d175039caaff2c8376efdb564f110727761c1c9a230d872346bdd95bb837f4b7d6c7f440a366c2bee3ab78bafadce1fc99abd107576ab079f49146a
7
+ data.tar.gz: 6453409497e03fa1504992b25f47ef8caffc8945f03587d338e9f43175aab33320d3ad4792d1a223e0dd5d02e3a4880b58e90605b52666ab1c501cffdf48b46f
data/.gitignore CHANGED
@@ -6,6 +6,6 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
-
9
+ *.gem
10
10
  # rspec failure tracking
11
11
  .rspec_status
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- anachronic (0.43.0)
4
+ anachronic (0.43.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -61,8 +61,8 @@ end
61
61
  ```
62
62
 
63
63
  In case no `default_exeucutor` is configured, the gem will use the first one that is available (defined) from the list:
64
- - ApplicationJob
65
64
  - Sidekiq
65
+ - ApplicationJob
66
66
  - Resque
67
67
 
68
68
 
@@ -1,6 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative './error.rb'
4
+ require_relative './executors/sidekiq.rb'
5
+ require_relative './executors/application_job.rb'
6
+ require_relative './executors/resque.rb'
4
7
 
5
8
  module Anachronic
6
9
  # Class for deciding a background execution backend
@@ -16,8 +19,8 @@ module Anachronic
16
19
 
17
20
  def executor
18
21
  @executor ||= begin
19
- return Executors::ApplicationJob if default_or_defined?(ApplicationJob)
20
22
  return Executors::Sidekiq if default_or_defined?(Sidekiq)
23
+ return Executors::ApplicationJob if default_or_defined?(ApplicationJob)
21
24
  return Executors::Resque if default_or_defined?(Resque)
22
25
  end
23
26
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Anachronic
4
- VERSION = '0.43.0'
4
+ VERSION = '0.43.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anachronic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.43.0
4
+ version: 0.43.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danielius Visockas