dry-system 0.15.0 → 0.17.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 +25 -2
- data/dry-system.gemspec +3 -1
- data/lib/dry/system/container.rb +12 -0
- data/lib/dry/system/version.rb +1 -1
- metadata +10 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b40959760b0b9ee80de50998aa39df98c0a52d13ac5203ae2f0a33fc7e63dd4b
|
4
|
+
data.tar.gz: 433c21462c9747aed9a5b493d8d119bf64c2b52fc81fcd070dc25c45abe6a419
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a379b14f40045c0e6ecc73a82fb87839bea01cbe62a43f8dafaf93c8c60fe0220a9059d146611f3b843d3bdd5007e44a0ef188bc53a58410cb2a463779036668
|
7
|
+
data.tar.gz: 800e2175141a3641c047bb515d51fa18d8012e883af8528fed009e82853b39a21a15a1c46313e38c3a98ebcb6e32d8d911ab953934c2ff8ca2f18937f0d74b72
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,27 @@
|
|
1
|
-
##
|
1
|
+
## 0.17.0 2020-02-19
|
2
|
+
|
3
|
+
|
4
|
+
### Fixed
|
5
|
+
|
6
|
+
- Works with the latest dry-configurable version (issue #141) (@solnic)
|
7
|
+
|
8
|
+
### Changed
|
9
|
+
|
10
|
+
- Depends on dry-configurable `=> 0.11.1` now (@solnic)
|
11
|
+
|
12
|
+
[Compare v0.16.0...v0.17.0](https://github.com/dry-rb/dry-system/compare/v0.16.0...v0.17.0)
|
13
|
+
|
14
|
+
## 0.16.0 2020-02-15
|
15
|
+
|
16
|
+
|
17
|
+
### Changed
|
18
|
+
|
19
|
+
- Plugins can now define their own settings which are available in the `before(:configure)` hook (@solnic)
|
20
|
+
- Dependency on dry-configurable was bumped to `~> 0.11` (@solnic)
|
21
|
+
|
22
|
+
[Compare v0.15.0...v0.16.0](https://github.com/dry-rb/dry-system/compare/v0.15.0...v0.16.0)
|
23
|
+
|
24
|
+
## 0.15.0 2020-01-30
|
2
25
|
|
3
26
|
|
4
27
|
### Added
|
@@ -18,7 +41,7 @@ after(:configure) { config.my_new_setting = "awesome" }
|
|
18
41
|
- Centralize error definitions in `lib/dry/system/errors.rb` (@cgeorgii)
|
19
42
|
- All built-in plugins use `before(:configure)` now to declare their settings (@solnic)
|
20
43
|
|
21
|
-
[Compare v0.14.1...
|
44
|
+
[Compare v0.14.1...v0.15.0](https://github.com/dry-rb/dry-system/compare/v0.14.1...v0.15.0)
|
22
45
|
|
23
46
|
## 0.14.1 2020-01-22
|
24
47
|
|
data/dry-system.gemspec
CHANGED
@@ -16,6 +16,8 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.description = spec.summary
|
17
17
|
spec.homepage = 'https://dry-rb.org/gems/dry-system'
|
18
18
|
spec.files = Dir["CHANGELOG.md", "LICENSE", "README.md", "dry-system.gemspec", "lib/**/*"]
|
19
|
+
spec.bindir = 'bin'
|
20
|
+
spec.executables = []
|
19
21
|
spec.require_paths = ['lib']
|
20
22
|
|
21
23
|
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
@@ -28,7 +30,7 @@ Gem::Specification.new do |spec|
|
|
28
30
|
# to update dependencies edit project.yml
|
29
31
|
spec.add_runtime_dependency "concurrent-ruby", "~> 1.0"
|
30
32
|
spec.add_runtime_dependency "dry-auto_inject", ">= 0.4.0"
|
31
|
-
spec.add_runtime_dependency "dry-configurable", "~> 0.
|
33
|
+
spec.add_runtime_dependency "dry-configurable", "~> 0.11", ">= 0.11.1"
|
32
34
|
spec.add_runtime_dependency "dry-container", "~> 0.7", ">= 0.7.2"
|
33
35
|
spec.add_runtime_dependency "dry-core", "~> 0.3", ">= 0.3.1"
|
34
36
|
spec.add_runtime_dependency "dry-equalizer", "~> 0.2"
|
data/lib/dry/system/container.rb
CHANGED
@@ -97,6 +97,18 @@ module Dry
|
|
97
97
|
|
98
98
|
extend Dry::Core::Deprecations['Dry::System::Container']
|
99
99
|
|
100
|
+
# Define a new configuration setting
|
101
|
+
#
|
102
|
+
# @see https://dry-rb.org/gems/dry-configurable
|
103
|
+
#
|
104
|
+
# @api public
|
105
|
+
def setting(name, *args, &block)
|
106
|
+
super(name, *args, &block)
|
107
|
+
# TODO: dry-configurable needs a public API for this
|
108
|
+
config._settings << _settings[name]
|
109
|
+
self
|
110
|
+
end
|
111
|
+
|
100
112
|
# Configures the container
|
101
113
|
#
|
102
114
|
# @example
|
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.
|
4
|
+
version: 0.17.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: 2020-
|
11
|
+
date: 2020-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -44,14 +44,20 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0.
|
47
|
+
version: '0.11'
|
48
|
+
- - ">="
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: 0.11.1
|
48
51
|
type: :runtime
|
49
52
|
prerelease: false
|
50
53
|
version_requirements: !ruby/object:Gem::Requirement
|
51
54
|
requirements:
|
52
55
|
- - "~>"
|
53
56
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0.
|
57
|
+
version: '0.11'
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: 0.11.1
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
62
|
name: dry-container
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|