cogger 0.29.0 → 0.31.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 +4 -3
- data/lib/cogger/hub.rb +1 -2
- data/lib/cogger/refines/log_device.rb +23 -0
- data/lib/cogger/refines/logger.rb +16 -0
- data.tar.gz.sig +0 -0
- metadata +23 -7
- 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: 3d49bbd2fe09c1aaa359bfec64e3a6758bcb34f57db9a51d06967d4c59985cb7
|
4
|
+
data.tar.gz: 2f9545b9d2e155176a90ebba1584458b9031e7a8d16f7e714fa79148a9c39762
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 560205db2dd232bf972e5a589515ca5795991e7d0ed27d093061ea423c21321f2a59681adbb03c89205071744fc22dbf9acc341d4d6cc74ef0842df133033347
|
7
|
+
data.tar.gz: ce761734825b5c83b08bf656d5dd91005d9996a9f8f08fe4d7ccb8d6029aa518cf54415987cf518d8a1998dc97df85afbd5956d09a06bbb2be5c35dd31696476
|
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.31.0"
|
6
6
|
spec.authors = ["Brooke Kuhlmann"]
|
7
7
|
spec.email = ["brooke@alchemists.io"]
|
8
8
|
spec.homepage = "https://alchemists.io/projects/cogger"
|
@@ -23,9 +23,10 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.cert_chain = [Gem.default_cert_path]
|
24
24
|
|
25
25
|
spec.required_ruby_version = ">= 3.3", "<= 3.4"
|
26
|
-
spec.add_dependency "core", "~> 1.
|
26
|
+
spec.add_dependency "core", "~> 1.10"
|
27
|
+
spec.add_dependency "logger", "~> 1.6"
|
27
28
|
spec.add_dependency "refinements", "~> 12.10"
|
28
|
-
spec.add_dependency "tone", "~> 1.
|
29
|
+
spec.add_dependency "tone", "~> 1.10"
|
29
30
|
spec.add_dependency "zeitwerk", "~> 2.7"
|
30
31
|
|
31
32
|
spec.extra_rdoc_files = Dir["README*", "LICENSE*"]
|
data/lib/cogger/hub.rb
CHANGED
@@ -3,7 +3,6 @@
|
|
3
3
|
require "forwardable"
|
4
4
|
require "logger"
|
5
5
|
require "refinements/hash"
|
6
|
-
require "refinements/logger"
|
7
6
|
|
8
7
|
module Cogger
|
9
8
|
# Loads configuration and simultaneously sends messages to multiple streams.
|
@@ -13,7 +12,7 @@ module Cogger
|
|
13
12
|
extend Forwardable
|
14
13
|
|
15
14
|
using Refinements::Hash
|
16
|
-
using
|
15
|
+
using Refines::Logger
|
17
16
|
|
18
17
|
delegate %i[
|
19
18
|
close
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "logger"
|
4
|
+
require "refinements/string_io"
|
5
|
+
|
6
|
+
module Cogger
|
7
|
+
module Refines
|
8
|
+
# Provides additional enhancements to a log device.
|
9
|
+
module LogDevice
|
10
|
+
using Refinements::StringIO
|
11
|
+
|
12
|
+
refine ::Logger::LogDevice do
|
13
|
+
def reread
|
14
|
+
case dev
|
15
|
+
when ::File then dev.class.new(dev).read
|
16
|
+
when ::StringIO then dev.reread
|
17
|
+
else ""
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Cogger
|
4
|
+
module Refines
|
5
|
+
# Provides additional enhancements to a logger.
|
6
|
+
module Logger
|
7
|
+
using LogDevice
|
8
|
+
|
9
|
+
refine ::Logger do
|
10
|
+
def reread = @logdev.reread
|
11
|
+
|
12
|
+
alias_method :any, :unknown
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
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.31.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-11-09 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: core
|
@@ -43,14 +43,28 @@ dependencies:
|
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '1.
|
46
|
+
version: '1.10'
|
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.10'
|
54
|
+
- !ruby/object:Gem::Dependency
|
55
|
+
name: logger
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '1.6'
|
61
|
+
type: :runtime
|
62
|
+
prerelease: false
|
63
|
+
version_requirements: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '1.6'
|
54
68
|
- !ruby/object:Gem::Dependency
|
55
69
|
name: refinements
|
56
70
|
requirement: !ruby/object:Gem::Requirement
|
@@ -71,14 +85,14 @@ dependencies:
|
|
71
85
|
requirements:
|
72
86
|
- - "~>"
|
73
87
|
- !ruby/object:Gem::Version
|
74
|
-
version: '1.
|
88
|
+
version: '1.10'
|
75
89
|
type: :runtime
|
76
90
|
prerelease: false
|
77
91
|
version_requirements: !ruby/object:Gem::Requirement
|
78
92
|
requirements:
|
79
93
|
- - "~>"
|
80
94
|
- !ruby/object:Gem::Version
|
81
|
-
version: '1.
|
95
|
+
version: '1.10'
|
82
96
|
- !ruby/object:Gem::Dependency
|
83
97
|
name: zeitwerk
|
84
98
|
requirement: !ruby/object:Gem::Requirement
|
@@ -131,6 +145,8 @@ files:
|
|
131
145
|
- lib/cogger/level.rb
|
132
146
|
- lib/cogger/program.rb
|
133
147
|
- lib/cogger/rack/logger.rb
|
148
|
+
- lib/cogger/refines/log_device.rb
|
149
|
+
- lib/cogger/refines/logger.rb
|
134
150
|
- lib/cogger/registry.rb
|
135
151
|
- lib/cogger/tag.rb
|
136
152
|
- lib/cogger/time/clock.rb
|
@@ -166,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
166
182
|
- !ruby/object:Gem::Version
|
167
183
|
version: '0'
|
168
184
|
requirements: []
|
169
|
-
rubygems_version: 3.5.
|
185
|
+
rubygems_version: 3.5.23
|
170
186
|
signing_key:
|
171
187
|
specification_version: 4
|
172
188
|
summary: A customizable and feature rich logger.
|
metadata.gz.sig
CHANGED
Binary file
|