cogger 0.26.0 → 0.28.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/cogger.gemspec +5 -5
- data/lib/cogger/formatters/sanitizers/format_time.rb +1 -1
- data/lib/cogger/hub.rb +6 -7
- data.tar.gz.sig +0 -0
- metadata +12 -9
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 885f1fdee41d1db42ec0ecd033ddcc9c410559ad3738a0582bd7f5d034848c5e
|
4
|
+
data.tar.gz: a18cd882a032f51a28915b9aa8abfdb6783232d2f166b08468f8fb0c0785c9b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fad996f5f79a366a0b9e6c06029368b5ed2abed0ea8a2498edd4275dbd50c50f6d50059a4da1a55c5c72d8a6e63e03073fa4e0f211f131fef535a61a37fb1e59
|
7
|
+
data.tar.gz: 705832e6859049dea07307642a5aa916b5c60bcd3abf2f98ca5a0efab2c2afc5ca1d9e98995c2cf53d63212a072be291bda5bce2779d1ce9f855368d7d68b755
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/cogger.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "cogger"
|
5
|
-
spec.version = "0.
|
5
|
+
spec.version = "0.28.0"
|
6
6
|
spec.authors = ["Brooke Kuhlmann"]
|
7
7
|
spec.email = ["brooke@alchemists.io"]
|
8
8
|
spec.homepage = "https://alchemists.io/projects/cogger"
|
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.metadata = {
|
13
13
|
"bug_tracker_uri" => "https://github.com/bkuhlmann/cogger/issues",
|
14
14
|
"changelog_uri" => "https://alchemists.io/projects/cogger/versions",
|
15
|
-
"
|
15
|
+
"homepage_uri" => "https://alchemists.io/projects/cogger",
|
16
16
|
"funding_uri" => "https://github.com/sponsors/bkuhlmann",
|
17
17
|
"label" => "Cogger",
|
18
18
|
"rubygems_mfa_required" => "true",
|
@@ -22,9 +22,9 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.signing_key = Gem.default_key_path
|
23
23
|
spec.cert_chain = [Gem.default_cert_path]
|
24
24
|
|
25
|
-
spec.required_ruby_version = "
|
26
|
-
spec.add_dependency "core", "~> 1.
|
27
|
-
spec.add_dependency "refinements", "~> 12.
|
25
|
+
spec.required_ruby_version = ">= 3.3", "<= 3.4"
|
26
|
+
spec.add_dependency "core", "~> 1.7"
|
27
|
+
spec.add_dependency "refinements", "~> 12.9"
|
28
28
|
spec.add_dependency "tone", "~> 1.0"
|
29
29
|
spec.add_dependency "zeitwerk", "~> 2.6"
|
30
30
|
|
@@ -7,7 +7,7 @@ module Cogger
|
|
7
7
|
module Sanitizers
|
8
8
|
# Sanitizes/formats date/time value.
|
9
9
|
FormatTime = lambda do |value, format: Cogger::DATETIME_FORMAT|
|
10
|
-
return value unless value.is_a?(::Time) || value.is_a?(Date) || value.is_a?(
|
10
|
+
return value unless value.is_a?(::Time) || value.is_a?(Date) || value.is_a?(DateTime)
|
11
11
|
|
12
12
|
value.strftime format
|
13
13
|
end
|
data/lib/cogger/hub.rb
CHANGED
@@ -83,15 +83,14 @@ module Cogger
|
|
83
83
|
|
84
84
|
attr_reader :registry, :configuration, :primary, :streams, :mutex
|
85
85
|
|
86
|
+
# :reek:FeatureEnvy
|
86
87
|
def find_formatter attributes
|
87
|
-
attributes.
|
88
|
-
|
89
|
-
return value unless value.is_a?(Symbol) || value.is_a?(String)
|
88
|
+
attributes.transform_value! :formatter do |value|
|
89
|
+
next value unless value.is_a?(Symbol) || value.is_a?(String)
|
90
90
|
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
)
|
91
|
+
formatter, template = registry.get_formatter value
|
92
|
+
template ? formatter.new(template) : formatter.new
|
93
|
+
end
|
95
94
|
end
|
96
95
|
|
97
96
|
def log(level, message = nil, **, &)
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cogger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.28.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
3n5C8/6Zh9DYTkpcwPSuIfAga6wf4nXc9m6JAw8AuMLaiWN/r/2s4zJsUHYERJEu
|
36
36
|
gZGm4JqtuSg8pYjPeIJxS960owq+SfuC+jxqmRA54BisFCv/0VOJi7tiJVY=
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2024-
|
38
|
+
date: 2024-10-04 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: core
|
@@ -43,28 +43,28 @@ dependencies:
|
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '1.
|
46
|
+
version: '1.7'
|
47
47
|
type: :runtime
|
48
48
|
prerelease: false
|
49
49
|
version_requirements: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '1.
|
53
|
+
version: '1.7'
|
54
54
|
- !ruby/object:Gem::Dependency
|
55
55
|
name: refinements
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '12.
|
60
|
+
version: '12.9'
|
61
61
|
type: :runtime
|
62
62
|
prerelease: false
|
63
63
|
version_requirements: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '12.
|
67
|
+
version: '12.9'
|
68
68
|
- !ruby/object:Gem::Dependency
|
69
69
|
name: tone
|
70
70
|
requirement: !ruby/object:Gem::Requirement
|
@@ -143,7 +143,7 @@ licenses:
|
|
143
143
|
metadata:
|
144
144
|
bug_tracker_uri: https://github.com/bkuhlmann/cogger/issues
|
145
145
|
changelog_uri: https://alchemists.io/projects/cogger/versions
|
146
|
-
|
146
|
+
homepage_uri: https://alchemists.io/projects/cogger
|
147
147
|
funding_uri: https://github.com/sponsors/bkuhlmann
|
148
148
|
label: Cogger
|
149
149
|
rubygems_mfa_required: 'true'
|
@@ -154,16 +154,19 @@ require_paths:
|
|
154
154
|
- lib
|
155
155
|
required_ruby_version: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- - "
|
157
|
+
- - ">="
|
158
158
|
- !ruby/object:Gem::Version
|
159
159
|
version: '3.3'
|
160
|
+
- - "<="
|
161
|
+
- !ruby/object:Gem::Version
|
162
|
+
version: '3.4'
|
160
163
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
161
164
|
requirements:
|
162
165
|
- - ">="
|
163
166
|
- !ruby/object:Gem::Version
|
164
167
|
version: '0'
|
165
168
|
requirements: []
|
166
|
-
rubygems_version: 3.5.
|
169
|
+
rubygems_version: 3.5.21
|
167
170
|
signing_key:
|
168
171
|
specification_version: 4
|
169
172
|
summary: A customizable and feature rich logger.
|
metadata.gz.sig
CHANGED
Binary file
|