hanami-events-cloud_pubsub 2.7.0 → 2.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/lib/hanami/events/adapter/cloud_pubsub.rb +2 -2
- data/lib/hanami/events/cloud_pubsub/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a3ea2081b048c0f982067adab81ac696590eb058e3e315f3d4821197c603ea2
|
4
|
+
data.tar.gz: 922b58010d619854190bcc4bc03e4b27faa74aeac6f26667b72df11e11c55da0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e3ed35de8c4a023db2542603ffeb64bb17c6ceb0bbe024a88baf35b183235673515c426ef7cbf6358f5337f892b77033d4a57818dd197458d41814fafa51398
|
7
|
+
data.tar.gz: '079ceb5a54129228eacb1c0a9b8331a34322806e00edefc625b9b557caab58f56c21bc7d6e511f7c2e4a1dc45337a8b298845f40b72aed4e72a8ec7cb50cfdfb'
|
data/Gemfile.lock
CHANGED
@@ -8,7 +8,7 @@ GIT
|
|
8
8
|
PATH
|
9
9
|
remote: .
|
10
10
|
specs:
|
11
|
-
hanami-events-cloud_pubsub (2.
|
11
|
+
hanami-events-cloud_pubsub (2.8.0)
|
12
12
|
dry-configurable (>= 0.8)
|
13
13
|
google-cloud-pubsub (>= 0.38.1, < 1.7)
|
14
14
|
hanami-cli (~> 0.2)
|
@@ -40,9 +40,9 @@ GEM
|
|
40
40
|
google-cloud-core (1.5.0)
|
41
41
|
google-cloud-env (~> 1.0)
|
42
42
|
google-cloud-errors (~> 1.0)
|
43
|
-
google-cloud-env (1.3.
|
43
|
+
google-cloud-env (1.3.2)
|
44
44
|
faraday (>= 0.17.3, < 2.0)
|
45
|
-
google-cloud-errors (1.0.
|
45
|
+
google-cloud-errors (1.0.1)
|
46
46
|
google-cloud-pubsub (1.6.1)
|
47
47
|
concurrent-ruby (~> 1.1)
|
48
48
|
google-cloud-core (~> 1.2)
|
@@ -56,7 +56,7 @@ GEM
|
|
56
56
|
googleauth (~> 0.9)
|
57
57
|
grpc (~> 1.24)
|
58
58
|
rly (~> 0.2.3)
|
59
|
-
google-protobuf (3.12.
|
59
|
+
google-protobuf (3.12.2)
|
60
60
|
googleapis-common-protos (1.3.10)
|
61
61
|
google-protobuf (~> 3.11)
|
62
62
|
googleapis-common-protos-types (>= 1.0.5, < 2.0)
|
@@ -28,13 +28,13 @@ module Hanami
|
|
28
28
|
#
|
29
29
|
# @param event [Symbol, String] the event name
|
30
30
|
# @param payload [Hash] the event data
|
31
|
-
def broadcast(name, payload)
|
31
|
+
def broadcast(name, payload, **message_opts)
|
32
32
|
event_name = namespaced(name)
|
33
33
|
topic = topic_for event_name
|
34
34
|
payload = serializer.serialize(payload)
|
35
35
|
attributes = { id: SecureRandom.uuid, event_name: event_name }
|
36
36
|
|
37
|
-
topic.publish_async(payload, **attributes) do |result|
|
37
|
+
topic.publish_async(payload, **attributes, **message_opts) do |result|
|
38
38
|
logger.info "Published event #{result.inspect}"
|
39
39
|
end
|
40
40
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hanami-events-cloud_pubsub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ian Ker-Seymer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-configurable
|