bbk-utils 1.0.1.133029 → 1.0.1.147183

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: 5d5afb2a6f8402436876effbe0ba0027186bccc535ef90fbba0bcfbda40f8270
4
- data.tar.gz: c126feabaf16118a8f72bbb3d28b67b938dbf70481385024680e23780d747666
3
+ metadata.gz: e9e803d8681188bee3d02f0136ca8e23e879895bde7d7f36f954430c17ae375f
4
+ data.tar.gz: 917d6a58f8b48a3162c46504c9ea5a499b9c4444d8ed3e016e107f7d9e1a73a6
5
5
  SHA512:
6
- metadata.gz: 05d3b641047b682d3c2bdbab54d81bc6decd69ffd52c42fba01d3fee5a7bac9bc95b3e14b740d6136a522512026515215faeee89e4e7db256138261a9a785958
7
- data.tar.gz: 1fa5adf7973436838fda005526f6af9ca494de5364a05f6bbc05c67023ea373f546e421c9de2b27ee74e53083e24e681f36172b25d2c594e21a775ab27b8ac46
6
+ metadata.gz: 6ab6b068166a4bd68677644cac4f00a810f54e921353bdad6e7772aac947d55c9618c447c6277ff899b249122fb1de98bd2153147ada6a8ed3318e774cf33e8c
7
+ data.tar.gz: 12b7f0f487d56d9edd31183f7d428ed9a7bf5639c5e6496cabccb306e8d3cc764eca18c373513b4982323b2f9bf2ee0b51d379afc7b661cd16ab411a4ff53874
data/Gemfile.lock CHANGED
@@ -1,14 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bbk-utils (1.0.1.133029)
4
+ bbk-utils (1.0.1.147183)
5
5
  activesupport (>= 6.0)
6
6
  russian
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activesupport (7.0.4.3)
11
+ activesupport (7.0.5)
12
12
  concurrent-ruby (~> 1.0, >= 1.0.2)
13
13
  i18n (>= 1.6, < 2)
14
14
  minitest (>= 5.1)
@@ -229,7 +229,7 @@ module BBK
229
229
 
230
230
  def normalize_key(key)
231
231
  return nil if key.nil?
232
- key.to_s.upcase
232
+ key.to_s.upcase.gsub('-', '_')
233
233
  end
234
234
 
235
235
  def full_prefixed_key(key)
@@ -39,8 +39,9 @@ module BBK
39
39
 
40
40
  def self.default
41
41
  unless @default
42
- @default = new(DEFAULT_NAME, DEFAULT_LEVEL)
43
- @default.level = DEFAULT_LEVEL
42
+ level = ENV.fetch('LOG_LEVEL', DEFAULT_LEVEL)
43
+ @default = new(DEFAULT_NAME, level)
44
+ @default.level = level
44
45
  end
45
46
  @default
46
47
  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.0.1.133029
4
+ version: 1.0.1.147183
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samoilenko Yuri
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-23 00:00:00.000000000 Z
11
+ date: 2023-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport