loog 0.5.3 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/loog.rb +5 -2
- data/loog.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9a2f247a4b679ce501ac06be9ddc71e1160cffc5543c473790a76595d43fb1b
|
4
|
+
data.tar.gz: 0636e22a352a85d4cbdb9a5fd56078f11e069f40655daf179b48360c609bbf12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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:
|
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.
|
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.
|
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-
|
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
|