dry-system 1.0.0.rc1 → 1.0.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 +23 -3
- data/dry-system.gemspec +1 -1
- data/lib/dry/system/loader.rb +6 -1
- data/lib/dry/system/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d867a0c8708ea863edb44b5f93453c5d986925c921af51d747b605d6f4d3bbb
|
4
|
+
data.tar.gz: 1ee2e7a02c48bd9feb02a018aea1c81f59a5bda1ca7351d62a008162a62d1471
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75e76f0ff522306b18b38c17c4bdfdae39280cbf4507beff3233bfc7cd10af752de605d0af619b6528a237f6860a4baee3754afedd890d66d50ac54a2880b4bf
|
7
|
+
data.tar.gz: aa31996c109cee9a6b05f61b127d7b9a6ec04cc30fe2e10ecf3f14f8948b2c34be7e687ec6ba6565bd06b9874816cf33d150a5b7499c9e125540e920159a7531
|
data/CHANGELOG.md
CHANGED
@@ -1,13 +1,33 @@
|
|
1
1
|
<!--- DO NOT EDIT THIS FILE - IT'S AUTOMATICALLY GENERATED VIA DEVTOOLS --->
|
2
2
|
|
3
|
-
## 0.
|
3
|
+
## 1.0.1 2022-11-18
|
4
4
|
|
5
5
|
|
6
6
|
### Changed
|
7
7
|
|
8
|
-
-
|
8
|
+
- Bumped dry-auto_inject dependency to its 1.0.0 final release (@solnic)
|
9
|
+
|
10
|
+
[Compare v1.0.0...v1.0.1](https://github.com/dry-rb/dry-system/compare/v1.0.0...v1.0.1)
|
11
|
+
|
12
|
+
## 1.0.0 2022-11-18
|
13
|
+
|
14
|
+
|
15
|
+
### Fixed
|
16
|
+
|
17
|
+
- Only use DidYouMean-integrated Error for Component loading failure (via #261) (@cllns + @solnic)
|
9
18
|
|
10
|
-
|
19
|
+
### Changed
|
20
|
+
|
21
|
+
- This version uses dry-core 1.0 and dry-configurable 1.0 (@solnic + @flash-gordon)
|
22
|
+
- Raise error on import after finalize (via #254) (@timriley + @tak1n)
|
23
|
+
- Validate settings even if loader does not set value (via #246) (@oeoeaio)
|
24
|
+
- Remove all deprecated functionality and deprecation messages (via #255) (@timriley)
|
25
|
+
- Use main dry/monitor entrypoint for autoloading (via #257) (@timriley)
|
26
|
+
- Use dry-configurable 1.0 (via 43c79095ccf54c6251e825ae20c97a9415e78209) (@flash-gordon)
|
27
|
+
- Use dry-core 1.0 (via 3d0cf95aef120601e67f3e8fbbf16d004017d376) (@flash-gordon)
|
28
|
+
- Remove dry-container dependency and update to use `Dry::Core::Container` (via 2b76554e5925fc92614627d5c1e0a9177cecf12f) (@solnic)
|
29
|
+
|
30
|
+
[Compare v0.27.2...v1.0.0](https://github.com/dry-rb/dry-system/compare/v0.27.2...v1.0.0)
|
11
31
|
|
12
32
|
## 0.27.2 2022-10-17
|
13
33
|
|
data/dry-system.gemspec
CHANGED
@@ -29,7 +29,7 @@ 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-auto_inject", "~> 1.0
|
32
|
+
spec.add_runtime_dependency "dry-auto_inject", "~> 1.0", "< 2"
|
33
33
|
spec.add_runtime_dependency "dry-configurable", "~> 1.0", "< 2"
|
34
34
|
spec.add_runtime_dependency "dry-core", "~> 1.0", "< 2"
|
35
35
|
spec.add_runtime_dependency "dry-inflector", "~> 1.0", "< 2"
|
data/lib/dry/system/loader.rb
CHANGED
@@ -66,7 +66,12 @@ module Dry
|
|
66
66
|
const_name = inflector.camelize(component.const_path)
|
67
67
|
inflector.constantize(const_name)
|
68
68
|
rescue NameError => e
|
69
|
-
|
69
|
+
# Ensure it's this component's constant, not any other NameError within the component
|
70
|
+
if e.message =~ /#{const_name}( |\n)/
|
71
|
+
raise ComponentNotLoadableError.new(component, e)
|
72
|
+
else
|
73
|
+
raise e
|
74
|
+
end
|
70
75
|
end
|
71
76
|
|
72
77
|
private
|
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: 1.0.
|
4
|
+
version: 1.0.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-11-
|
11
|
+
date: 2022-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-auto_inject
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.0
|
19
|
+
version: '1.0'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: '2'
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 1.0
|
29
|
+
version: '1.0'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '2'
|
@@ -204,9 +204,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
204
204
|
version: 2.7.0
|
205
205
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
206
206
|
requirements:
|
207
|
-
- - "
|
207
|
+
- - ">="
|
208
208
|
- !ruby/object:Gem::Version
|
209
|
-
version:
|
209
|
+
version: '0'
|
210
210
|
requirements: []
|
211
211
|
rubygems_version: 3.1.6
|
212
212
|
signing_key:
|