activejob_backport 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/active_job/gem_version.rb +1 -1
- data/lib/active_job/logging.rb +0 -1
- data/lib/active_job/queue_adapter.rb +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32ac234a8ceaec414e0e0540d9dead3fc95b6d26
|
4
|
+
data.tar.gz: 21270e33dd1f9463f0e9fc89c50ac74ab200a11e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce74deb02a3c74c5cca37de1eee7070e5c420132a0a8a49d46d07b39b2b2cef1fe9c9cc657eac0b10f4be37f59436d07e372b23636b1b9a8eec4981eca19d9c3
|
7
|
+
data.tar.gz: d74fd56bcd46493bad63884fdd2b3389a6eab2d1c38bf77463d09aec520c49eb8355f17ad775f18d8081015d565c4b92189f9b51be5ac2fcb8c886a04fcbb48f
|
data/README.md
CHANGED
@@ -15,3 +15,5 @@ ActiveJob::Base.queue_adapter = :inline # default queue adapter
|
|
15
15
|
```
|
16
16
|
|
17
17
|
See [how to use Active Job](http://edgeguides.rubyonrails.org/active_job_basics.html) and the [official repo](https://github.com/rails/rails/tree/master/activejob)
|
18
|
+
|
19
|
+
[![Build Status](https://travis-ci.org/ankane/activejob_backport.png?branch=master)](https://travis-ci.org/ankane/activejob_backport)
|
data/lib/active_job/logging.rb
CHANGED
@@ -5,8 +5,12 @@ module ActiveJob
|
|
5
5
|
module QueueAdapter
|
6
6
|
extend ActiveSupport::Concern
|
7
7
|
|
8
|
+
included do
|
9
|
+
self.queue_adapter = ActiveJob::QueueAdapters::InlineAdapter
|
10
|
+
end
|
11
|
+
|
8
12
|
module ClassMethods
|
9
|
-
mattr_reader(:queue_adapter)
|
13
|
+
mattr_reader(:queue_adapter)
|
10
14
|
|
11
15
|
def queue_adapter=(name_or_adapter)
|
12
16
|
@@queue_adapter = \
|