anachronic 0.42.3 → 0.42.4

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: 743dddfad60bed6e4675cdac3331ea6ec4bfbb0f56ad9ebfc704b2a9e43a2d2c
4
- data.tar.gz: 543760bbdff7016978b015e5488441f41751c1822f45708921d21b44ead3d202
3
+ metadata.gz: 552a86cd15eb48eaf95c7e44b5a06d291e2d1cf9382361022cf7bce823affa26
4
+ data.tar.gz: cd0cd75050e84005456221f679831e3973b337595a6586cefe82c32574ca6577
5
5
  SHA512:
6
- metadata.gz: d977775a046b882d476d9d2a03c3a63b962787c931b152cde5a17b06b18db765a2e50e51aaca3be61102d1ee080ab689b704040ff3daf2db807c78526b00e9d5
7
- data.tar.gz: df029c59826a30b9f41a932aec5141b6cd1f120e9d7193b968dc2d5fbf0643b5c3771732fcf91a23c040eab25e44a6fbe28884bfa85a67928756892d104a176b
6
+ metadata.gz: 6ddb8926f83f9610b726a63ffed96d87452820cbd491c6358d9407c835801a41267063d801b302c828dcdf16aeb36d0835f49b1fd8e672225a422e2e7a78fe6c
7
+ data.tar.gz: e066bc7cf579c026b633fb53ce039b82201783a561a14eea61f7cf82e7500c40086e0b5e7694e45e7ad8f7d9000d00ba6a819dd88868482e64c5a760cb6da4e8
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- anachronic (0.42.3)
4
+ anachronic (0.42.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/Rakefile CHANGED
@@ -1,5 +1,7 @@
1
- require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
3
5
 
4
6
  RSpec::Core::RakeTask.new(:spec)
5
7
 
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "anachronic/version"
4
- require "anachronic/background_executor"
5
- require "anachronic/error"
3
+ require 'anachronic/version'
4
+ require 'anachronic/error'
5
+ require 'anachronic/background_executor'
6
6
 
7
7
  module Anachronic
8
8
  def async(method_name)
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative './error.rb'
4
-
5
3
  module Anachronic
6
4
  class BackgroundExecutor
7
5
  class << self
@@ -14,15 +12,14 @@ module Anachronic
14
12
  private
15
13
 
16
14
  def executor
17
- @executor ||= begin
18
- return Executors::ApplicationJob if defined?(ApplicationJob)
19
- return Executors::ApplicationJob if defined?(Sidekiq)
20
- return Executors::Resque if defined?(Resque)
21
- end
15
+ return Executors::ApplicationJob if defined?(ApplicationJob)
16
+ return Executors::ApplicationJob if defined?(Sidekiq)
17
+
18
+ Executors::Resque if defined?(Resque)
22
19
  end
23
20
 
24
21
  def no_executor
25
- raise Anachronic::Error('No background executor defined, async methods will be executed synchronously')
22
+ raise Anachronic::Error, 'No background executor defined, async methods will be executed synchronously'
26
23
  end
27
24
  end
28
25
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Anachronic
2
- VERSION = '0.42.3'
4
+ VERSION = '0.42.4'
3
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.3
4
+ version: 0.42.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danielius Visockas