hanami-events-cloud_pubsub 2.7.0 → 2.8.0

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: b9cc629e01c1d1d3df3c94517d37724393dd2c2fc17ec27f76e6479b9daff65f
4
- data.tar.gz: d07879c721735a977b860dab2f45a750cd82b6c74f27a1b82c599a135123dd69
3
+ metadata.gz: 2a3ea2081b048c0f982067adab81ac696590eb058e3e315f3d4821197c603ea2
4
+ data.tar.gz: 922b58010d619854190bcc4bc03e4b27faa74aeac6f26667b72df11e11c55da0
5
5
  SHA512:
6
- metadata.gz: 4c64ac6770fb1d53f43684a66b82da4918c42c8ef49b87bdecfe36a665d962a6b89a45e372933357b7dcf367438da87ccd0a424009e5c5724dc7afdca661a74a
7
- data.tar.gz: f00bb11867b80bd55d41391b5aee0357367e354621696e8bcbdf6efc4749b57070ab48b5b20c07cd3082dccf58e07093e29e241490d010e3a73eaf78093f1178
6
+ metadata.gz: 6e3ed35de8c4a023db2542603ffeb64bb17c6ceb0bbe024a88baf35b183235673515c426ef7cbf6358f5337f892b77033d4a57818dd197458d41814fafa51398
7
+ data.tar.gz: '079ceb5a54129228eacb1c0a9b8331a34322806e00edefc625b9b557caab58f56c21bc7d6e511f7c2e4a1dc45337a8b298845f40b72aed4e72a8ec7cb50cfdfb'
@@ -8,7 +8,7 @@ GIT
8
8
  PATH
9
9
  remote: .
10
10
  specs:
11
- hanami-events-cloud_pubsub (2.7.0)
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.1)
43
+ google-cloud-env (1.3.2)
44
44
  faraday (>= 0.17.3, < 2.0)
45
- google-cloud-errors (1.0.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.0)
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
@@ -3,7 +3,7 @@
3
3
  module Hanami
4
4
  module Events
5
5
  module CloudPubsub
6
- VERSION = '2.7.0'
6
+ VERSION = '2.8.0'
7
7
  end
8
8
  end
9
9
  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.7.0
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-05-18 00:00:00.000000000 Z
11
+ date: 2020-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-configurable