rumbrl 0.5.0 → 0.5.1
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/lib/rumbrl/formatter.rb +1 -1
- data/lib/rumbrl/version.rb +1 -1
- data/spec/rumbrl/formatter_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2631d704e0e398c4c16f607f4a57301bac65aba7
|
4
|
+
data.tar.gz: fea322ed8b32b8273a958a4c14db0eae74ed4125
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 09eb688930ff8d487b0ea91f216e977bb46b84a0658d3383b17613fe5e3f0bc356e5c29edbdc8a10749fa7cacbea162011c965dcc4eaebc15709b94f00149ee0
|
7
|
+
data.tar.gz: 72c7635b743c847a58ef7770870251f438406a925edd4aeb2b7aa0a08e70b3ce04ffe968a53c5db8b103fec4146a941ff75b6f97d76af52b725b16a8137ab2b0
|
data/Gemfile.lock
CHANGED
data/lib/rumbrl/formatter.rb
CHANGED
@@ -7,7 +7,7 @@ module Rumbrl
|
|
7
7
|
def call(severity, _timestamp, prog, msg)
|
8
8
|
return '' if omit_empty? && empty?(msg)
|
9
9
|
|
10
|
-
"
|
10
|
+
"APP_NAME=#{appname(prog)} SEVERITY=#{severity} #{format_msg(msg)}\n"
|
11
11
|
end
|
12
12
|
|
13
13
|
def omit_empty(switch)
|
data/lib/rumbrl/version.rb
CHANGED
@@ -47,7 +47,7 @@ describe Rumbrl::Formatter do
|
|
47
47
|
|
48
48
|
context 'and msg is a string' do
|
49
49
|
it 'it returns a formatted string' do
|
50
|
-
expected = "
|
50
|
+
expected = "APP_NAME=SPECDEFAULT::SPECS SEVERITY=INFO stuff\n"
|
51
51
|
res = formatter.call('INFO', nil, 'SPECS', 'stuff')
|
52
52
|
|
53
53
|
expect(res).to eq expected
|