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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e5f22e78dd92f5dd4177daec60c9d8bab1583df9478f4741780706c354607041
4
- data.tar.gz: fe37f4deef05a9eb250d1afe730dffe4f803e22252a4b1ebef54a254f725a1dd
3
+ metadata.gz: c6e53105874b359055963dd30faf125aed4c90db22d9acbc4e15f7bf92b69466
4
+ data.tar.gz: 1644f3f329b528447928c67a168f2d39e62e4e04a5c4f991651c960cc0705e0f
5
5
  SHA512:
6
- metadata.gz: 733d07a4274411c35a687052b46f007c8a678bf417b7f284fb06d9725f62827190717bf8611881fa10183c34620f795d33f0aa201a9ce98cb58e1203c2c6b3ce
7
- data.tar.gz: 9a121f35e111f90de89fbb30429963127dff82bb2ae9ed4de1fbaeefb1874f7d573c52de0b0e7f5bb173ae7d6919c31d35101f7779713e51af980e4ec3c4f89a
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Dry
4
4
  module Monitor
5
- VERSION = "0.6.0"
5
+ VERSION = "0.6.1"
6
6
  end
7
7
  end
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
- class << self
23
- def 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"
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.0
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-10 00:00:00.000000000 Z
11
+ date: 2022-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-configurable