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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f81d11a74b8a9d2f1bfda80748cab75db80f75b244c454a5223581d875fadb64
4
- data.tar.gz: a0850dcd4a2222471e5d2ec302bb9300612d8acde7ec925d62e9740d397e7d98
3
+ metadata.gz: 7d137650d5f9e3142121de7b9efbdf937eea716cdf6eda01054940e335c32573
4
+ data.tar.gz: 94e4e662426e767f06ca11c8fb66d22d1c0fef96547c6c374759c17f81bfb649
5
5
  SHA512:
6
- metadata.gz: b24713bfee0841e68cb9e63a4c65c3b9a1e72962aed41eb2380ce7063d4d30a29873b8d3c8b12d3da0e2915850ae313fd7ec40164fab8d4a326a67f0baeef639
7
- data.tar.gz: b740c1f3e5862c6e4ee6a0fcf7a77f01c81c7f6af6ece88a4de1cb8b887a2c5add245cd9b52824e6497cccea9bba79d76c4d4816a5fba1a7521a55ea12e85dd4
6
+ metadata.gz: '039780d23836f10354b116a560a25696e22fa5c287e62a0cec116b7d95253539f9f9c0a25ae8ac65034714b816a9acf644b6dd0e050c7a2e4b7e56e5c266ba28'
7
+ data.tar.gz: 119419d1a4f806f798d671e4b384eb97730c6165bbb474c3ed5fc644c487f1f9c46aa90c4e3110c2d36c7e1fffba6a4d7307d0a40535f9b7259cec5b32e61e75
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  Nothing
4
4
 
5
+ ## 0.3.2
6
+
7
+ * Use same keys and key types as other QueueAdapters do, to not break ActiveJob test helpers #33 [Brian Moran]
8
+
5
9
  ## 0.3.1
6
10
 
7
11
  * Fix `NoMethodError` when using the cancel methods with the default queue name
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
- [![Build Status](https://travis-ci.org/y-yagi/activejob-cancel.svg?branch=master)](https://travis-ci.org/y-yagi/activejob-cancel)
5
+ ![Build Status](https://github.com/y-yagi/activejob-cancel/workflows/CI/badge.svg)
6
6
  [![Gem Version](https://badge.fury.io/rb/activejob-cancel.svg)](http://badge.fury.io/rb/activejob-cancel)
7
7
  [![Code Climate](https://codeclimate.com/github/y-yagi/activejob-cancel/badges/gpa.svg)](https://codeclimate.com/github/y-yagi/activejob-cancel)
8
8
  [![Coverage Status](https://coveralls.io/repos/github/y-yagi/activejob-cancel/badge.svg?branch=master)](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
- }.merge!(extras)
12
+ })
11
13
  end
12
14
  end
13
15
  end
@@ -1,5 +1,5 @@
1
1
  module ActiveJob
2
2
  module Cancel
3
- VERSION = "0.3.1"
3
+ VERSION = "0.3.2"
4
4
  end
5
5
  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.1
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: 2020-12-06 00:00:00.000000000 Z
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.2
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