dry-monitor 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/lib/dry/monitor/notifications.rb +2 -0
- data/lib/dry/monitor/version.rb +1 -1
- data/lib/dry/monitor.rb +10 -11
- 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: c6e53105874b359055963dd30faf125aed4c90db22d9acbc4e15f7bf92b69466
|
4
|
+
data.tar.gz: 1644f3f329b528447928c67a168f2d39e62e4e04a5c4f991651c960cc0705e0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bff59a82b1994313d32a0feb2f4161b1af4b8eb516caadb948d74a893a3821069f5448315c16c4a0ec3458d7453e3b62c9b8b391a5c609b9e94595bce35c64c7
|
7
|
+
data.tar.gz: 52e5c21154a9520e514761bba7ff7adcbc45646d80a9a2ce93f90f116d92327f6e769b059400f92857a27c7a36fa704db1f40f52045930201aa546d6640781c7
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
<!--- DO NOT EDIT THIS FILE - IT'S AUTOMATICALLY GENERATED VIA DEVTOOLS --->
|
2
2
|
|
3
|
+
## 0.6.1 2022-07-11
|
4
|
+
|
5
|
+
|
6
|
+
### Fixed
|
7
|
+
|
8
|
+
- Include dry-core's constants in Notifications (fixes #46) (@solnic)
|
9
|
+
|
10
|
+
|
11
|
+
[Compare v0.6.0...v0.6.1](https://github.com/dry-rb/dry-monitor/compare/v0.6.0...v0.6.1)
|
12
|
+
|
3
13
|
## 0.6.0 2022-07-10
|
4
14
|
|
5
15
|
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "dry/core/constants"
|
3
4
|
require "dry/events/publisher"
|
4
5
|
|
5
6
|
module Dry
|
@@ -19,6 +20,7 @@ module Dry
|
|
19
20
|
CLOCK = Clock.new
|
20
21
|
|
21
22
|
class Notifications
|
23
|
+
include Core::Constants
|
22
24
|
include Events::Publisher["Dry::Monitor::Notifications"]
|
23
25
|
|
24
26
|
attr_reader :id, :clock
|
data/lib/dry/monitor/version.rb
CHANGED
data/lib/dry/monitor.rb
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "zeitwerk"
|
4
|
+
|
3
5
|
require "dry/core/extensions"
|
4
6
|
require "dry/core/constants"
|
5
|
-
require "zeitwerk"
|
6
7
|
|
7
8
|
module Dry
|
8
9
|
module Monitor
|
@@ -19,16 +20,14 @@ module Dry
|
|
19
20
|
Dry::Monitor::SQL::Logger
|
20
21
|
end
|
21
22
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
loader.inflector.inflect "sql" => "SQL"
|
31
|
-
end
|
23
|
+
def self.loader
|
24
|
+
@loader ||= Zeitwerk::Loader.new.tap do |loader|
|
25
|
+
root = File.expand_path("..", __dir__)
|
26
|
+
loader.tag = "dry-monitor"
|
27
|
+
loader.inflector = Zeitwerk::GemInflector.new("#{root}/dry-monitor.rb")
|
28
|
+
loader.push_dir(root)
|
29
|
+
loader.ignore("#{root}/dry-monitor.rb")
|
30
|
+
loader.inflector.inflect "sql" => "SQL"
|
32
31
|
end
|
33
32
|
end
|
34
33
|
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.1
|
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-07-
|
11
|
+
date: 2022-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-configurable
|