tiny_bus 3.4.1 → 3.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tiny_bus.rb +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6d3c857478866a08cee5481b5e6673e1113e796975cb050587a6ae7231c0071f
4
- data.tar.gz: 62360c6eda4448a72b3465321742920b7438e274817266b43ff408c014b73771
3
+ metadata.gz: ed8817e45ae848d457fe774c07270b7cf3f4bd5a000224925c3083f21d3ff35f
4
+ data.tar.gz: 252785fea90871f09d2a875fecb06eb062d3993be7f08d5a4729f17af4ae19e2
5
5
  SHA512:
6
- metadata.gz: c48c7344e5506fb4ab40475167b2b6b2b6a6ab8a991222437e67f16bab9b5b3ad131256295552596679635b00a7b7278461c58dad5632f2b04fa696ff2d7f9b4
7
- data.tar.gz: dfe686720994f643787e7847a594296006643668696e54b4dfd8d9f372d6f2692839c7fa8a758eac7fefb282896cb3a6134628c8705ce8ded4e4ab033af32d7a
6
+ metadata.gz: fd9692802125bf10e345531ca7fa3ccff91eb2c9bfc21210db18d736f382247e9b4cfb0babbbf8c08514ec7df209aa8a3f83fe5466049fc6dac90abb65b82a35
7
+ data.tar.gz: 2b35f6675e5331a3812b676deac96a0be3a4d788824551b91e621f08499b1e28759d0747d53897d0dd56f04db9d76216c4bfb1882339c0bbd36a3fba1cad8127
data/lib/tiny_bus.rb CHANGED
@@ -95,7 +95,7 @@ class TinyBus
95
95
 
96
96
  # takes an incoming message and distributes it to subscribers
97
97
  #
98
- # msg: the incoming message to be distributed
98
+ # msg: the incoming message to be distributed, must be a Ruby Hash
99
99
  # lvl (optional): the logging level
100
100
  # default: 'info'
101
101
  #
@@ -105,7 +105,7 @@ class TinyBus
105
105
  # NOTE: keys that begin with dot (.), such as '.time' are reserved for
106
106
  # TinyBus and show not be altered by outside code, otherwise undefined
107
107
  # behavior may result.
108
- def msg(msg, lvl='info')
108
+ def msg(msg, lvl=:info)
109
109
  msg = @annotator.pipe(msg)
110
110
  msg = @translator&.pipe(msg) || msg
111
111
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tiny_bus
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.1
4
+ version: 3.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Lunt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-11 00:00:00.000000000 Z
11
+ date: 2022-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tiny_log