twiglet 3.11.0 → 3.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/twiglet/logger.rb +1 -1
- data/lib/twiglet/version.rb +1 -1
- data/test/logger_test.rb +4 -2
- 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: 7f7f408c7f0546be8ef926a307e70a58af7a7ff3427b1744bdbb4cfbc4653189
|
4
|
+
data.tar.gz: aaf5bce57110c3accb2353250c528a525b0948fbfda377f3b6fc6308e50030ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 830da1bdf6311f12b6a92cab29c8e25453d8ee0bd0007d3b41e211a628983ea20c3956dc6cab9b6d991901ebb7cfb718f0296b11b82e89c20deee187a4f6ae87
|
7
|
+
data.tar.gz: 140e91a61d0883769aea1e0828022ae0662750a571fc35531f3604d1708a24efbfc2b229624faef3855234d59048134c8f29700505d8ca674f7a9a830e5d1465
|
data/lib/twiglet/logger.rb
CHANGED
@@ -22,7 +22,7 @@ module Twiglet
|
|
22
22
|
|
23
23
|
now = args.fetch(:now, -> { Time.now.utc })
|
24
24
|
output = args.fetch(:output, $stdout)
|
25
|
-
level = args.fetch(:level,
|
25
|
+
level = args.fetch(:level, INFO)
|
26
26
|
validation_schema = args.fetch(:validation_schema, DEFAULT_VALIDATION_SCHEMA)
|
27
27
|
|
28
28
|
raise 'Service name is mandatory' \
|
data/lib/twiglet/version.rb
CHANGED
data/test/logger_test.rb
CHANGED
@@ -23,7 +23,8 @@ describe Twiglet::Logger do
|
|
23
23
|
@logger = Twiglet::Logger.new(
|
24
24
|
'petshop',
|
25
25
|
now: @now,
|
26
|
-
output: @buffer
|
26
|
+
output: @buffer,
|
27
|
+
level: Logger::DEBUG
|
27
28
|
)
|
28
29
|
end
|
29
30
|
|
@@ -652,7 +653,8 @@ describe Twiglet::Logger do
|
|
652
653
|
'petshop',
|
653
654
|
now: @now,
|
654
655
|
output: @buffer,
|
655
|
-
validation_schema: validation_schema
|
656
|
+
validation_schema: validation_schema,
|
657
|
+
level: Logger::DEBUG
|
656
658
|
)
|
657
659
|
end
|
658
660
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twiglet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simply Business
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-08-
|
11
|
+
date: 2024-08-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json-schema
|