stenotype 0.1.8 → 0.1.9
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/stenotype/adapters/google_cloud.rb +1 -1
- data/lib/stenotype/adapters/stdout_adapter.rb +2 -5
- data/lib/stenotype/dispatcher.rb +1 -1
- data/lib/stenotype/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: 8b9a863cd51cf75e8d472879bc6a7053f734c2b9081912c332d78de384291c02
|
|
4
|
+
data.tar.gz: 10c8fca08c07945f3df22cc9a3087c01aa0d65f8e8e3f171b9af678033c7ccb4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 66a572106095607f8ca784ec38d32d00d13e5930fad9cc27177dff13ef8c3f5489d77e6feea2ac10e8bb1f745a5f23e300d9e597454e87325c0fea7695144ea3
|
|
7
|
+
data.tar.gz: 743b0866dca96eea731df808875bdae9a601255bb146a7d9446b8740e902a3d0fa1065e3a08290dba34c38e95203960f09bad517fdbeaa903e1d7ef76b681244
|
data/Gemfile.lock
CHANGED
|
@@ -35,7 +35,7 @@ module Stenotype
|
|
|
35
35
|
#
|
|
36
36
|
class GoogleCloud < Base
|
|
37
37
|
#
|
|
38
|
-
# @param event_data {
|
|
38
|
+
# @param event_data {String} The data to be published to Google Cloud
|
|
39
39
|
# @raise {Stenotype::MessageNotPublishedError} unless message is published
|
|
40
40
|
#
|
|
41
41
|
# @example With default client
|
|
@@ -21,7 +21,7 @@ module Stenotype
|
|
|
21
21
|
#
|
|
22
22
|
class StdoutAdapter < Base
|
|
23
23
|
#
|
|
24
|
-
# @param event_data {
|
|
24
|
+
# @param event_data {Sting} The data to be published to STDOUT
|
|
25
25
|
#
|
|
26
26
|
# @example Publishing to default client (STDOUT)
|
|
27
27
|
# adapter = Stenotype::Adapters::StdoutAdapter.new
|
|
@@ -33,10 +33,7 @@ module Stenotype
|
|
|
33
33
|
#
|
|
34
34
|
def publish(event_data, **additional_attrs)
|
|
35
35
|
client.info("[Stenotype::Event] emitted with the following attributes") do
|
|
36
|
-
{
|
|
37
|
-
**event_data,
|
|
38
|
-
**additional_attrs,
|
|
39
|
-
}
|
|
36
|
+
"MESSAGE BODY: #{event_data}, MESSAGE ATTRIBUTES #{additional_attrs.to_json}"
|
|
40
37
|
end
|
|
41
38
|
end
|
|
42
39
|
|
data/lib/stenotype/dispatcher.rb
CHANGED
data/lib/stenotype/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: stenotype
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Roman Kapitonov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-01-
|
|
11
|
+
date: 2020-01-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|