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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e307fd70aa58f5e8b05e2134a9f73cb110790127ba854f4dbac7ca5deb41b56c
4
- data.tar.gz: bc22e6a09a625de0c5113a5fb84d328e2cbb136c24f7309cb8504a31a07359b6
3
+ metadata.gz: 3d49bbd2fe09c1aaa359bfec64e3a6758bcb34f57db9a51d06967d4c59985cb7
4
+ data.tar.gz: 2f9545b9d2e155176a90ebba1584458b9031e7a8d16f7e714fa79148a9c39762
5
5
  SHA512:
6
- metadata.gz: 83accc55669c11fa3164a32b71a1cb4e500b3c7fafd0a123ab0f6c3cfc0f137343c81a5d454d4ec36b468986e42671dcb7ab40571e2c69617c6efd046a5d7025
7
- data.tar.gz: 31fc0c7d4e0dd179ea404a271dc14670460dc1a65a887b1e8266f50ff4d9226b5c352465e3f29e7f662ec51124a2b957a23123e1fc7314a878db563296d8b384
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.29.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.7"
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.0"
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 Refinements::Logger
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.29.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-10-28 00:00:00.000000000 Z
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.7'
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.7'
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.0'
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.0'
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.22
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