queue-bus 0.13.1 → 0.13.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/queue_bus/dispatch.rb +1 -1
- data/lib/queue_bus/version.rb +1 -1
- data/spec/dispatch_spec.rb +8 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48a236d7a44dafb099dc3d36e5f34e4a1f065d47fa76b3be1a7465ae8533773b
|
4
|
+
data.tar.gz: c2e6cffeba50ae36e13c8c417f43c7b9f18ff09772c4fd3ffd48e2784a80d5d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c3ba54737925161ec4c658864a7badd08f58400e246f31ee31a2aef7a6347005f073f62c2a3874aaf4e64f11a3da7f0a2fff322997e0a99da9b7901079e320a
|
7
|
+
data.tar.gz: 26b7011be9db57d5f2c93f397fda77374f8aa34fa097efc93d3831ce1832a3c1e12913433e507cf2c8e5c1057178e71b08a3fdbcee68fe382597b8bd3828f603
|
data/CHANGELOG.md
CHANGED
data/lib/queue_bus/dispatch.rb
CHANGED
data/lib/queue_bus/version.rb
CHANGED
data/spec/dispatch_spec.rb
CHANGED
@@ -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|
|