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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e4678fb73f3c46832c31d239796e6eb99bbe66b58aef0af348d470030139312
4
- data.tar.gz: d03ff11d2723b851f01fe597ba96b6e250f68ae2d190905aa70d269bd10f0ff3
3
+ metadata.gz: 5adcb84a6cf63bdf3be955bc45bfe6a48ec598fc3a85b7e41e077edc84e76714
4
+ data.tar.gz: a506f8f518dab7d0988c3ee60030122c6edd38f6967fbe35aeeadb8522c097d0
5
5
  SHA512:
6
- metadata.gz: fb063735799a3a24ddc60ee808d30e67bcb90831f3e0058ee93fa0d1cea575f8949b1bc91410d781f4e38baf9cb9b9ecfed387cfe5c58bdeaecaf916a07698cb
7
- data.tar.gz: 03311442753ac1af1439287b170280e4d689d827a8dbabbffbc910045131a7ca5d35dbf5ed3dd7945fb49fd0e0d5502d5eba41f2499232887e78e04f7671fc60
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UffizziCore
4
- VERSION = '2.0.9'
4
+ VERSION = '2.0.10'
5
5
  end
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.9
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-15 00:00:00.000000000 Z
12
+ date: 2022-11-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aasm