advanced-sneakers-activejob 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +11 -4
- data/CHANGELOG.md +8 -0
- data/lib/advanced_sneakers_activejob.rb +8 -0
- data/lib/advanced_sneakers_activejob/railtie.rb +0 -12
- data/lib/advanced_sneakers_activejob/version.rb +1 -1
- 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: 1aaae2951e9e941f00eaf9ef8c51a0c56d04cc9c562feed490a245c1d918ba07
|
4
|
+
data.tar.gz: 6489ed0097e980a21f10183422835ebc937d89cce253f5dc7a9074672747d83d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d5694a6f435e4fdb73be0f6966a5167b10b1c58075a6f52a8022a7954f4d40fe50d4b17de24cdd5d8141936a4c6b7235e93c69d14a4ba3eefd5483d1f6f63b8
|
7
|
+
data.tar.gz: 228835587b2413b91d6ac65e1a1aa5b4275e4feb8506b283a2622aa7798a768b352ab84d2ab0fa8355be25fa25e5362eaa017ed7bf190d7898e14dcdd018e866
|
data/.rubocop.yml
CHANGED
@@ -1,8 +1,15 @@
|
|
1
|
+
AllCops:
|
2
|
+
NewCops: enable
|
3
|
+
|
1
4
|
Layout/LineLength:
|
2
5
|
Max: 140
|
3
6
|
Exclude:
|
4
7
|
- spec/**/*
|
5
8
|
|
9
|
+
Lint/SuppressedException:
|
10
|
+
Exclude:
|
11
|
+
- spec/**/*
|
12
|
+
|
6
13
|
Metrics/ClassLength:
|
7
14
|
Enabled: false
|
8
15
|
|
@@ -11,6 +18,10 @@ Metrics/BlockLength:
|
|
11
18
|
- advanced-sneakers-activejob.gemspec
|
12
19
|
- spec/**/*
|
13
20
|
|
21
|
+
Metrics/CyclomaticComplexity:
|
22
|
+
Exclude:
|
23
|
+
- spec/support/log_helpers.rb
|
24
|
+
|
14
25
|
Metrics/MethodLength:
|
15
26
|
Exclude:
|
16
27
|
- spec/**/*
|
@@ -27,9 +38,5 @@ Metrics/AbcSize:
|
|
27
38
|
Exclude:
|
28
39
|
- spec/**/*
|
29
40
|
|
30
|
-
Lint/SuppressedException:
|
31
|
-
Exclude:
|
32
|
-
- spec/**/*
|
33
|
-
|
34
41
|
Style/Documentation:
|
35
42
|
Enabled: false
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
## Changes Between 0.3.4 and 0.3.5
|
2
|
+
|
3
|
+
[Fixed NoMethodError on Rails.application.eager_load! in Rails initializer](https://github.com/veeqo/advanced-sneakers-activejob/pull/11)
|
4
|
+
|
5
|
+
```
|
6
|
+
NoMethodError: undefined method `message_options' for MyJob:Class
|
7
|
+
```
|
8
|
+
|
1
9
|
## Changes Between 0.3.3 and 0.3.4
|
2
10
|
|
3
11
|
### [Support for wildcards to run ActiveJob consumers by queues](https://github.com/veeqo/advanced-sneakers-activejob/pull/10)
|
@@ -21,6 +21,14 @@ require 'advanced_sneakers_activejob/active_job_patch'
|
|
21
21
|
require 'advanced_sneakers_activejob/railtie' if defined?(::Rails::Railtie)
|
22
22
|
require 'active_job/queue_adapters/advanced_sneakers_adapter'
|
23
23
|
|
24
|
+
ActiveSupport.on_load(:active_job) do
|
25
|
+
ActiveJob::Base.include AdvancedSneakersActiveJob::ActiveJobPatch
|
26
|
+
end
|
27
|
+
|
28
|
+
ActiveSupport.on_load(:action_mailer) do
|
29
|
+
require 'action_mailer/delivery_job' # Enforce definition of ActionMailer::DeliveryJob::Consumer
|
30
|
+
end
|
31
|
+
|
24
32
|
# Advanced Sneakers adapter for ActiveJob
|
25
33
|
module AdvancedSneakersActiveJob
|
26
34
|
class << self
|
@@ -3,18 +3,6 @@
|
|
3
3
|
module AdvancedSneakersActiveJob
|
4
4
|
# Rails integration
|
5
5
|
class Railtie < ::Rails::Railtie
|
6
|
-
initializer 'advanced_sneakers_activejob.discover_mailer_job' do
|
7
|
-
ActiveSupport.on_load(:action_mailer) do
|
8
|
-
require 'action_mailer/delivery_job' # Enforce definition of ActionMailer::DeliveryJob::Consumer
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
initializer 'advanced_sneakers_activejob.discover_default_job' do
|
13
|
-
ActiveSupport.on_load(:active_job) do
|
14
|
-
ActiveJob::Base.include AdvancedSneakersActiveJob::ActiveJobPatch
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
6
|
rake_tasks do
|
19
7
|
require 'advanced_sneakers_activejob/tasks'
|
20
8
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: advanced-sneakers-activejob
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rustam Sharshenov
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-
|
12
|
+
date: 2020-07-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activejob
|