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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2d443ef108536b2070d997a09d65c038ce0d67f1
4
- data.tar.gz: 222e88e76594124766adefcad4b53195d33b8a2e
3
+ metadata.gz: 32ac234a8ceaec414e0e0540d9dead3fc95b6d26
4
+ data.tar.gz: 21270e33dd1f9463f0e9fc89c50ac74ab200a11e
5
5
  SHA512:
6
- metadata.gz: 24e46886f1267b394bb8278352c005cf2eb2ed9930b1f674abe8d3f0dd0f26a4317e0bd94052b9ce2eb2bfcf32325611f0a85abf9745516a37a773fee5c05882
7
- data.tar.gz: 2f827a68356e4e15d563658b0b3522ff7c637a377bfc1978da2216e06eb921ff0b0e21a5c62e9ed6cc3d6e9d972be1564390d67e957d4240c7b3f405a89e9286
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)
@@ -7,7 +7,7 @@ module ActiveJob
7
7
  module VERSION
8
8
  MAJOR = 0
9
9
  MINOR = 0
10
- TINY = 1
10
+ TINY = 2
11
11
  PRE = nil
12
12
 
13
13
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
@@ -70,7 +70,6 @@ module ActiveJob
70
70
 
71
71
  class LogSubscriber < ActiveSupport::LogSubscriber
72
72
  def enqueue(event)
73
- p event.payload
74
73
  info do
75
74
  job = event.payload[:job]
76
75
  "Enqueued #{job.class.name} (Job ID: #{job.job_id}) to #{queue_name(event)}" + args_info(job)
@@ -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) { ActiveJob::QueueAdapters::InlineAdapter }
13
+ mattr_reader(:queue_adapter)
10
14
 
11
15
  def queue_adapter=(name_or_adapter)
12
16
  @@queue_adapter = \
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activejob_backport
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson