stenotype 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fe2154ff56ce545931546a0f3fd9abb43b5515ff76eaee7c525af6066caff76e
4
- data.tar.gz: 3abc9503558892fc6a00c23207f3e520ff5b6cf711ac5bc355d36a010f89acb5
3
+ metadata.gz: 8b9a863cd51cf75e8d472879bc6a7053f734c2b9081912c332d78de384291c02
4
+ data.tar.gz: 10c8fca08c07945f3df22cc9a3087c01aa0d65f8e8e3f171b9af678033c7ccb4
5
5
  SHA512:
6
- metadata.gz: e9a152c55f8e5e7db574bf2b66adb0f3cb046a4d1549f1c370bc02235f184663a0d2c691378a7ce818da0e20382b22694834b12d8fdab1e39d3126e7e2965f53
7
- data.tar.gz: 9ffbd36708152e9006d335e6f76ed46db162dbcba8a8c23ab388f84fce2ed47507b8c39c0966ab5558955bb47490c90f988cf2f1fd7b346dc0bf17ddd6ffb4de
6
+ metadata.gz: 66a572106095607f8ca784ec38d32d00d13e5930fad9cc27177dff13ef8c3f5489d77e6feea2ac10e8bb1f745a5f23e300d9e597454e87325c0fea7695144ea3
7
+ data.tar.gz: 743b0866dca96eea731df808875bdae9a601255bb146a7d9446b8740e902a3d0fa1065e3a08290dba34c38e95203960f09bad517fdbeaa903e1d7ef76b681244
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stenotype (0.1.7)
4
+ stenotype (0.1.9)
5
5
  activesupport (>= 5.0.0)
6
6
  google-cloud-pubsub (~> 1.0.0)
7
7
  spicery (>= 0.19.0, < 1.0)
@@ -35,7 +35,7 @@ module Stenotype
35
35
  #
36
36
  class GoogleCloud < Base
37
37
  #
38
- # @param event_data {Hash} The data to be published to Google Cloud
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 {Hash} The data to be published to STDOUT
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
 
@@ -21,7 +21,7 @@ module Stenotype
21
21
  event_data = serializer.new(event).serialize
22
22
 
23
23
  targets.each do |t|
24
- t.publish(event_data)
24
+ t.publish(event_data.to_json)
25
25
  end
26
26
 
27
27
  self
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Stenotype
4
4
  # :nodoc:
5
- VERSION = "0.1.8"
5
+ VERSION = "0.1.9"
6
6
  # :nodoc:
7
7
  end
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.8
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-21 00:00:00.000000000 Z
11
+ date: 2020-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport