dry-system 0.13.0 → 0.13.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 +9 -0
- data/LICENSE +1 -1
- data/README.md +3 -4
- data/lib/dry/system/auto_registrar.rb +1 -1
- data/lib/dry/system/container.rb +3 -3
- data/lib/dry/system/plugins.rb +4 -2
- data/lib/dry/system/plugins/monitoring.rb +2 -2
- data/lib/dry/system/version.rb +1 -1
- 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: e90324e596f844c7104c69634b4ff6556421510c710a1e054944beebe2a99f2e
|
4
|
+
data.tar.gz: d201f17ab282ce6570ca549bb867570c9e09ec62f92a827980ce3facbcbb6c4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5a963fd13031155c8e59878d30ba0231afd9f73ab0c001d7a8f92a39e6b3ad05073b1dde874e5ba4af2c630245fca329b654d0658520870257bc1bef9b900f4
|
7
|
+
data.tar.gz: c5507f3e995f0d3bd1ce310a8d92cdb3989c6e805a66e3137c63a7b4cd7d35d7c0c8842c0b2a3d5c588e1a268a9b5afba88e24bb054a7ff43eff750207b6bee6
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
# 0.13.1 - 2019-11-07
|
2
|
+
|
3
|
+
### Fixed
|
4
|
+
|
5
|
+
- Fixed keyword warnings reported by Ruby 2.7 (flash-gordon)
|
6
|
+
- Duplicates in `Dry::System::Plugins.loaded_dependencies` (AMHOL)
|
7
|
+
|
8
|
+
[Compare v0.13.0...v0.13.1](https://github.com/dry-rb/dry-system/compare/v0.13.0...v0.13.1)
|
9
|
+
|
1
10
|
# 0.13.0 - 2019-10-13
|
2
11
|
|
3
12
|
### Changed
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,21 +1,20 @@
|
|
1
1
|
[gem]: https://rubygems.org/gems/dry-system
|
2
|
-
[
|
2
|
+
[ci]: https://github.com/dry-rb/dry-monads/actions?query=workflow%3Aci
|
3
3
|
[codeclimate]: https://codeclimate.com/github/dry-rb/dry-system
|
4
4
|
[inchpages]: http://inch-ci.org/github/dry-rb/dry-system
|
5
5
|
[chat]: https://dry-rb.zulipchat.com
|
6
6
|
|
7
7
|
# dry-system [![Join the chat at https://dry-rb.zulipchat.com](https://img.shields.io/badge/dry--rb-join%20chat-%23346b7a.svg)][chat]
|
8
8
|
|
9
|
-
|
10
9
|
[![Gem Version](https://badge.fury.io/rb/dry-system.svg)][gem]
|
11
|
-
[![Build Status](https://
|
10
|
+
[![Build Status](https://github.com/dry-rb/dry-monads/workflows/ci/badge.svg)][ci]
|
12
11
|
[![Code Climate](https://codeclimate.com/github/dry-rb/dry-system/badges/gpa.svg)][codeclimate]
|
13
12
|
[![Test Coverage](https://codeclimate.com/github/dry-rb/dry-system/badges/coverage.svg)][codeclimate]
|
14
13
|
[![Inline docs](http://inch-ci.org/github/dry-rb/dry-system.svg?branch=master)][inchpages]
|
15
14
|
|
16
15
|
## Links
|
17
16
|
|
18
|
-
|
17
|
+
- [Documentation](http://dry-rb.org/gems/dry-system)
|
19
18
|
|
20
19
|
## LICENSE
|
21
20
|
|
data/lib/dry/system/container.rb
CHANGED
@@ -228,7 +228,7 @@ module Dry
|
|
228
228
|
# @return [self]
|
229
229
|
#
|
230
230
|
# @api public
|
231
|
-
def boot(name, opts
|
231
|
+
def boot(name, **opts, &block)
|
232
232
|
if components.key?(name)
|
233
233
|
raise DuplicatedComponentKeyError, <<-STR
|
234
234
|
Bootable component #{name.inspect} was already registered
|
@@ -237,9 +237,9 @@ module Dry
|
|
237
237
|
|
238
238
|
component =
|
239
239
|
if opts[:from]
|
240
|
-
boot_external(name, opts, &block)
|
240
|
+
boot_external(name, **opts, &block)
|
241
241
|
else
|
242
|
-
boot_local(name, opts, &block)
|
242
|
+
boot_local(name, **opts, &block)
|
243
243
|
end
|
244
244
|
|
245
245
|
components[name] = component
|
data/lib/dry/system/plugins.rb
CHANGED
@@ -31,8 +31,10 @@ module Dry
|
|
31
31
|
def load_dependencies
|
32
32
|
Array(dependencies).each do |f|
|
33
33
|
begin
|
34
|
-
|
35
|
-
|
34
|
+
next if Plugins.loaded_dependencies.include?(f.to_s)
|
35
|
+
|
36
|
+
require f
|
37
|
+
Plugins.loaded_dependencies << f.to_s
|
36
38
|
rescue LoadError => e
|
37
39
|
raise PluginDependencyMissing.new(name, e.message)
|
38
40
|
end
|
@@ -25,11 +25,11 @@ module Dry
|
|
25
25
|
end
|
26
26
|
|
27
27
|
# @api private
|
28
|
-
def monitor(key, options
|
28
|
+
def monitor(key, **options, &block)
|
29
29
|
notifications = self[:notifications]
|
30
30
|
|
31
31
|
resolve(key).tap do |target|
|
32
|
-
proxy = Proxy.for(target, options
|
32
|
+
proxy = Proxy.for(target, **options, key: key)
|
33
33
|
|
34
34
|
if block
|
35
35
|
proxy.monitored_methods.each do |meth|
|
data/lib/dry/system/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dry-system
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.13.
|
4
|
+
version: 0.13.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: 2019-
|
11
|
+
date: 2019-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|