bbk-utils 1.1.1.294504 → 1.1.2.294516

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4f4b16e79a89bb19fa30029443b561bb71f8570027c52fbd918bc4e928b63cb3
4
- data.tar.gz: 70aeccb2397223deefe1d898a68eec0660dc378dadd70b43eadf01e46739fb35
3
+ metadata.gz: cef501063406f6f2568cb6c453ba458fb4d7377b4b1c36bdab9299538364ed19
4
+ data.tar.gz: 9571183d1a8379812cb9bf8dd3f50ab5e174bb4c25bf02e8f88295f50a4d754f
5
5
  SHA512:
6
- metadata.gz: 0de5b94080cb02e2c7c0823e49f07caa399906ab9d92ced3157b5bc391d281b041bb85d2353357ab4a257bbcebf593ce44d5f63c71a82f20f5e32fcc5c72ac81
7
- data.tar.gz: 5f120a9e9748c7ad56973948bd6ea7c72fc6c7aa08af56ea9ef1554674f95a41db676c82cca11e9b8fca37a091031542ac9aaf0691b9737b4bf20848d0068bdb
6
+ metadata.gz: 2f9b50ef1b3e65f94f808a8f43725300b6cf17910c5ab83c17c06b34f01b2301452d1cdd32b9c71af71aa7004e75fa1ea511a99692f9092d56ec62e658110aa3
7
+ data.tar.gz: caec927fa796dec0d9bd9ee6011c156741a1b56242110b59a565aa8eae9a82677b1f364a3c49cc53c96798334b968c7e14c724d09dce56398a0741e0f6e2ba4b
data/Gemfile.lock CHANGED
@@ -1,9 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bbk-utils (1.1.1.294504)
4
+ bbk-utils (1.1.2.294516)
5
5
  activesupport (>= 7.0)
6
6
  russian
7
+ securerandom (~> 0.3.2)
7
8
 
8
9
  GEM
9
10
  remote: https://rubygems.org/
@@ -39,7 +40,7 @@ GEM
39
40
  connection_pool (2.5.0)
40
41
  descendants_tracker (0.0.4)
41
42
  thread_safe (~> 0.3, >= 0.3.1)
42
- diff-lcs (1.4.4)
43
+ diff-lcs (1.6.0)
43
44
  docile (1.4.0)
44
45
  drb (2.2.1)
45
46
  equalizer (0.0.11)
@@ -77,19 +78,19 @@ GEM
77
78
  rainbow (>= 2.0, < 4.0)
78
79
  regexp_parser (2.2.0)
79
80
  rexml (3.2.5)
80
- rspec (3.10.0)
81
- rspec-core (~> 3.10.0)
82
- rspec-expectations (~> 3.10.0)
83
- rspec-mocks (~> 3.10.0)
84
- rspec-core (3.10.1)
85
- rspec-support (~> 3.10.0)
86
- rspec-expectations (3.10.1)
81
+ rspec (3.13.0)
82
+ rspec-core (~> 3.13.0)
83
+ rspec-expectations (~> 3.13.0)
84
+ rspec-mocks (~> 3.13.0)
85
+ rspec-core (3.13.3)
86
+ rspec-support (~> 3.13.0)
87
+ rspec-expectations (3.13.3)
87
88
  diff-lcs (>= 1.2.0, < 2.0)
88
- rspec-support (~> 3.10.0)
89
- rspec-mocks (3.10.2)
89
+ rspec-support (~> 3.13.0)
90
+ rspec-mocks (3.13.2)
90
91
  diff-lcs (>= 1.2.0, < 2.0)
91
- rspec-support (~> 3.10.0)
92
- rspec-support (3.10.3)
92
+ rspec-support (~> 3.13.0)
93
+ rspec-support (3.13.2)
93
94
  rspec_junit_formatter (0.4.1)
94
95
  rspec-core (>= 2, < 4, != 2.12.0)
95
96
  rubocop (1.22.3)
@@ -13,12 +13,13 @@ module BBK
13
13
 
14
14
  def self.new(*args, **kwargs)
15
15
  instance = super
16
- ActiveSupport::TaggedLogging.new(instance).tagged
16
+ yield(instance) if block_given?
17
+ ActiveSupport::TaggedLogging.new(instance)
17
18
  end
18
19
 
19
- def initialize(progname, level, io: STDOUT, tags: [])
20
+ def initialize(progname, level, io: STDOUT, tags: [], **kwargs)
20
21
  io.sync = true
21
- super(io)
22
+ super(io, **kwargs)
22
23
  self.progname = progname
23
24
 
24
25
  if level.is_a?(Integer)
@@ -29,7 +30,7 @@ module BBK
29
30
  self.level = Logger.const_get(level)
30
31
  end
31
32
 
32
- self.formatter = LogFormatter.new tags: tags
33
+ self.formatter ||= LogFormatter.new tags: tags
33
34
  info "Using LOG_LEVEL=#{level}"
34
35
  end
35
36
 
@@ -3,7 +3,7 @@
3
3
  module BBK
4
4
  module Utils
5
5
 
6
- VERSION = '1.1.1'.freeze
6
+ VERSION = '1.1.2'.freeze
7
7
 
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bbk-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1.294504
4
+ version: 1.1.2.294516
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samoilenko Yuri
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '7.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: securerandom
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.3.2
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.3.2
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: russian
29
43
  requirement: !ruby/object:Gem::Requirement