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 +4 -4
- data/Gemfile.lock +1 -1
- data/config/supervisor.yaml +1 -1
- data/config/tlc.yaml +1 -1
- data/lib/rsmp/logger.rb +6 -4
- data/lib/rsmp/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a436495b7890003c9c745d9539326867be2604dc31308042d6f9fa982d8a1595
|
4
|
+
data.tar.gz: '083589d05fe1fcff4ffcdd79e92ae4c34b9d8383257005ef316fb265ab5a24af'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f443511ee9ea01faa4189f84182208362ad25f7a7d483198126b00b78de5454cd1a092ccd8348664553c31502497c4ec3f1df295d7daa7eaa53e22bd8298521b
|
7
|
+
data.tar.gz: 49436d1f1e79fec40b5a0a6f4482e4af29edac9b097380b0cf3359f1a35174a89234a3ea227a99767adb8931640383f5cca81e18105a9f00a44f7edaa11bc5c5
|
data/Gemfile.lock
CHANGED
data/config/supervisor.yaml
CHANGED
data/config/tlc.yaml
CHANGED
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 <<
|
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
|
-
|
176
|
-
|
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