activejob-cancel 0.3.1 → 0.3.2
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/lib/active_job/cancel/queue_adapters/test_adapter/rails.rb +4 -2
- data/lib/active_job/cancel/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7d137650d5f9e3142121de7b9efbdf937eea716cdf6eda01054940e335c32573
|
|
4
|
+
data.tar.gz: 94e4e662426e767f06ca11c8fb66d22d1c0fef96547c6c374759c17f81bfb649
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '039780d23836f10354b116a560a25696e22fa5c287e62a0cec116b7d95253539f9f9c0a25ae8ac65034714b816a9acf644b6dd0e050c7a2e4b7e56e5c266ba28'
|
|
7
|
+
data.tar.gz: 119419d1a4f806f798d671e4b384eb97730c6165bbb474c3ed5fc644c487f1f9c46aa90c4e3110c2d36c7e1fffba6a4d7307d0a40535f9b7259cec5b32e61e75
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
`activejob-cancel` provides cancel method to Active Job. Currently it supports only `Sidekiq`, `Delayed Job`, `resque` and the Active Job `TestAdapter`.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+

|
|
6
6
|
[](http://badge.fury.io/rb/activejob-cancel)
|
|
7
7
|
[](https://codeclimate.com/github/y-yagi/activejob-cancel)
|
|
8
8
|
[](https://coveralls.io/github/y-yagi/activejob-cancel?branch=master)
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
module ActiveJob
|
|
2
2
|
module QueueAdapters
|
|
3
3
|
class TestAdapter
|
|
4
|
+
alias original_job_to_hash job_to_hash
|
|
5
|
+
|
|
4
6
|
def job_to_hash(job, extras = {})
|
|
5
|
-
{
|
|
7
|
+
original_job_to_hash(job, extras).merge!({
|
|
6
8
|
id: job.job_id,
|
|
7
9
|
job: job.class,
|
|
8
10
|
args: job.serialize.fetch('arguments'),
|
|
9
11
|
queue: job.queue_name
|
|
10
|
-
}
|
|
12
|
+
})
|
|
11
13
|
end
|
|
12
14
|
end
|
|
13
15
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activejob-cancel
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yuji Yaginuma
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-07-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activejob
|
|
@@ -245,7 +245,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
245
245
|
- !ruby/object:Gem::Version
|
|
246
246
|
version: '0'
|
|
247
247
|
requirements: []
|
|
248
|
-
rubygems_version: 3.1.
|
|
248
|
+
rubygems_version: 3.1.4
|
|
249
249
|
signing_key:
|
|
250
250
|
specification_version: 4
|
|
251
251
|
summary: activejob-cancel provides cancel method to Active Job
|