dry-monitor 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dry/monitor/rack/logger.rb +1 -0
- data/lib/dry/monitor/sql/logger.rb +4 -0
- data/lib/dry/monitor/version.rb +1 -1
- data/lib/dry/monitor.rb +8 -4
- 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: afc2d74e0898f3b20cf5ea70690fc80ab2a3d2eb7e7c08e804f56e958b2a448b
|
4
|
+
data.tar.gz: 03e39000363e919196a4deb5445fed39d13a2a8a07d132126e2faf37826f0172
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c4dc960f95a645aaf66133edca30d913bb26ddd476f0fe2054c8809b4aeea5d763e001b631199fc05dbfa1883eb9dcaf81e5288c5e2ad38929a2d34d08fa042
|
7
|
+
data.tar.gz: ebb3f927add3d05f0d8a0738be91d66be8fb69f20f5066e9a2796919076ba7332ad1f1a21a13d268f09af2461271589abcd4f6fad5bf63fcb0d89b1e4baaf4a4
|
@@ -13,6 +13,8 @@ module Dry
|
|
13
13
|
extend Dry::Configurable
|
14
14
|
|
15
15
|
register_extension(:default_colorizer) do
|
16
|
+
require "dry/monitor/sql/colorizers/default"
|
17
|
+
|
16
18
|
module DefaultColorizer
|
17
19
|
def colorizer
|
18
20
|
@colorizer ||= Colorizers::Default.new(config.theme)
|
@@ -23,6 +25,8 @@ module Dry
|
|
23
25
|
end
|
24
26
|
|
25
27
|
register_extension(:rouge_colorizer) do
|
28
|
+
require "dry/monitor/sql/colorizers/rouge"
|
29
|
+
|
26
30
|
module RougeColorizer
|
27
31
|
def colorizer
|
28
32
|
@colorizer ||= Colorizers::Rouge.new(config.theme)
|
data/lib/dry/monitor/version.rb
CHANGED
data/lib/dry/monitor.rb
CHANGED
@@ -13,12 +13,11 @@ module Dry
|
|
13
13
|
|
14
14
|
register_extension(:rack) do
|
15
15
|
require "rack/utils"
|
16
|
-
|
17
|
-
Dry::Monitor::Rack::Logger
|
16
|
+
require "dry/monitor/rack/logger"
|
18
17
|
end
|
19
18
|
|
20
19
|
register_extension(:sql) do
|
21
|
-
|
20
|
+
require "dry/monitor/sql/logger"
|
22
21
|
end
|
23
22
|
|
24
23
|
def self.loader
|
@@ -27,7 +26,12 @@ module Dry
|
|
27
26
|
loader.tag = "dry-monitor"
|
28
27
|
loader.inflector = Zeitwerk::GemInflector.new("#{root}/dry-monitor.rb")
|
29
28
|
loader.push_dir(root)
|
30
|
-
loader.ignore(
|
29
|
+
loader.ignore(
|
30
|
+
"#{root}/dry-monitor.rb",
|
31
|
+
"#{root}/dry/monitor/version.rb",
|
32
|
+
"#{root}/dry/monitor/rack/**/*.rb",
|
33
|
+
"#{root}/dry/monitor/sql/**/*.rb",
|
34
|
+
)
|
31
35
|
loader.inflector.inflect "sql" => "SQL"
|
32
36
|
end
|
33
37
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dry-monitor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Solnica
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-08-
|
11
|
+
date: 2022-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-configurable
|