pubsub_client 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.txt +4 -0
- data/lib/pubsub_client.rb +2 -2
- data/lib/pubsub_client/version.rb +1 -1
- 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: 82ac8b7b0bd3910b7e69b2f63bb08bffae388afe1b02a39bd6e3e8b05e35d76b
|
4
|
+
data.tar.gz: 98a3e736fb8e58cb13e9daf6e0ffd15e2507bef1156fe5da90a61be0979a8314
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e22163305a0f11e5f80326964df992ccd8b56235a434dd0ed7fe20ac81340bcb69cad77cafa4782b35017fec54b6897112cfa0feade5a891fef0aad88496ccad
|
7
|
+
data.tar.gz: 8e6bbeadb5b6c604fd984990a317ec8faf630daa0b73605aeb4873686b461c6f2fefea5debddbf51ba42269bcf9e3b9e166e9535d214ea33c7248742034d38ac
|
data/CHANGELOG.txt
CHANGED
data/lib/pubsub_client.rb
CHANGED
@@ -20,11 +20,11 @@ module PubsubClient
|
|
20
20
|
|
21
21
|
# @param message [String] The message to publish.
|
22
22
|
# @param topic [String] The name of the topic to publish to.
|
23
|
-
def publish(message, topic, &block)
|
23
|
+
def publish(message, topic, attributes = {}, &block)
|
24
24
|
ensure_credentials!
|
25
25
|
|
26
26
|
@publisher_factory ||= PublisherFactory.new
|
27
|
-
@publisher_factory.build(topic).publish(message, &block)
|
27
|
+
@publisher_factory.build(topic).publish(message, attributes, &block)
|
28
28
|
end
|
29
29
|
|
30
30
|
# @param subscription [String] - The name of the topic to subscribe to.
|