queue-bus 0.13.1 → 0.13.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: 5383fd5290386ad57b383532a59406032e960ee344dc218db4c6c2e83a8fc8df
4
- data.tar.gz: 6e695fc97a76265c6fa98984278e517b5e21dc7142c7d7b9ff646e02e52af5ef
3
+ metadata.gz: 48a236d7a44dafb099dc3d36e5f34e4a1f065d47fa76b3be1a7465ae8533773b
4
+ data.tar.gz: c2e6cffeba50ae36e13c8c417f43c7b9f18ff09772c4fd3ffd48e2784a80d5d9
5
5
  SHA512:
6
- metadata.gz: 7a238383614d2505facac1c2003d8b55cff3d3c68c1bd0a136ce5444cbae92377df9fd9316feb912180bc2a9272f30257dcc028c345178cc56c18f6c9fee8aa5
7
- data.tar.gz: 507b3514db5c2290e4c2cedf60d77cfed61f8fc9b4b0ae1c647de40350fdd52342144b4bdba32ad94fc5f734fd4413d80f7517ff083ebda0d8f1b28984c28421
6
+ metadata.gz: 7c3ba54737925161ec4c658864a7badd08f58400e246f31ee31a2aef7a6347005f073f62c2a3874aaf4e64f11a3da7f0a2fff322997e0a99da9b7901079e320a
7
+ data.tar.gz: 26b7011be9db57d5f2c93f397fda77374f8aa34fa097efc93d3831ce1832a3c1e12913433e507cf2c8e5c1057178e71b08a3fdbcee68fe382597b8bd3828f603
data/CHANGELOG.md CHANGED
@@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.13.2]
10
+
11
+ ### Fixes
12
+
13
+ - Properly passes the attributes down to the subscription when using `on_heartbeat`
14
+
9
15
  ## [0.13.1]
10
16
 
11
17
  ### Fixes
@@ -50,7 +50,7 @@ module QueueBus
50
50
  (hour_interval.nil? || (event['hour'] % hour_interval).zero?)
51
51
 
52
52
  # Yield the block passed in.
53
- block.call
53
+ block.call(event)
54
54
  end
55
55
  end
56
56
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module QueueBus
4
- VERSION = '0.13.1'
4
+ VERSION = '0.13.2'
5
5
  end
@@ -33,6 +33,14 @@ module QueueBus
33
33
  let(:event) { { bus_event_type: :heartbeat_minutes } }
34
34
  let(:event_name) { 'my-event' }
35
35
 
36
+ it 'passes on the event' do
37
+ dispatch.on_heartbeat event_name do |event|
38
+ expect(event).to match hash_including('hour' => 1, 'minute' => 0)
39
+ end
40
+
41
+ dispatch.execute(event_name, 'hour' => 1, 'minute' => 0)
42
+ end
43
+
36
44
  context 'when not declaring anything' do
37
45
  before do
38
46
  dispatch.on_heartbeat event_name do |_event|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: queue-bus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.1
4
+ version: 0.13.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Leonard