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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: afc2d74e0898f3b20cf5ea70690fc80ab2a3d2eb7e7c08e804f56e958b2a448b
4
- data.tar.gz: 03e39000363e919196a4deb5445fed39d13a2a8a07d132126e2faf37826f0172
3
+ metadata.gz: 4ef0810179fb857fd4c8196793138aa1748b3df840076c1de1d553524e6cd0b7
4
+ data.tar.gz: 83f406af00796cc04abbb203ff76013d5a1f6ac84efa50a28820ca5ad9b40fcf
5
5
  SHA512:
6
- metadata.gz: 6c4dc960f95a645aaf66133edca30d913bb26ddd476f0fe2054c8809b4aeea5d763e001b631199fc05dbfa1883eb9dcaf81e5288c5e2ad38929a2d34d08fa042
7
- data.tar.gz: ebb3f927add3d05f0d8a0738be91d66be8fb69f20f5066e9a2796919076ba7332ad1f1a21a13d268f09af2461271589abcd4f6fad5bf63fcb0d89b1e4baaf4a4
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
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2015-2021 dry-rb team
3
+ Copyright (c) 2015-2022 dry-rb team
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of
6
6
  this software and associated documentation files (the "Software"), to deal in
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.13", ">= 0.13.0"
33
- spec.add_runtime_dependency "dry-core", "~> 0.5", ">= 0.5"
34
- spec.add_runtime_dependency "dry-events", "~> 0.2"
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"
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "dry/core/constants"
4
3
  require "dry/events/publisher"
5
4
 
6
5
  module Dry
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "dry/configurable"
4
3
  require "dry/monitor/rack/middleware"
5
4
 
6
5
  module Dry
@@ -4,9 +4,9 @@ module Dry
4
4
  module Monitor
5
5
  module Rack
6
6
  class Middleware
7
- REQUEST_START = :'rack.request.start'
8
- REQUEST_STOP = :'rack.request.stop'
9
- REQUEST_ERROR = :'rack.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)
@@ -5,7 +5,9 @@ module Dry
5
5
  module SQL
6
6
  module Colorizers
7
7
  class Default
8
+ # rubocop:disable Style/RedundantInitialize
8
9
  def initialize(_theme); end
10
+ # rubocop:enable Style/RedundantInitialize
9
11
 
10
12
  def call(string)
11
13
  string
@@ -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)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Dry
4
4
  module Monitor
5
- VERSION = "0.6.3"
5
+ VERSION = "0.7.0"
6
6
  end
7
7
  end
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/core/extensions"
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.6.3
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-08-11 00:00:00.000000000 Z
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.13'
19
+ version: '0.16'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 0.13.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.13'
29
+ version: '0.16'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 0.13.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.5'
39
+ version: '0.9'
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: '0.5'
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.5'
49
+ version: '0.9'
50
50
  - - ">="
51
51
  - !ruby/object:Gem::Version
52
- version: '0.5'
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.2'
60
- type: :runtime
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: '2.5'
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: '2.5'
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