bbk-utils 1.1.0.274232 → 1.1.1.275386

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: aa5bf79355f0502dac8a98c8787110d2b01005c65b75fa2324c2cd60e8acbebd
4
- data.tar.gz: ae180dd77410662e8e51844d3b66196b4a25447228b7c517b5f11895c029e796
3
+ metadata.gz: d5b57c20cde397113b0bd693a0d807f67a589d38950a70a2d19bd256ddf001cf
4
+ data.tar.gz: 6dc84e2187add6bf9ae4e1fd73fa1c972f37da608cfbb2fd552a75ecfcb67792
5
5
  SHA512:
6
- metadata.gz: b59a647ba32ba9cd150beeb1c5aa9dd3c387f4695162099fb30278bc6237d534ab086a7d6415fd0da62ec187804a4679704bcf00e4723fe0c1948213da42bb91
7
- data.tar.gz: 8b806d3b3871d8713a564a35b75ceadb72e8e7336c6fec1362772233b4b48cf86aa0f88d9183dc5803fc28253d222dae45200b7c685f0c8d089d604a2e94aa3a
6
+ metadata.gz: 04c35f3b0aa31095c6c5f01237892e004e09b6969ba39406ec5a5380b8e8cac3227d6ba75c02169db92eb5b7d42d4cbe4afcae343fcb8b79c662daa38c858ac5
7
+ data.tar.gz: 7bb51f432ca43270d98e32216aaaf6fad3089e10a4be21342495bd52bfe818664bbcf3b022385c5eb2407c5c891c1079f9b0538311d63e2da97d9e379aacd566
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bbk-utils (1.1.0.274232)
4
+ bbk-utils (1.1.1.275386)
5
5
  activesupport (>= 7.0)
6
6
  russian
7
7
 
@@ -62,7 +62,7 @@ GEM
62
62
  launchy (2.5.0)
63
63
  addressable (~> 2.7)
64
64
  logger (1.6.1)
65
- minitest (5.25.1)
65
+ minitest (5.25.2)
66
66
  mutex_m (0.3.0)
67
67
  parallel (1.21.0)
68
68
  parser (3.0.3.1)
@@ -5,7 +5,6 @@ require 'logger'
5
5
  module BBK
6
6
  module Utils
7
7
  class LogFormatter < ::Logger::Formatter
8
-
9
8
  FORMAT = "%5s [%sUTC #%d] (%s)[%s]: %s\n"
10
9
  def call(severity, time, progname, msg)
11
10
  line = msg2str(msg).gsub("\n", '\\n')
@@ -13,10 +12,15 @@ module BBK
13
12
  end
14
13
 
15
14
  def thread_id
16
- [Thread.current.object_id.to_s, Thread.current.name].compact.join('@')
15
+ [
16
+ Thread.current.object_id.to_s,
17
+ Thread.current.name || thread_name_from_main
18
+ ].compact.join('@')
17
19
  end
18
20
 
21
+ def thread_name_from_main
22
+ Thread.current[:bbk_thread_id] ||= "#{Thread.main.name}-#{Thread.current.object_id}" if Thread.main.name
23
+ end
19
24
  end
20
25
  end
21
26
  end
22
-
@@ -3,7 +3,7 @@
3
3
  module BBK
4
4
  module Utils
5
5
 
6
- VERSION = '1.1.0'.freeze
6
+ VERSION = '1.1.1'.freeze
7
7
 
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bbk-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0.274232
4
+ version: 1.1.1.275386
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samoilenko Yuri
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-20 00:00:00.000000000 Z
11
+ date: 2024-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport