tiny_bus 3.7.1 → 3.7.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: 69976083efa62900031ef18daf5d222157fa8c2e1250a4fac06c8068a98631db
4
- data.tar.gz: 3f428977292bfdbe108d859406b3f2359646a1e28e716779ce5b6c828a2a5e6a
3
+ metadata.gz: 803568daf9dd822ea55895b457386681ca10188a55fc23e906837b3fbce106fa
4
+ data.tar.gz: 9377bf6ace10208f47140c30df9ac826d9fa268e668da1bc589d143cb2571366
5
5
  SHA512:
6
- metadata.gz: df717813c4b3b516c6a2f16fdf539e2a8636a67a89a5c9b273640b721feaa37c16c69d9cd66198e8c36fbf322904384eac39987db3ae43d288e99da43c4b8b9b
7
- data.tar.gz: d95a5ad0da6d327bd4c4586e4ee7ec9a9859a1c540a34a5f87ba9a9301280ff58822a9f805c54f499eb7d4ea18a18e7e309f30c67acb5c9a6c614caf79555a68
6
+ metadata.gz: ec5d4689105f2b985f79906e7ed027dea7409b3d75077c9ce71b8e8ee7d48b30e8f5b10a81ff8f9335a7ce0996e5a0fd71dfaf3c5f8c140c36987e97ef61e692
7
+ data.tar.gz: 92cedd46357367de1ce95e830f835d483cec6c765576c34e93facf4f711ec353255205ce4ba2d51b545ca5b8f03f9563ac3ad6042e321d2162a0947355f58be7
data/lib/tiny_bus.rb CHANGED
@@ -118,8 +118,8 @@ class TinyBus
118
118
  subbers = @subs[topic]
119
119
 
120
120
  @stats[topic] ||= 0
121
- @stats[topic] += 1
122
121
  @stats[@total_key] += 1
122
+ @stats[topic] += 1
123
123
  if (subbers&.length || 0) > 0
124
124
  subbers.each{|s| s.msg(msg) }
125
125
  @log.send(lvl, "S #{msg}")
@@ -146,7 +146,7 @@ class TinyBus
146
146
  <<~DEBUG
147
147
  TinyBus stats: #{@stats.keys.length > 0 ? "\n " + @stats.keys.sort.map{|t| "#{t.rjust(12)}: #{@stats[t]}" }.join("\n ") : '<NONE>'}
148
148
  Topics & Subscribers:
149
- #{@subs.map{|topic, subbers| "#{topic}\n #{subbers.map(&:to_s).join("\n ")}" }.join("\n ") }
149
+ #{@subs.map{|topic, subbers| "#{topic}:\n #{subbers.map(&:to_s).join("\n ")}" }.join("\n ") }
150
150
  DEBUG
151
151
  end
152
152
  end
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.7.1
4
+ version: 3.7.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: 2023-07-05 00:00:00.000000000 Z
11
+ date: 2023-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tiny_log