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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dce5901ccf5b7f6600561461fa96a18db936057302892d789213a44742ee341f
4
- data.tar.gz: 9ced6da7af00e039075a381a786c978fa15698727f1853774944945213161c7b
3
+ metadata.gz: afc2d74e0898f3b20cf5ea70690fc80ab2a3d2eb7e7c08e804f56e958b2a448b
4
+ data.tar.gz: 03e39000363e919196a4deb5445fed39d13a2a8a07d132126e2faf37826f0172
5
5
  SHA512:
6
- metadata.gz: 5cd1eea659a61e3786614e324d6285f360581efd637412c670f9c28053eb4b0e6db1c9e057edf1aee397bdd541d3d0077a7da117c432dc3a282bb9cefe102e33
7
- data.tar.gz: cc5dc34cbbb488ab20b6961e6e1bf0dec3d6f1478b63a96330dfb7c7d34c5c78002e91a0290c5ba3757766abf0fa96dc58d704a5128c28028f214528ea97e00b
6
+ metadata.gz: 6c4dc960f95a645aaf66133edca30d913bb26ddd476f0fe2054c8809b4aeea5d763e001b631199fc05dbfa1883eb9dcaf81e5288c5e2ad38929a2d34d08fa042
7
+ data.tar.gz: ebb3f927add3d05f0d8a0738be91d66be8fb69f20f5066e9a2796919076ba7332ad1f1a21a13d268f09af2461271589abcd4f6fad5bf63fcb0d89b1e4baaf4a4
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "dry/configurable"
4
+ require "dry/monitor/rack/middleware"
4
5
 
5
6
  module Dry
6
7
  module Monitor
@@ -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)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Dry
4
4
  module Monitor
5
- VERSION = "0.6.2"
5
+ VERSION = "0.6.3"
6
6
  end
7
7
  end
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
- Dry::Monitor::SQL::Logger
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("#{root}/dry-monitor.rb", "#{root}/dry/monitor/version.rb")
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.2
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-10 00:00:00.000000000 Z
11
+ date: 2022-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-configurable