rsmp 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rsmp/logger.rb +7 -5
- data/lib/rsmp/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b02662d725fdbbddfa1da1a958136e62bba3212ebf8cef48f1f2dff57e9d90f
|
4
|
+
data.tar.gz: 8b09971e4ebc897f9df25ef1e32f2d1ff9fb2b3b1ae797b0725ddc2f38d67947
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80779b821deeecdc6bc2fcdcb336ba7c8c8ade016ed49b1b13657f1f5fb609ff777c869cbd2019f0a5be2fd65a330255d7307c17a14f97bf28d7329340fa2c6c
|
7
|
+
data.tar.gz: bfd182628250547ebe8de45473ceeacbc1656fc4ebceee09e54959659cc67cb0e9d970409916c153b5921febb63e3dc83c8f51dfad9aa2d31bf1ed0b9d0375f7
|
data/lib/rsmp/logger.rb
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
module RSMP
|
2
2
|
class Logger
|
3
3
|
|
4
|
+
attr_accessor :settings
|
5
|
+
|
4
6
|
def initialize settings
|
5
7
|
defaults = {
|
6
8
|
'active'=>false,
|
@@ -107,13 +109,13 @@ module RSMP
|
|
107
109
|
end
|
108
110
|
|
109
111
|
def dump archive, force:false
|
110
|
-
archive.items.
|
111
|
-
|
112
|
+
log = archive.items.map do |item|
|
113
|
+
str = build_output item
|
114
|
+
str = colorize item[:level], str
|
112
115
|
end
|
116
|
+
log.join("\n")
|
113
117
|
end
|
114
|
-
|
115
|
-
private
|
116
|
-
|
118
|
+
|
117
119
|
def build_output item
|
118
120
|
parts = []
|
119
121
|
parts << item[:index].to_s.ljust(7) if @settings["index"] == true
|
data/lib/rsmp/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rsmp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Emil Tin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-12-
|
11
|
+
date: 2019-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async
|
@@ -357,7 +357,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
357
357
|
- !ruby/object:Gem::Version
|
358
358
|
version: '0'
|
359
359
|
requirements: []
|
360
|
-
rubygems_version: 3.0.
|
360
|
+
rubygems_version: 3.0.3
|
361
361
|
signing_key:
|
362
362
|
specification_version: 4
|
363
363
|
summary: RoadSide Message Protocol (RSMP) library.
|