rsmp 0.5.4 → 0.5.5

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: 7d5f4cf2cac16a579cca8eb8e81d84ff60cd94e294bba6caf3c3d450fc71e202
4
- data.tar.gz: c99aade3e55837ee0502e0b3b3e8120ad5f488fcc78b5cdc7d412534012fa72d
3
+ metadata.gz: a436495b7890003c9c745d9539326867be2604dc31308042d6f9fa982d8a1595
4
+ data.tar.gz: '083589d05fe1fcff4ffcdd79e92ae4c34b9d8383257005ef316fb265ab5a24af'
5
5
  SHA512:
6
- metadata.gz: 37ce6e272ccb1265865000d35fb5fb473f426c725786a89b8f7cf52871f40dc82a5f90fb860c7aa5a9662fc1c2554cef31a68e15583d949e19c6732ae4b47289
7
- data.tar.gz: 738d271c31fe5d968c9a24e983ce66758891b46cc3c83bcdce374c20603dd54b68ce47a0d0686b3967b4ffcc45c4830c14535464f8094cdab9d483687d3355c0
6
+ metadata.gz: f443511ee9ea01faa4189f84182208362ad25f7a7d483198126b00b78de5454cd1a092ccd8348664553c31502497c4ec3f1df295d7daa7eaa53e22bd8298521b
7
+ data.tar.gz: 49436d1f1e79fec40b5a0a6f4482e4af29edac9b097380b0cf3359f1a35174a89234a3ea227a99767adb8931640383f5cca81e18105a9f00a44f7edaa11bc5c5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rsmp (0.5.4)
4
+ rsmp (0.5.5)
5
5
  async (~> 1.29.1)
6
6
  async-io (~> 1.32.1)
7
7
  colorize (~> 0.8.1)
@@ -17,7 +17,7 @@ log:
17
17
  port: true
18
18
  site_id: true
19
19
  text: true
20
- direction: true
20
+ direction: false
21
21
  level: false
22
22
  debug: true
23
23
  json: true
data/config/tlc.yaml CHANGED
@@ -40,7 +40,7 @@ log:
40
40
  level: false
41
41
  debug: true
42
42
  text: true
43
- direction: true
43
+ direction: false
44
44
  json: true
45
45
  acknowledgements: false
46
46
  watchdogs: false
data/lib/rsmp/logger.rb CHANGED
@@ -159,9 +159,9 @@ module RSMP
159
159
  unless @settings["id"] == false
160
160
  length = 4
161
161
  if item[:message]
162
- parts << Logger.shorten_message_id(item[:message].m_id,length)+' '
162
+ parts << Logger.shorten_message_id(item[:message].m_id,length).ljust(length)
163
163
  else
164
- parts << " "*(length+1)
164
+ parts << ''.ljust(length)
165
165
  end
166
166
  end
167
167
  parts << item[:str].to_s.strip unless @settings["text"] == false
@@ -172,8 +172,10 @@ module RSMP
172
172
  parts << item[:exception].backtrace.join("\n")
173
173
  end
174
174
 
175
- out = parts.join(' ').chomp(' ')
176
- out
175
+ parts.map do |s|
176
+ next '-'.ljust(s.length) if s !~ /\S/ # replace the first char with a dash if string is all whitespace
177
+ s
178
+ end.join(' ').rstrip
177
179
  end
178
180
 
179
181
  end
data/lib/rsmp/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RSMP
2
- VERSION = "0.5.4"
2
+ VERSION = "0.5.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsmp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emil Tin