loog 0.5.3 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/loog.rb +5 -2
  3. data/loog.gemspec +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c5b47cdc5645f17254a2e7aaae37b614bfb72d4da2214956727223dae990a25
4
- data.tar.gz: 0f0d4140f159bc4b319221dd91ab842769890166d52e2c4485c7c6179f343bea
3
+ metadata.gz: a9a2f247a4b679ce501ac06be9ddc71e1160cffc5543c473790a76595d43fb1b
4
+ data.tar.gz: 0636e22a352a85d4cbdb9a5fd56078f11e069f40655daf179b48360c609bbf12
5
5
  SHA512:
6
- metadata.gz: 581adf7dae6b421179d02146ab5b4b966689d306c5a35ea31811e3e4feb912bb138e8c1e6424474ad081d308bd08acb443b064e8f0e940d8a1ecac8c82d85c62
7
- data.tar.gz: 9646ce3a439a25f9fe83fd0ac0e3825806643c16f918927eef4b100a67e0d9a7257b4609d50261c3ca90fb8e943ca7ac9d428a4038c04aa2832faf972dd69602
6
+ metadata.gz: 70d45cf5bad47a905c1ed9de0b7568b0058a53fad61e838d6da32c7c8f81da5ef5589cfc31fb991467ea5ff8b468738b367f9ee68971166a1971f48abcae88a5
7
+ data.tar.gz: 864737a3e8ec72571a814af4dc964d7af165e80aa3cb44aae152e9f939774d7ab005cedf9e9f5cd90a8ee9954ebc216da86e89025e6a2f5cb43f92187384ed2f
data/lib/loog.rb CHANGED
@@ -93,10 +93,13 @@ module Loog
93
93
  # messages in one place and then "assert" the presence
94
94
  # of certain strings inside them.
95
95
  class Buffer < Logger
96
- def initialize(formatter: Loog::SHORT)
96
+ # Ctor
97
+ # @param [String] level The level of logging
98
+ # @param [String] formatter The formatter
99
+ def initialize(level: Logger::DEBUG, formatter: Loog::SHORT)
97
100
  super(
98
101
  $stdout,
99
- level: Logger::DEBUG,
102
+ level: level,
100
103
  formatter: proc do |severity, time, target, msg|
101
104
  @lines.push(formatter.call(severity, time, target, msg))
102
105
  ''
data/loog.gemspec CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
27
27
  s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to? :required_rubygems_version=
28
28
  s.required_ruby_version = '>=2.3'
29
29
  s.name = 'loog'
30
- s.version = '0.5.3'
30
+ s.version = '0.6.0'
31
31
  s.license = 'MIT'
32
32
  s.summary = 'Object-oriented logging wrapper'
33
33
  s.description = 'Object-oriented wrapper for Ruby default logging facility'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: loog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-01 00:00:00.000000000 Z
11
+ date: 2024-08-03 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Object-oriented wrapper for Ruby default logging facility
14
14
  email: yegor256@gmail.com