dry-monitor 0.6.3 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +29 -0
- data/LICENSE +1 -1
- data/dry-monitor.gemspec +3 -4
- data/lib/dry/monitor/notifications.rb +0 -1
- data/lib/dry/monitor/rack/logger.rb +0 -1
- data/lib/dry/monitor/rack/middleware.rb +3 -3
- data/lib/dry/monitor/sql/colorizers/default.rb +2 -0
- data/lib/dry/monitor/sql/logger.rb +2 -3
- data/lib/dry/monitor/version.rb +1 -1
- data/lib/dry/monitor.rb +3 -4
- metadata +17 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ef0810179fb857fd4c8196793138aa1748b3df840076c1de1d553524e6cd0b7
|
4
|
+
data.tar.gz: 83f406af00796cc04abbb203ff76013d5a1f6ac84efa50a28820ca5ad9b40fcf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 640410786d3338d15546157b1816117a02ebd997f2900dcecf6b6e263e8c5cbf999e794e73eb4f19da1bff6d663b691635834316a5ce750c6e07381ef3084263
|
7
|
+
data.tar.gz: 823d1e997d6db90dd038211de62abca709b3d5990b0f55dc6f60d0c0f7c64ec17ead85f2d7a85b0efc909d5df6060e5d19adfe50cd07bde904e5e488a539b712
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,34 @@
|
|
1
1
|
<!--- DO NOT EDIT THIS FILE - IT'S AUTOMATICALLY GENERATED VIA DEVTOOLS --->
|
2
2
|
|
3
|
+
## 0.7.0 2022-10-15
|
4
|
+
|
5
|
+
|
6
|
+
### Changed
|
7
|
+
|
8
|
+
- Bump dry-core to >= 0.9.0 (@flash-gordon)
|
9
|
+
|
10
|
+
[Compare v0.6.3...v0.7.0](https://github.com/dry-rb/dry-monitor/compare/v0.6.3...v0.7.0)
|
11
|
+
|
12
|
+
## 0.6.3 2022-08-11
|
13
|
+
|
14
|
+
|
15
|
+
### Fixed
|
16
|
+
|
17
|
+
- Extensions were excluded from auto-loading. They to be loaded manually (addresses #49) (@flash-gordon)
|
18
|
+
|
19
|
+
|
20
|
+
[Compare v0.6.2...v0.6.3](https://github.com/dry-rb/dry-monitor/compare/v0.6.2...v0.6.3)
|
21
|
+
|
22
|
+
## 0.6.2 2022-08-10
|
23
|
+
|
24
|
+
|
25
|
+
### Fixed
|
26
|
+
|
27
|
+
- Exclude `VERSION` constant from autoload (fixes #49) (@flash-gordon)
|
28
|
+
|
29
|
+
|
30
|
+
[Compare v0.6.1...v0.6.2](https://github.com/dry-rb/dry-monitor/compare/v0.6.1...v0.6.2)
|
31
|
+
|
3
32
|
## 0.6.1 2022-07-11
|
4
33
|
|
5
34
|
|
data/LICENSE
CHANGED
data/dry-monitor.gemspec
CHANGED
@@ -29,10 +29,9 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.required_ruby_version = ">= 2.7.0"
|
30
30
|
|
31
31
|
# to update dependencies edit project.yml
|
32
|
-
spec.add_runtime_dependency "dry-configurable", "~> 0.
|
33
|
-
spec.add_runtime_dependency "dry-core", "~> 0.
|
34
|
-
spec.add_runtime_dependency "dry-events", "~> 0.
|
35
|
-
spec.add_runtime_dependency "zeitwerk", "~> 2.5"
|
32
|
+
spec.add_runtime_dependency "dry-configurable", "~> 0.16", ">= 0.16.0"
|
33
|
+
spec.add_runtime_dependency "dry-core", "~> 0.9", ">= 0.9"
|
34
|
+
spec.add_runtime_dependency "dry-events", "~> 0.4", ">= 0.4.0"
|
36
35
|
|
37
36
|
spec.add_development_dependency "bundler"
|
38
37
|
spec.add_development_dependency "rake"
|
@@ -4,9 +4,9 @@ module Dry
|
|
4
4
|
module Monitor
|
5
5
|
module Rack
|
6
6
|
class Middleware
|
7
|
-
REQUEST_START = :
|
8
|
-
REQUEST_STOP = :
|
9
|
-
REQUEST_ERROR = :
|
7
|
+
REQUEST_START = :"rack.request.start"
|
8
|
+
REQUEST_STOP = :"rack.request.stop"
|
9
|
+
REQUEST_ERROR = :"rack.request.error"
|
10
10
|
|
11
11
|
Notifications.register_event(REQUEST_START)
|
12
12
|
Notifications.register_event(REQUEST_STOP)
|
@@ -1,8 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "dry-configurable"
|
4
|
-
require "dry/core/extensions"
|
5
|
-
|
6
3
|
module Dry
|
7
4
|
module Monitor
|
8
5
|
Notifications.register_event(:sql)
|
@@ -12,6 +9,7 @@ module Dry
|
|
12
9
|
extend Dry::Core::Extensions
|
13
10
|
extend Dry::Configurable
|
14
11
|
|
12
|
+
# rubocop:disable Lint/ConstantDefinitionInBlock
|
15
13
|
register_extension(:default_colorizer) do
|
16
14
|
require "dry/monitor/sql/colorizers/default"
|
17
15
|
|
@@ -35,6 +33,7 @@ module Dry
|
|
35
33
|
|
36
34
|
Logger.include(RougeColorizer)
|
37
35
|
end
|
36
|
+
# rubocop:enable Lint/ConstantDefinitionInBlock
|
38
37
|
|
39
38
|
setting :theme
|
40
39
|
setting :message_template, default: %( Loaded %s in %sms %s)
|
data/lib/dry/monitor/version.rb
CHANGED
data/lib/dry/monitor.rb
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require "zeitwerk"
|
4
|
-
|
5
|
-
require "dry/
|
6
|
-
require "dry/core/constants"
|
4
|
+
require "dry/core"
|
5
|
+
require "dry/configurable"
|
7
6
|
require "dry/monitor/version"
|
8
7
|
|
9
8
|
module Dry
|
@@ -30,7 +29,7 @@ module Dry
|
|
30
29
|
"#{root}/dry-monitor.rb",
|
31
30
|
"#{root}/dry/monitor/version.rb",
|
32
31
|
"#{root}/dry/monitor/rack/**/*.rb",
|
33
|
-
"#{root}/dry/monitor/sql/**/*.rb"
|
32
|
+
"#{root}/dry/monitor/sql/**/*.rb"
|
34
33
|
)
|
35
34
|
loader.inflector.inflect "sql" => "SQL"
|
36
35
|
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.
|
4
|
+
version: 0.7.0
|
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-
|
11
|
+
date: 2022-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-configurable
|
@@ -16,68 +16,60 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.16'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.
|
22
|
+
version: 0.16.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.16'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 0.
|
32
|
+
version: 0.16.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: dry-core
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '0.
|
39
|
+
version: '0.9'
|
40
40
|
- - ">="
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: '0.
|
42
|
+
version: '0.9'
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
47
|
- - "~>"
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: '0.
|
49
|
+
version: '0.9'
|
50
50
|
- - ">="
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: '0.
|
52
|
+
version: '0.9'
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: dry-events
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
56
56
|
requirements:
|
57
57
|
- - "~>"
|
58
58
|
- !ruby/object:Gem::Version
|
59
|
-
version: '0.
|
60
|
-
|
61
|
-
prerelease: false
|
62
|
-
version_requirements: !ruby/object:Gem::Requirement
|
63
|
-
requirements:
|
64
|
-
- - "~>"
|
65
|
-
- !ruby/object:Gem::Version
|
66
|
-
version: '0.2'
|
67
|
-
- !ruby/object:Gem::Dependency
|
68
|
-
name: zeitwerk
|
69
|
-
requirement: !ruby/object:Gem::Requirement
|
70
|
-
requirements:
|
71
|
-
- - "~>"
|
59
|
+
version: '0.4'
|
60
|
+
- - ">="
|
72
61
|
- !ruby/object:Gem::Version
|
73
|
-
version:
|
62
|
+
version: 0.4.0
|
74
63
|
type: :runtime
|
75
64
|
prerelease: false
|
76
65
|
version_requirements: !ruby/object:Gem::Requirement
|
77
66
|
requirements:
|
78
67
|
- - "~>"
|
79
68
|
- !ruby/object:Gem::Version
|
80
|
-
version: '
|
69
|
+
version: '0.4'
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: 0.4.0
|
81
73
|
- !ruby/object:Gem::Dependency
|
82
74
|
name: bundler
|
83
75
|
requirement: !ruby/object:Gem::Requirement
|