uffizzi_core 2.0.9 → 2.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/services/uffizzi_core/logs_service.rb +9 -1
- data/lib/uffizzi_core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5adcb84a6cf63bdf3be955bc45bfe6a48ec598fc3a85b7e41e077edc84e76714
|
4
|
+
data.tar.gz: a506f8f518dab7d0988c3ee60030122c6edd38f6967fbe35aeeadb8522c097d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a755bd0bf09c427bebcdf63ed0a3a07f11a679ddfa62f04fedb86c9513b5c4d0eef4ed6ded616c17c105d8047f21161d9bfe7237996a9c496e122fbb2b23988
|
7
|
+
data.tar.gz: d99c280ca1bd18b82ea7705716d528ce82e8529e27c60dee9ed8dfddc7b95a0482165b4bd479ca0194005275ff8c33f14a71fd6a435cad73d894caaa6bcb0878
|
@@ -10,7 +10,7 @@ class UffizziCore::LogsService
|
|
10
10
|
logs = response.logs || []
|
11
11
|
|
12
12
|
{
|
13
|
-
logs: logs,
|
13
|
+
logs: format_logs(logs),
|
14
14
|
}
|
15
15
|
end
|
16
16
|
|
@@ -27,6 +27,14 @@ class UffizziCore::LogsService
|
|
27
27
|
)
|
28
28
|
end
|
29
29
|
|
30
|
+
def format_logs(logs)
|
31
|
+
logs.map do |item|
|
32
|
+
timestamp, *payload = item.split
|
33
|
+
formatted_timestamp = timestamp.present? ? timestamp.to_time(:utc).strftime('%Y-%m-%d %H:%M:%S.%L %Z') : nil
|
34
|
+
{ timestamp: formatted_timestamp, payload: payload.join(' ') }
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
30
38
|
def controller_client
|
31
39
|
UffizziCore::ControllerClient.new
|
32
40
|
end
|
data/lib/uffizzi_core/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uffizzi_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Thurman
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-11-
|
12
|
+
date: 2022-11-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: aasm
|