anachronic 0.42.4 → 0.42.6

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: 552a86cd15eb48eaf95c7e44b5a06d291e2d1cf9382361022cf7bce823affa26
4
- data.tar.gz: cd0cd75050e84005456221f679831e3973b337595a6586cefe82c32574ca6577
3
+ metadata.gz: a94b2596cc6701797823e11d54f2033cf761befcd3bc7b02a698971b76e15fac
4
+ data.tar.gz: 14d03b753290f1aa7a8aba961e7bc26ad7e399413b7212897da1c2ea201844f4
5
5
  SHA512:
6
- metadata.gz: 6ddb8926f83f9610b726a63ffed96d87452820cbd491c6358d9407c835801a41267063d801b302c828dcdf16aeb36d0835f49b1fd8e672225a422e2e7a78fe6c
7
- data.tar.gz: e066bc7cf579c026b633fb53ce039b82201783a561a14eea61f7cf82e7500c40086e0b5e7694e45e7ad8f7d9000d00ba6a819dd88868482e64c5a760cb6da4e8
6
+ metadata.gz: 692188099eb895cdb4e46511dbf67fe5faedd78973193aa1d56eb4157091ab45b52301dea34ffb39352ebe2732575b4af2985c9d17cd3e99378c4cee1d343093
7
+ data.tar.gz: 16d009f6e1054d8e4757538f20fb42cf0f8387cd71392aad10cc83ee133f4c1f3482d2127a0d1df28a0b179b825939973d3b770e15054bd20c26c6a75579dbe7
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- anachronic (0.42.4)
4
+ anachronic (0.42.6)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -3,6 +3,7 @@
3
3
  require 'anachronic/version'
4
4
  require 'anachronic/error'
5
5
  require 'anachronic/background_executor'
6
+ require 'anachronic/executors/application_job'
6
7
 
7
8
  module Anachronic
8
9
  def async(method_name)
@@ -1,18 +1,17 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Anachronic
4
- module Executors
5
- class ApplicationJob
6
- def self.call(instance, method, *args)
7
- default_executor.perform_later(instance, method, *args)
8
- end
4
+ module Executors
5
+ class ApplicationJob
6
+ def self.call(instance, method, *args)
7
+ default_executor.perform_later(instance, method, *args)
8
+ end
9
9
 
10
- def self.default_executor
11
- @default_executor ||= begin
12
- Class.new(ApplicationJob) do
13
- def perform_later(instance, method, *args)
14
- instance.public_send(method, *args)
15
- end
10
+ def self.default_executor
11
+ @default_executor ||= begin
12
+ Class.new(ApplicationJob) do
13
+ def perform_later(instance, method, *args)
14
+ instance.public_send(method, *args)
16
15
  end
17
16
  end
18
17
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Anachronic
4
- VERSION = '0.42.4'
4
+ VERSION = '0.42.6'
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.42.4
4
+ version: 0.42.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danielius Visockas