dry-system 1.2.3 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +95 -60
- data/LICENSE +2 -1
- data/README.md +7 -13
- data/dry-system.gemspec +19 -14
- data/lib/dry/system/config/component_dirs.rb +1 -5
- data/lib/dry/system/config/namespaces.rb +0 -4
- data/lib/dry/system/container.rb +0 -4
- data/lib/dry/system/importer.rb +14 -3
- data/lib/dry/system/loader.rb +4 -4
- data/lib/dry/system/plugins/monitoring/proxy.rb +3 -3
- data/lib/dry/system/plugins/plugin.rb +2 -2
- data/lib/dry/system/provider_registrar.rb +1 -1
- data/lib/dry/system/provider_sources/settings/config.rb +2 -2
- data/lib/dry/system/version.rb +1 -1
- metadata +52 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d078f5485e50a210869599680a3280542d6edb8f4edb7345829da07e32d877e7
|
|
4
|
+
data.tar.gz: c0685619aa18c1af62144d3a871b24e1f52f00870bcd662380dae926bc4a0552
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3a059ee8b6b12fc81631cc09ab370dc6273d9cc5e9c7ff67fc1bc06d9d9cb15a8f9edb9c1d59e5ba609ade18cb9c1a79834d3c6f0361b61cb23b712501672100
|
|
7
|
+
data.tar.gz: a78b84bc261fbe3143734bcf159b0ba29a3f7ea84a1f7511040a2a75b9d50932fde3e60c00a17333d3e7565e86d54a2595ec4b32bad2fb3a763e3d595a0dfc02
|
data/CHANGELOG.md
CHANGED
|
@@ -1,17 +1,52 @@
|
|
|
1
|
-
|
|
1
|
+
# Changelog
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Break Versioning](https://www.taoensso.com/break-versioning).
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
[Unreleased]: https://github.com/dry-rb/dry-system/compare/v1.2.5...main
|
|
11
|
+
|
|
12
|
+
## [1.2.5] - 2025-12-01
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
|
|
16
|
+
- Pass through keyword arguments to monitored objects in `monitoring` plugin. (@yuszuv in #290)
|
|
17
|
+
|
|
18
|
+
[1.2.5]: https://github.com/dry-rb/dry-system/compare/v1.2.4...v1.2.5
|
|
19
|
+
|
|
20
|
+
## [1.2.4] - 2025-08-14
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Fixed
|
|
24
|
+
|
|
25
|
+
- Allow imported components to be lazy loaded when both strings and symbols are given as the
|
|
26
|
+
namespace to `Container.import` (@timriley in #287)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
[Compare v1.2.3...v1.2.4](https://github.com/dry-rb/dry-system/compare/v1.2.3...v1.2.4)
|
|
30
|
+
|
|
31
|
+
## [1.2.3] - 2025-07-29
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Added
|
|
35
|
+
|
|
36
|
+
- Add :register after-hook to detect container key registration dynamically. (via #274, @alassek)
|
|
5
37
|
|
|
6
38
|
### Fixed
|
|
7
39
|
|
|
8
40
|
- Re-register components from manifest registrars in apps that reload the container (e.g. when
|
|
9
41
|
using dry-rails and Rails development mode) (via #286, @alassek)
|
|
10
42
|
|
|
43
|
+
### Changed
|
|
44
|
+
|
|
45
|
+
- :finalize after-hook now executes before container freeze to allow mutation. (via #274, @alassek)
|
|
11
46
|
|
|
12
47
|
[Compare v1.2.2...v1.2.3](https://github.com/dry-rb/dry-system/compare/v1.2.2...v1.2.3)
|
|
13
48
|
|
|
14
|
-
## 1.2.2 2025-01-31
|
|
49
|
+
## [1.2.2] - 2025-01-31
|
|
15
50
|
|
|
16
51
|
|
|
17
52
|
### Fixed
|
|
@@ -21,7 +56,7 @@ using dry-rails and Rails development mode) (via #286, @alassek)
|
|
|
21
56
|
|
|
22
57
|
[Compare v1.2.1...v1.2.2](https://github.com/dry-rb/dry-system/compare/v1.2.1...v1.2.2)
|
|
23
58
|
|
|
24
|
-
## 1.2.1 2025-01-08
|
|
59
|
+
## [1.2.1] - 2025-01-08
|
|
25
60
|
|
|
26
61
|
|
|
27
62
|
### Fixed
|
|
@@ -32,7 +67,7 @@ wasn't the intention #281 (via #282) (@flash-gordon)
|
|
|
32
67
|
|
|
33
68
|
[Compare v1.2.0...v1.2.1](https://github.com/dry-rb/dry-system/compare/v1.2.0...v1.2.1)
|
|
34
69
|
|
|
35
|
-
## 1.2.0 2025-01-07
|
|
70
|
+
## [1.2.0] - 2025-01-07
|
|
36
71
|
|
|
37
72
|
|
|
38
73
|
### Added
|
|
@@ -45,7 +80,7 @@ wasn't the intention #281 (via #282) (@flash-gordon)
|
|
|
45
80
|
|
|
46
81
|
[Compare v1.1.1...v1.2.0](https://github.com/dry-rb/dry-system/compare/v1.1.1...v1.2.0)
|
|
47
82
|
|
|
48
|
-
## 1.1.1 2024-11-03
|
|
83
|
+
## [1.1.1] - 2024-11-03
|
|
49
84
|
|
|
50
85
|
|
|
51
86
|
### Fixed
|
|
@@ -55,13 +90,13 @@ wasn't the intention #281 (via #282) (@flash-gordon)
|
|
|
55
90
|
|
|
56
91
|
[Compare v1.1.0...v1.1.1](https://github.com/dry-rb/dry-system/compare/v1.1.0...v1.1.1)
|
|
57
92
|
|
|
58
|
-
## 1.1.0 2024-10-31
|
|
93
|
+
## [1.1.0] - 2024-10-31
|
|
59
94
|
|
|
60
95
|
|
|
61
96
|
|
|
62
97
|
[Compare v1.1.0.beta2...v1.1.0](https://github.com/dry-rb/dry-system/compare/v1.1.0.beta2...v1.1.0)
|
|
63
98
|
|
|
64
|
-
## 1.1.0.beta2 2024-09-25
|
|
99
|
+
## [1.1.0.beta2] - 2024-09-25
|
|
65
100
|
|
|
66
101
|
|
|
67
102
|
### Changed
|
|
@@ -73,7 +108,7 @@ source). (via #275) (@alassek, @timriley)
|
|
|
73
108
|
|
|
74
109
|
[Compare v1.1.0.beta1...v1.1.0.beta2](https://github.com/dry-rb/dry-system/compare/v1.1.0.beta1...v1.1.0.beta2)
|
|
75
110
|
|
|
76
|
-
## 1.1.0.beta1 2024-07-03
|
|
111
|
+
## [1.1.0.beta1] - 2024-07-03
|
|
77
112
|
|
|
78
113
|
|
|
79
114
|
### Added
|
|
@@ -97,7 +132,7 @@ a provider. (via #273) (@timriley)
|
|
|
97
132
|
|
|
98
133
|
[Compare v1.0.1...v1.1.0.beta1](https://github.com/dry-rb/dry-system/compare/v1.0.1...v1.1.0.beta1)
|
|
99
134
|
|
|
100
|
-
## 1.0.1 2022-11-18
|
|
135
|
+
## [1.0.1] - 2022-11-18
|
|
101
136
|
|
|
102
137
|
|
|
103
138
|
### Changed
|
|
@@ -106,7 +141,7 @@ a provider. (via #273) (@timriley)
|
|
|
106
141
|
|
|
107
142
|
[Compare v1.0.0...v1.0.1](https://github.com/dry-rb/dry-system/compare/v1.0.0...v1.0.1)
|
|
108
143
|
|
|
109
|
-
## 1.0.0 2022-11-18
|
|
144
|
+
## [1.0.0] - 2022-11-18
|
|
110
145
|
|
|
111
146
|
|
|
112
147
|
### Fixed
|
|
@@ -126,7 +161,7 @@ a provider. (via #273) (@timriley)
|
|
|
126
161
|
|
|
127
162
|
[Compare v0.27.2...v1.0.0](https://github.com/dry-rb/dry-system/compare/v0.27.2...v1.0.0)
|
|
128
163
|
|
|
129
|
-
## 0.27.2 2022-10-17
|
|
164
|
+
## [0.27.2] - 2022-10-17
|
|
130
165
|
|
|
131
166
|
|
|
132
167
|
### Fixed
|
|
@@ -136,7 +171,7 @@ a provider. (via #273) (@timriley)
|
|
|
136
171
|
|
|
137
172
|
[Compare v0.27.1...v0.27.2](https://github.com/dry-rb/dry-system/compare/v0.27.1...v0.27.2)
|
|
138
173
|
|
|
139
|
-
## 0.27.1 2022-10-15
|
|
174
|
+
## [0.27.1] - 2022-10-15
|
|
140
175
|
|
|
141
176
|
|
|
142
177
|
### Fixed
|
|
@@ -146,7 +181,7 @@ a provider. (via #273) (@timriley)
|
|
|
146
181
|
|
|
147
182
|
[Compare v0.27.0...v0.27.1](https://github.com/dry-rb/dry-system/compare/v0.27.0...v0.27.1)
|
|
148
183
|
|
|
149
|
-
## 0.27.0 2022-10-15
|
|
184
|
+
## [0.27.0] - 2022-10-15
|
|
150
185
|
|
|
151
186
|
|
|
152
187
|
### Changed
|
|
@@ -158,7 +193,7 @@ there, everything else will be auto-loaded.
|
|
|
158
193
|
|
|
159
194
|
[Compare v0.26.0...v0.27.0](https://github.com/dry-rb/dry-system/compare/v0.26.0...v0.27.0)
|
|
160
195
|
|
|
161
|
-
## 0.26.0 2022-10-08
|
|
196
|
+
## [0.26.0] - 2022-10-08
|
|
162
197
|
|
|
163
198
|
|
|
164
199
|
### Changed
|
|
@@ -168,7 +203,7 @@ there, everything else will be auto-loaded.
|
|
|
168
203
|
|
|
169
204
|
[Compare v0.25.0...v0.26.0](https://github.com/dry-rb/dry-system/compare/v0.25.0...v0.26.0)
|
|
170
205
|
|
|
171
|
-
## 0.25.0 2022-07-10
|
|
206
|
+
## [0.25.0] - 2022-07-10
|
|
172
207
|
|
|
173
208
|
|
|
174
209
|
### Fixed
|
|
@@ -183,7 +218,7 @@ there, everything else will be auto-loaded.
|
|
|
183
218
|
|
|
184
219
|
[Compare v0.24.0...v0.25.0](https://github.com/dry-rb/dry-system/compare/v0.24.0...v0.25.0)
|
|
185
220
|
|
|
186
|
-
## 0.24.0
|
|
221
|
+
## [0.24.0] -
|
|
187
222
|
|
|
188
223
|
|
|
189
224
|
### Changed
|
|
@@ -192,7 +227,7 @@ there, everything else will be auto-loaded.
|
|
|
192
227
|
|
|
193
228
|
[Compare v0.23.0...master](https://github.com/dry-rb/dry-system/compare/v0.23.0...master)
|
|
194
229
|
|
|
195
|
-
## 0.23.0 2022-02-08
|
|
230
|
+
## [0.23.0] - 2022-02-08
|
|
196
231
|
|
|
197
232
|
This is a major overhaul of bootable components (now known as “Providers”), and brings major advancements to other areas, including container imports and exports.
|
|
198
233
|
|
|
@@ -592,7 +627,7 @@ This prepares the way for dry-system 1.0, which will be released in the coming m
|
|
|
592
627
|
|
|
593
628
|
[Compare v0.22.0...v0.23.0](https://github.com/dry-rb/dry-system/compare/v0.22.0...v0.23.0)
|
|
594
629
|
|
|
595
|
-
## 0.22.0 2022-01-06
|
|
630
|
+
## [0.22.0] - 2022-01-06
|
|
596
631
|
|
|
597
632
|
|
|
598
633
|
### Added
|
|
@@ -606,7 +641,7 @@ This prepares the way for dry-system 1.0, which will be released in the coming m
|
|
|
606
641
|
|
|
607
642
|
[Compare v0.21.0...v0.22.0](https://github.com/dry-rb/dry-system/compare/v0.21.0...v0.22.0)
|
|
608
643
|
|
|
609
|
-
## 0.21.0 2021-11-01
|
|
644
|
+
## [0.21.0] - 2021-11-01
|
|
610
645
|
|
|
611
646
|
|
|
612
647
|
### Added
|
|
@@ -639,7 +674,7 @@ This prepares the way for dry-system 1.0, which will be released in the coming m
|
|
|
639
674
|
|
|
640
675
|
[Compare v0.20.0...v0.21.0](https://github.com/dry-rb/dry-system/compare/v0.20.0...v0.21.0)
|
|
641
676
|
|
|
642
|
-
## 0.20.0 2021-09-12
|
|
677
|
+
## [0.20.0] - 2021-09-12
|
|
643
678
|
|
|
644
679
|
|
|
645
680
|
### Fixed
|
|
@@ -654,7 +689,7 @@ This prepares the way for dry-system 1.0, which will be released in the coming m
|
|
|
654
689
|
|
|
655
690
|
[Compare v0.19.2...v0.20.0](https://github.com/dry-rb/dry-system/compare/v0.19.2...v0.20.0)
|
|
656
691
|
|
|
657
|
-
## 0.19.2 2021-08-30
|
|
692
|
+
## [0.19.2] - 2021-08-30
|
|
658
693
|
|
|
659
694
|
|
|
660
695
|
### Changed
|
|
@@ -663,7 +698,7 @@ This prepares the way for dry-system 1.0, which will be released in the coming m
|
|
|
663
698
|
|
|
664
699
|
[Compare v0.18.2...v0.19.2](https://github.com/dry-rb/dry-system/compare/v0.18.2...v0.19.2)
|
|
665
700
|
|
|
666
|
-
## 0.18.2 2021-08-30
|
|
701
|
+
## [0.18.2] - 2021-08-30
|
|
667
702
|
|
|
668
703
|
|
|
669
704
|
### Changed
|
|
@@ -672,7 +707,7 @@ This prepares the way for dry-system 1.0, which will be released in the coming m
|
|
|
672
707
|
|
|
673
708
|
[Compare v0.19.1...v0.18.2](https://github.com/dry-rb/dry-system/compare/v0.19.1...v0.18.2)
|
|
674
709
|
|
|
675
|
-
## 0.19.1 2021-07-11
|
|
710
|
+
## [0.19.1] - 2021-07-11
|
|
676
711
|
|
|
677
712
|
|
|
678
713
|
### Fixed
|
|
@@ -682,7 +717,7 @@ This prepares the way for dry-system 1.0, which will be released in the coming m
|
|
|
682
717
|
|
|
683
718
|
[Compare v0.19.0...v0.19.1](https://github.com/dry-rb/dry-system/compare/v0.19.0...v0.19.1)
|
|
684
719
|
|
|
685
|
-
## 0.19.0 2021-04-22
|
|
720
|
+
## [0.19.0] - 2021-04-22
|
|
686
721
|
|
|
687
722
|
This release marks a huge step forward for dry-system, bringing support for Zeitwerk and other autoloaders, plus clearer configuration and improved consistency around component resolution for both finalized and lazy loading containers. [Read the announcement post](https://dry-rb.org/news/2021/04/22/dry-system-0-19-released-with-zeitwerk-support-and-more-leading-the-way-for-hanami-2-0/) for a high-level tour of the new features.
|
|
688
723
|
|
|
@@ -773,7 +808,7 @@ This release marks a huge step forward for dry-system, bringing support for Zeit
|
|
|
773
808
|
|
|
774
809
|
[Compare v0.18.1...v0.19.0](https://github.com/dry-rb/dry-system/compare/v0.18.1...v0.19.0)
|
|
775
810
|
|
|
776
|
-
## 0.18.1 2020-08-26
|
|
811
|
+
## [0.18.1] - 2020-08-26
|
|
777
812
|
|
|
778
813
|
|
|
779
814
|
### Fixed
|
|
@@ -783,7 +818,7 @@ This release marks a huge step forward for dry-system, bringing support for Zeit
|
|
|
783
818
|
|
|
784
819
|
[Compare v0.18.0...v0.18.1](https://github.com/dry-rb/dry-system/compare/v0.18.0...v0.18.1)
|
|
785
820
|
|
|
786
|
-
## 0.18.0 2020-08-24
|
|
821
|
+
## [0.18.0] - 2020-08-24
|
|
787
822
|
|
|
788
823
|
|
|
789
824
|
### Added
|
|
@@ -797,7 +832,7 @@ This release marks a huge step forward for dry-system, bringing support for Zeit
|
|
|
797
832
|
|
|
798
833
|
[Compare v0.17.0...v0.18.0](https://github.com/dry-rb/dry-system/compare/v0.17.0...v0.18.0)
|
|
799
834
|
|
|
800
|
-
## 0.17.0 2020-02-19
|
|
835
|
+
## [0.17.0] - 2020-02-19
|
|
801
836
|
|
|
802
837
|
|
|
803
838
|
### Fixed
|
|
@@ -810,7 +845,7 @@ This release marks a huge step forward for dry-system, bringing support for Zeit
|
|
|
810
845
|
|
|
811
846
|
[Compare v0.16.0...v0.17.0](https://github.com/dry-rb/dry-system/compare/v0.16.0...v0.17.0)
|
|
812
847
|
|
|
813
|
-
## 0.16.0 2020-02-15
|
|
848
|
+
## [0.16.0] - 2020-02-15
|
|
814
849
|
|
|
815
850
|
|
|
816
851
|
### Changed
|
|
@@ -820,7 +855,7 @@ This release marks a huge step forward for dry-system, bringing support for Zeit
|
|
|
820
855
|
|
|
821
856
|
[Compare v0.15.0...v0.16.0](https://github.com/dry-rb/dry-system/compare/v0.15.0...v0.16.0)
|
|
822
857
|
|
|
823
|
-
## 0.15.0 2020-01-30
|
|
858
|
+
## [0.15.0] - 2020-01-30
|
|
824
859
|
|
|
825
860
|
|
|
826
861
|
### Added
|
|
@@ -842,7 +877,7 @@ after(:configure) { config.my_new_setting = "awesome" }
|
|
|
842
877
|
|
|
843
878
|
[Compare v0.14.1...v0.15.0](https://github.com/dry-rb/dry-system/compare/v0.14.1...v0.15.0)
|
|
844
879
|
|
|
845
|
-
## 0.14.1 2020-01-22
|
|
880
|
+
## [0.14.1] - 2020-01-22
|
|
846
881
|
|
|
847
882
|
|
|
848
883
|
### Changed
|
|
@@ -851,7 +886,7 @@ after(:configure) { config.my_new_setting = "awesome" }
|
|
|
851
886
|
|
|
852
887
|
[Compare v0.14.0...v0.14.1](https://github.com/dry-rb/dry-system/compare/v0.14.0...v0.14.1)
|
|
853
888
|
|
|
854
|
-
## 0.14.0 2020-01-21
|
|
889
|
+
## [0.14.0] - 2020-01-21
|
|
855
890
|
|
|
856
891
|
|
|
857
892
|
### Fixed
|
|
@@ -862,7 +897,7 @@ after(:configure) { config.my_new_setting = "awesome" }
|
|
|
862
897
|
|
|
863
898
|
[Compare v0.13.2...v0.14.0](https://github.com/dry-rb/dry-system/compare/v0.13.2...v0.14.0)
|
|
864
899
|
|
|
865
|
-
## 0.13.2 2019-12-28
|
|
900
|
+
## [0.13.2] - 2019-12-28
|
|
866
901
|
|
|
867
902
|
|
|
868
903
|
### Fixed
|
|
@@ -872,7 +907,7 @@ after(:configure) { config.my_new_setting = "awesome" }
|
|
|
872
907
|
|
|
873
908
|
[Compare v0.13.1...v0.13.2](https://github.com/dry-rb/dry-system/compare/v0.13.1...v0.13.2)
|
|
874
909
|
|
|
875
|
-
## 0.13.1 2019-11-07
|
|
910
|
+
## [0.13.1] - 2019-11-07
|
|
876
911
|
|
|
877
912
|
|
|
878
913
|
### Fixed
|
|
@@ -883,7 +918,7 @@ after(:configure) { config.my_new_setting = "awesome" }
|
|
|
883
918
|
|
|
884
919
|
[Compare v0.13.0...v0.13.1](https://github.com/dry-rb/dry-system/compare/v0.13.0...v0.13.1)
|
|
885
920
|
|
|
886
|
-
## 0.13.0 2019-10-13
|
|
921
|
+
## [0.13.0] - 2019-10-13
|
|
887
922
|
|
|
888
923
|
|
|
889
924
|
### Added
|
|
@@ -899,7 +934,7 @@ after(:configure) { config.my_new_setting = "awesome" }
|
|
|
899
934
|
|
|
900
935
|
[Compare v0.12.0...v0.13.0](https://github.com/dry-rb/dry-system/compare/v0.12.0...v0.13.0)
|
|
901
936
|
|
|
902
|
-
## 0.12.0 2019-04-24
|
|
937
|
+
## [0.12.0] - 2019-04-24
|
|
903
938
|
|
|
904
939
|
|
|
905
940
|
### Changed
|
|
@@ -908,7 +943,7 @@ after(:configure) { config.my_new_setting = "awesome" }
|
|
|
908
943
|
|
|
909
944
|
[Compare v0.11.0...v0.12.0](https://github.com/dry-rb/dry-system/compare/v0.11.0...v0.12.0)
|
|
910
945
|
|
|
911
|
-
## 0.11.0 2019-03-22
|
|
946
|
+
## [0.11.0] - 2019-03-22
|
|
912
947
|
|
|
913
948
|
|
|
914
949
|
### Changed
|
|
@@ -918,7 +953,7 @@ after(:configure) { config.my_new_setting = "awesome" }
|
|
|
918
953
|
|
|
919
954
|
[Compare v0.10.1...v0.11.0](https://github.com/dry-rb/dry-system/compare/v0.10.1...v0.11.0)
|
|
920
955
|
|
|
921
|
-
## 0.10.1 2018-07-05
|
|
956
|
+
## [0.10.1] - 2018-07-05
|
|
922
957
|
|
|
923
958
|
|
|
924
959
|
### Added
|
|
@@ -932,7 +967,7 @@ after(:configure) { config.my_new_setting = "awesome" }
|
|
|
932
967
|
|
|
933
968
|
[Compare v0.10.0...v0.10.1](https://github.com/dry-rb/dry-system/compare/v0.10.0...v0.10.1)
|
|
934
969
|
|
|
935
|
-
## 0.10.0 2018-06-07
|
|
970
|
+
## [0.10.0] - 2018-06-07
|
|
936
971
|
|
|
937
972
|
|
|
938
973
|
### Added
|
|
@@ -958,7 +993,7 @@ after(:configure) { config.my_new_setting = "awesome" }
|
|
|
958
993
|
|
|
959
994
|
[Compare v0.9.2...v0.10.0](https://github.com/dry-rb/dry-system/compare/v0.9.2...v0.10.0)
|
|
960
995
|
|
|
961
|
-
## 0.9.2 2018-02-08
|
|
996
|
+
## [0.9.2] - 2018-02-08
|
|
962
997
|
|
|
963
998
|
|
|
964
999
|
### Fixed
|
|
@@ -968,7 +1003,7 @@ after(:configure) { config.my_new_setting = "awesome" }
|
|
|
968
1003
|
|
|
969
1004
|
[Compare v0.9.1...v0.9.2](https://github.com/dry-rb/dry-system/compare/v0.9.1...v0.9.2)
|
|
970
1005
|
|
|
971
|
-
## 0.9.1 2018-01-03
|
|
1006
|
+
## [0.9.1] - 2018-01-03
|
|
972
1007
|
|
|
973
1008
|
|
|
974
1009
|
### Fixed
|
|
@@ -978,7 +1013,7 @@ after(:configure) { config.my_new_setting = "awesome" }
|
|
|
978
1013
|
|
|
979
1014
|
[Compare v0.9.0...v0.9.1](https://github.com/dry-rb/dry-system/compare/v0.9.0...v0.9.1)
|
|
980
1015
|
|
|
981
|
-
## 0.9.0 2018-01-02
|
|
1016
|
+
## [0.9.0] - 2018-01-02
|
|
982
1017
|
|
|
983
1018
|
|
|
984
1019
|
### Added
|
|
@@ -997,7 +1032,7 @@ after(:configure) { config.my_new_setting = "awesome" }
|
|
|
997
1032
|
|
|
998
1033
|
[Compare v0.8.1...v0.9.0](https://github.com/dry-rb/dry-system/compare/v0.8.1...v0.9.0)
|
|
999
1034
|
|
|
1000
|
-
## 0.8.1 2017-10-17
|
|
1035
|
+
## [0.8.1] - 2017-10-17
|
|
1001
1036
|
|
|
1002
1037
|
|
|
1003
1038
|
### Fixed
|
|
@@ -1008,7 +1043,7 @@ after(:configure) { config.my_new_setting = "awesome" }
|
|
|
1008
1043
|
|
|
1009
1044
|
[Compare v0.8.0...v0.8.1](https://github.com/dry-rb/dry-system/compare/v0.8.0...v0.8.1)
|
|
1010
1045
|
|
|
1011
|
-
## 0.8.0 2017-10-16
|
|
1046
|
+
## [0.8.0] - 2017-10-16
|
|
1012
1047
|
|
|
1013
1048
|
|
|
1014
1049
|
### Added
|
|
@@ -1026,7 +1061,7 @@ after(:configure) { config.my_new_setting = "awesome" }
|
|
|
1026
1061
|
|
|
1027
1062
|
[Compare v0.7.3...v0.8.0](https://github.com/dry-rb/dry-system/compare/v0.7.3...v0.8.0)
|
|
1028
1063
|
|
|
1029
|
-
## 0.7.3 2017-08-02
|
|
1064
|
+
## [0.7.3] - 2017-08-02
|
|
1030
1065
|
|
|
1031
1066
|
|
|
1032
1067
|
### Fixed
|
|
@@ -1037,7 +1072,7 @@ after(:configure) { config.my_new_setting = "awesome" }
|
|
|
1037
1072
|
|
|
1038
1073
|
[Compare v0.7.2...v0.7.3](https://github.com/dry-rb/dry-system/compare/v0.7.2...v0.7.3)
|
|
1039
1074
|
|
|
1040
|
-
## 0.7.2 2017-08-02
|
|
1075
|
+
## [0.7.2] - 2017-08-02
|
|
1041
1076
|
|
|
1042
1077
|
|
|
1043
1078
|
### Added
|
|
@@ -1052,7 +1087,7 @@ after(:configure) { config.my_new_setting = "awesome" }
|
|
|
1052
1087
|
|
|
1053
1088
|
[Compare v0.7.1...v0.7.2](https://github.com/dry-rb/dry-system/compare/v0.7.1...v0.7.2)
|
|
1054
1089
|
|
|
1055
|
-
## 0.7.1 2017-06-16
|
|
1090
|
+
## [0.7.1] - 2017-06-16
|
|
1056
1091
|
|
|
1057
1092
|
|
|
1058
1093
|
### Changed
|
|
@@ -1061,7 +1096,7 @@ after(:configure) { config.my_new_setting = "awesome" }
|
|
|
1061
1096
|
|
|
1062
1097
|
[Compare v0.7.0...v0.7.1](https://github.com/dry-rb/dry-system/compare/v0.7.0...v0.7.1)
|
|
1063
1098
|
|
|
1064
|
-
## 0.7.0 2017-06-15
|
|
1099
|
+
## [0.7.0] - 2017-06-15
|
|
1065
1100
|
|
|
1066
1101
|
|
|
1067
1102
|
### Added
|
|
@@ -1094,7 +1129,7 @@ after(:configure) { config.my_new_setting = "awesome" }
|
|
|
1094
1129
|
|
|
1095
1130
|
[Compare v0.6.0...v0.7.0](https://github.com/dry-rb/dry-system/compare/v0.6.0...v0.7.0)
|
|
1096
1131
|
|
|
1097
|
-
## 0.6.0 2016-02-02
|
|
1132
|
+
## [0.6.0] - 2016-02-02
|
|
1098
1133
|
|
|
1099
1134
|
|
|
1100
1135
|
### Changed
|
|
@@ -1104,7 +1139,7 @@ after(:configure) { config.my_new_setting = "awesome" }
|
|
|
1104
1139
|
|
|
1105
1140
|
[Compare v0.5.1...v0.6.0](https://github.com/dry-rb/dry-system/compare/v0.5.1...v0.6.0)
|
|
1106
1141
|
|
|
1107
|
-
## 0.5.1 2016-08-23
|
|
1142
|
+
## [0.5.1] - 2016-08-23
|
|
1108
1143
|
|
|
1109
1144
|
|
|
1110
1145
|
### Fixed
|
|
@@ -1114,7 +1149,7 @@ after(:configure) { config.my_new_setting = "awesome" }
|
|
|
1114
1149
|
|
|
1115
1150
|
[Compare v0.5.0...v0.5.1](https://github.com/dry-rb/dry-system/compare/v0.5.0...v0.5.1)
|
|
1116
1151
|
|
|
1117
|
-
## 0.5.0 2016-08-15
|
|
1152
|
+
## [0.5.0] - 2016-08-15
|
|
1118
1153
|
|
|
1119
1154
|
for multi-container setups. As part of this release `dry-system` has been renamed to `dry-system`.
|
|
1120
1155
|
|
|
@@ -1134,7 +1169,7 @@ for multi-container setups. As part of this release `dry-system` has been rename
|
|
|
1134
1169
|
|
|
1135
1170
|
[Compare v0.4.3...v0.5.0](https://github.com/dry-rb/dry-system/compare/v0.4.3...v0.5.0)
|
|
1136
1171
|
|
|
1137
|
-
## 0.4.3 2016-08-01
|
|
1172
|
+
## [0.4.3] - 2016-08-01
|
|
1138
1173
|
|
|
1139
1174
|
|
|
1140
1175
|
### Fixed
|
|
@@ -1144,7 +1179,7 @@ for multi-container setups. As part of this release `dry-system` has been rename
|
|
|
1144
1179
|
|
|
1145
1180
|
[Compare v0.4.2...v0.4.3](https://github.com/dry-rb/dry-system/compare/v0.4.2...v0.4.3)
|
|
1146
1181
|
|
|
1147
|
-
## 0.4.2 2016-07-26
|
|
1182
|
+
## [0.4.2] - 2016-07-26
|
|
1148
1183
|
|
|
1149
1184
|
|
|
1150
1185
|
### Fixed
|
|
@@ -1154,7 +1189,7 @@ for multi-container setups. As part of this release `dry-system` has been rename
|
|
|
1154
1189
|
|
|
1155
1190
|
[Compare v0.4.1...v0.4.2](https://github.com/dry-rb/dry-system/compare/v0.4.1...v0.4.2)
|
|
1156
1191
|
|
|
1157
|
-
## 0.4.1 2016-07-26
|
|
1192
|
+
## [0.4.1] - 2016-07-26
|
|
1158
1193
|
|
|
1159
1194
|
|
|
1160
1195
|
### Fixed
|
|
@@ -1164,7 +1199,7 @@ for multi-container setups. As part of this release `dry-system` has been rename
|
|
|
1164
1199
|
|
|
1165
1200
|
[Compare v0.4.0...v0.4.1](https://github.com/dry-rb/dry-system/compare/v0.4.0...v0.4.1)
|
|
1166
1201
|
|
|
1167
|
-
## 0.4.0 2016-07-26
|
|
1202
|
+
## [0.4.0] - 2016-07-26
|
|
1168
1203
|
|
|
1169
1204
|
|
|
1170
1205
|
### Added
|
|
@@ -1201,7 +1236,7 @@ for multi-container setups. As part of this release `dry-system` has been rename
|
|
|
1201
1236
|
|
|
1202
1237
|
[Compare v0.3.0...v0.4.0](https://github.com/dry-rb/dry-system/compare/v0.3.0...v0.4.0)
|
|
1203
1238
|
|
|
1204
|
-
## 0.3.0 2016-06-18
|
|
1239
|
+
## [0.3.0] - 2016-06-18
|
|
1205
1240
|
|
|
1206
1241
|
Removed two pieces that are moving to dry-web:
|
|
1207
1242
|
|
|
@@ -1214,7 +1249,7 @@ Removed two pieces that are moving to dry-web:
|
|
|
1214
1249
|
|
|
1215
1250
|
[Compare v0.2.0...v0.3.0](https://github.com/dry-rb/dry-system/compare/v0.2.0...v0.3.0)
|
|
1216
1251
|
|
|
1217
|
-
## 0.2.0 2016-06-13
|
|
1252
|
+
## [0.2.0] - 2016-06-13
|
|
1218
1253
|
|
|
1219
1254
|
|
|
1220
1255
|
### Fixed
|
|
@@ -1228,7 +1263,7 @@ Removed two pieces that are moving to dry-web:
|
|
|
1228
1263
|
|
|
1229
1264
|
[Compare v0.1.0...v0.2.0](https://github.com/dry-rb/dry-system/compare/v0.1.0...v0.2.0)
|
|
1230
1265
|
|
|
1231
|
-
## 0.1.0 2016-06-07
|
|
1266
|
+
## [0.1.0] - 2016-06-07
|
|
1232
1267
|
|
|
1233
1268
|
|
|
1234
1269
|
### Added
|
|
@@ -1257,7 +1292,7 @@ Removed two pieces that are moving to dry-web:
|
|
|
1257
1292
|
|
|
1258
1293
|
[Compare v0.0.2...v0.1.0](https://github.com/dry-rb/dry-system/compare/v0.0.2...v0.1.0)
|
|
1259
1294
|
|
|
1260
|
-
## 0.0.2 2015-12-24
|
|
1295
|
+
## [0.0.2] - 2015-12-24
|
|
1261
1296
|
|
|
1262
1297
|
|
|
1263
1298
|
### Added
|
|
@@ -1271,6 +1306,6 @@ Removed two pieces that are moving to dry-web:
|
|
|
1271
1306
|
|
|
1272
1307
|
[Compare v0.0.1...v0.0.2](https://github.com/dry-rb/dry-system/compare/v0.0.1...v0.0.2)
|
|
1273
1308
|
|
|
1274
|
-
## 0.0.1 2015-12-24
|
|
1309
|
+
## [0.0.1] - 2015-12-24
|
|
1275
1310
|
|
|
1276
1311
|
First public release, extracted from rodakase project
|
data/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2015-
|
|
3
|
+
Copyright (c) 2015-2025 Hanakai 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
|
|
@@ -18,3 +18,4 @@ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
|
18
18
|
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
19
19
|
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
20
20
|
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
21
|
+
|
data/README.md
CHANGED
|
@@ -1,23 +1,17 @@
|
|
|
1
|
-
<!---
|
|
1
|
+
<!--- This file is synced from hanakai-rb/repo-sync -->
|
|
2
2
|
|
|
3
|
-
[
|
|
3
|
+
[rubygem]: https://rubygems.org/gems/dry-system
|
|
4
4
|
[actions]: https://github.com/dry-rb/dry-system/actions
|
|
5
5
|
|
|
6
|
-
# dry-system [][
|
|
6
|
+
# dry-system [][rubygem] [][actions]
|
|
7
7
|
|
|
8
8
|
## Links
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
## Supported Ruby versions
|
|
15
|
-
|
|
16
|
-
This library officially supports the following Ruby versions:
|
|
17
|
-
|
|
18
|
-
* MRI `>= 3.1`
|
|
19
|
-
* jruby `>= 9.4` (not tested on CI)
|
|
10
|
+
- [User documentation](https://dry-rb.org/gems/dry-system)
|
|
11
|
+
- [API documentation](http://rubydoc.info/gems/dry-system)
|
|
12
|
+
- [Forum](https://discourse.dry-rb.org)
|
|
20
13
|
|
|
21
14
|
## License
|
|
22
15
|
|
|
23
16
|
See `LICENSE` file.
|
|
17
|
+
|
data/dry-system.gemspec
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
#
|
|
3
|
+
# This file is synced from hanakai-rb/repo-sync. To update it, edit repo-sync.yml.
|
|
4
4
|
|
|
5
5
|
lib = File.expand_path("lib", __dir__)
|
|
6
6
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
@@ -8,8 +8,8 @@ require "dry/system/version"
|
|
|
8
8
|
|
|
9
9
|
Gem::Specification.new do |spec|
|
|
10
10
|
spec.name = "dry-system"
|
|
11
|
-
spec.authors = ["
|
|
12
|
-
spec.email = ["
|
|
11
|
+
spec.authors = ["Hanakai team"]
|
|
12
|
+
spec.email = ["info@hanakai.org"]
|
|
13
13
|
spec.license = "MIT"
|
|
14
14
|
spec.version = Dry::System::VERSION.dup
|
|
15
15
|
|
|
@@ -21,17 +21,22 @@ Gem::Specification.new do |spec|
|
|
|
21
21
|
spec.executables = []
|
|
22
22
|
spec.require_paths = ["lib"]
|
|
23
23
|
|
|
24
|
-
spec.
|
|
25
|
-
spec.metadata["changelog_uri"] = "https://github.com/dry-rb/dry-system/blob/main/CHANGELOG.md"
|
|
26
|
-
spec.metadata["source_code_uri"] = "https://github.com/dry-rb/dry-system"
|
|
27
|
-
spec.metadata["bug_tracker_uri"] = "https://github.com/dry-rb/dry-system/issues"
|
|
28
|
-
spec.metadata["rubygems_mfa_required"] = "true"
|
|
24
|
+
spec.extra_rdoc_files = ["README.md", "CHANGELOG.md", "LICENSE"]
|
|
29
25
|
|
|
30
|
-
spec.
|
|
26
|
+
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
|
27
|
+
spec.metadata["changelog_uri"] = "https://github.com/dry-rb/dry-system/blob/main/CHANGELOG.md"
|
|
28
|
+
spec.metadata["source_code_uri"] = "https://github.com/dry-rb/dry-system"
|
|
29
|
+
spec.metadata["bug_tracker_uri"] = "https://github.com/dry-rb/dry-system/issues"
|
|
30
|
+
spec.metadata["funding_uri"] = "https://github.com/sponsors/hanami"
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
spec.
|
|
35
|
-
spec.
|
|
36
|
-
spec.
|
|
32
|
+
spec.required_ruby_version = ">= 3.1.0"
|
|
33
|
+
|
|
34
|
+
spec.add_runtime_dependency "dry-auto_inject", "~> 1.1"
|
|
35
|
+
spec.add_runtime_dependency "dry-configurable", "~> 1.3"
|
|
36
|
+
spec.add_runtime_dependency "dry-core", "~> 1.1"
|
|
37
|
+
spec.add_runtime_dependency "dry-inflector", "~> 1.1"
|
|
38
|
+
spec.add_development_dependency "bundler"
|
|
39
|
+
spec.add_development_dependency "rake"
|
|
40
|
+
spec.add_development_dependency "rspec"
|
|
37
41
|
end
|
|
42
|
+
|
|
@@ -64,8 +64,6 @@ module Dry
|
|
|
64
64
|
#
|
|
65
65
|
# @see memoize=
|
|
66
66
|
|
|
67
|
-
# rubocop:disable Layout/LineLength
|
|
68
|
-
|
|
69
67
|
# @!method namespaces
|
|
70
68
|
#
|
|
71
69
|
# Returns the default configured namespaces for all added component dirs
|
|
@@ -89,8 +87,6 @@ module Dry
|
|
|
89
87
|
#
|
|
90
88
|
# @see add_to_load_path=
|
|
91
89
|
|
|
92
|
-
# rubocop:enable Layout/LineLength
|
|
93
|
-
|
|
94
90
|
# @!endgroup
|
|
95
91
|
|
|
96
92
|
# A ComponentDir for configuring the default values to apply to all added
|
|
@@ -110,7 +106,7 @@ module Dry
|
|
|
110
106
|
|
|
111
107
|
# @api private
|
|
112
108
|
def initialize_copy(source)
|
|
113
|
-
@dirs = source.dirs.
|
|
109
|
+
@dirs = source.dirs.transform_values(&:dup)
|
|
114
110
|
@defaults = source.defaults.dup
|
|
115
111
|
end
|
|
116
112
|
|
|
@@ -48,8 +48,6 @@ module Dry
|
|
|
48
48
|
namespaces[Namespace::ROOT_PATH]
|
|
49
49
|
end
|
|
50
50
|
|
|
51
|
-
# rubocop:disable Layout/LineLength
|
|
52
|
-
|
|
53
51
|
# Adds a component dir namespace
|
|
54
52
|
#
|
|
55
53
|
# A namespace encompasses a given sub-directory of the component dir, and
|
|
@@ -102,8 +100,6 @@ module Dry
|
|
|
102
100
|
namespaces[path] = Namespace.new(path: path, key: key, const: const)
|
|
103
101
|
end
|
|
104
102
|
|
|
105
|
-
# rubocop:enable Layout/LineLength
|
|
106
|
-
|
|
107
103
|
# Adds a root component dir namespace
|
|
108
104
|
#
|
|
109
105
|
# @see #add
|
data/lib/dry/system/container.rb
CHANGED
|
@@ -183,8 +183,6 @@ module Dry
|
|
|
183
183
|
self
|
|
184
184
|
end
|
|
185
185
|
|
|
186
|
-
# rubocop:disable Layout/LineLength
|
|
187
|
-
|
|
188
186
|
# @overload register_provider(name, namespace: nil, from: nil, source: nil, if: true, &block)
|
|
189
187
|
# Registers a provider and its lifecycle hooks
|
|
190
188
|
#
|
|
@@ -274,8 +272,6 @@ module Dry
|
|
|
274
272
|
providers.register_provider(...)
|
|
275
273
|
end
|
|
276
274
|
|
|
277
|
-
# rubocop:enable Layout/LineLength
|
|
278
|
-
|
|
279
275
|
# Return if a container was finalized
|
|
280
276
|
#
|
|
281
277
|
# @return [TrueClass, FalseClass]
|
data/lib/dry/system/importer.rb
CHANGED
|
@@ -36,7 +36,7 @@ module Dry
|
|
|
36
36
|
|
|
37
37
|
# @api private
|
|
38
38
|
def register(namespace:, container:, keys: nil)
|
|
39
|
-
registry[namespace] = Item.new(
|
|
39
|
+
registry[namespace_key(namespace)] = Item.new(
|
|
40
40
|
namespace: namespace,
|
|
41
41
|
container: container,
|
|
42
42
|
import_keys: keys
|
|
@@ -45,12 +45,12 @@ module Dry
|
|
|
45
45
|
|
|
46
46
|
# @api private
|
|
47
47
|
def [](name)
|
|
48
|
-
registry.fetch(name)
|
|
48
|
+
registry.fetch(namespace_key(name))
|
|
49
49
|
end
|
|
50
50
|
|
|
51
51
|
# @api private
|
|
52
52
|
def key?(name)
|
|
53
|
-
registry.key?(name)
|
|
53
|
+
registry.key?(namespace_key(name))
|
|
54
54
|
end
|
|
55
55
|
alias_method :namespace?, :key?
|
|
56
56
|
|
|
@@ -76,6 +76,17 @@ module Dry
|
|
|
76
76
|
|
|
77
77
|
private
|
|
78
78
|
|
|
79
|
+
# Returns nil if given a nil (i.e. root) namespace. Otherwise, converts the namespace to a
|
|
80
|
+
# string.
|
|
81
|
+
#
|
|
82
|
+
# This ensures imported components are found when either symbols or strings to given as the
|
|
83
|
+
# namespace in {Container.import}.
|
|
84
|
+
def namespace_key(namespace)
|
|
85
|
+
return nil if namespace.nil?
|
|
86
|
+
|
|
87
|
+
namespace.to_s
|
|
88
|
+
end
|
|
89
|
+
|
|
79
90
|
def keys_to_import(keys, item)
|
|
80
91
|
keys
|
|
81
92
|
.then { (arr = item.import_keys) ? _1 & arr : _1 }
|
data/lib/dry/system/loader.rb
CHANGED
|
@@ -64,12 +64,12 @@ module Dry
|
|
|
64
64
|
inflector = component.inflector
|
|
65
65
|
const_name = inflector.camelize(component.const_path)
|
|
66
66
|
inflector.constantize(const_name)
|
|
67
|
-
rescue NameError =>
|
|
67
|
+
rescue NameError => exception
|
|
68
68
|
# Ensure it's this component's constant, not any other NameError within the component
|
|
69
|
-
if
|
|
70
|
-
raise ComponentNotLoadableError.new(component,
|
|
69
|
+
if exception.message =~ /#{const_name}( |\n|$)/
|
|
70
|
+
raise ComponentNotLoadableError.new(component, exception)
|
|
71
71
|
else
|
|
72
|
-
raise
|
|
72
|
+
raise exception
|
|
73
73
|
end
|
|
74
74
|
end
|
|
75
75
|
|
|
@@ -28,12 +28,12 @@ module Dry
|
|
|
28
28
|
monitored_methods(monitored_methods)
|
|
29
29
|
|
|
30
30
|
monitored_methods.each do |meth|
|
|
31
|
-
define_method(meth) do |*args, &block|
|
|
31
|
+
define_method(meth) do |*args, **kwargs, &block|
|
|
32
32
|
object = __getobj__
|
|
33
|
-
opts = {target: key, object: object, method: meth, args: args}
|
|
33
|
+
opts = {target: key, object: object, method: meth, args: args, kwargs: kwargs}
|
|
34
34
|
|
|
35
35
|
__notifications__.instrument(:monitoring, opts) do
|
|
36
|
-
object.public_send(meth, *args, &block)
|
|
36
|
+
object.public_send(meth, *args, **kwargs, &block)
|
|
37
37
|
end
|
|
38
38
|
end
|
|
39
39
|
end
|
|
@@ -40,8 +40,8 @@ module Dry
|
|
|
40
40
|
def load_dependency(dependency, gem)
|
|
41
41
|
Kernel.require dependency
|
|
42
42
|
Plugins.loaded_dependencies << dependency.to_s
|
|
43
|
-
rescue LoadError =>
|
|
44
|
-
raise PluginDependencyMissing.new(name,
|
|
43
|
+
rescue LoadError => exception
|
|
44
|
+
raise PluginDependencyMissing.new(name, exception.message, gem)
|
|
45
45
|
end
|
|
46
46
|
|
|
47
47
|
# @api private
|
|
@@ -125,7 +125,7 @@ module Dry
|
|
|
125
125
|
# @return [Array<Pathname>]
|
|
126
126
|
# @api public
|
|
127
127
|
def provider_files
|
|
128
|
-
@provider_files ||= provider_paths.each_with_object([[], []]) { |path, (provider_files, loaded)|
|
|
128
|
+
@provider_files ||= provider_paths.each_with_object([[], []]) { |path, (provider_files, loaded)|
|
|
129
129
|
files = ::Dir["#{path}/#{RB_GLOB}"]
|
|
130
130
|
|
|
131
131
|
files.each do |file|
|
|
@@ -42,8 +42,8 @@ module Dry
|
|
|
42
42
|
else
|
|
43
43
|
settings_obj.config[setting.name]
|
|
44
44
|
end
|
|
45
|
-
rescue =>
|
|
46
|
-
errors[setting.name] =
|
|
45
|
+
rescue => exception # rubocop:disable Style/RescueStandardError
|
|
46
|
+
errors[setting.name] = exception
|
|
47
47
|
end
|
|
48
48
|
end
|
|
49
49
|
|
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.2.
|
|
4
|
+
version: 1.2.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
-
|
|
7
|
+
- Hanakai team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-11-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: dry-auto_inject
|
|
@@ -66,12 +66,57 @@ dependencies:
|
|
|
66
66
|
- - "~>"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: '1.1'
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: bundler
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - ">="
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: '0'
|
|
76
|
+
type: :development
|
|
77
|
+
prerelease: false
|
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
- - ">="
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: '0'
|
|
83
|
+
- !ruby/object:Gem::Dependency
|
|
84
|
+
name: rake
|
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
|
86
|
+
requirements:
|
|
87
|
+
- - ">="
|
|
88
|
+
- !ruby/object:Gem::Version
|
|
89
|
+
version: '0'
|
|
90
|
+
type: :development
|
|
91
|
+
prerelease: false
|
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
+
requirements:
|
|
94
|
+
- - ">="
|
|
95
|
+
- !ruby/object:Gem::Version
|
|
96
|
+
version: '0'
|
|
97
|
+
- !ruby/object:Gem::Dependency
|
|
98
|
+
name: rspec
|
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
|
100
|
+
requirements:
|
|
101
|
+
- - ">="
|
|
102
|
+
- !ruby/object:Gem::Version
|
|
103
|
+
version: '0'
|
|
104
|
+
type: :development
|
|
105
|
+
prerelease: false
|
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
+
requirements:
|
|
108
|
+
- - ">="
|
|
109
|
+
- !ruby/object:Gem::Version
|
|
110
|
+
version: '0'
|
|
69
111
|
description: Organize your code into reusable components
|
|
70
112
|
email:
|
|
71
|
-
-
|
|
113
|
+
- info@hanakai.org
|
|
72
114
|
executables: []
|
|
73
115
|
extensions: []
|
|
74
|
-
extra_rdoc_files:
|
|
116
|
+
extra_rdoc_files:
|
|
117
|
+
- README.md
|
|
118
|
+
- CHANGELOG.md
|
|
119
|
+
- LICENSE
|
|
75
120
|
files:
|
|
76
121
|
- CHANGELOG.md
|
|
77
122
|
- LICENSE
|
|
@@ -127,7 +172,7 @@ metadata:
|
|
|
127
172
|
changelog_uri: https://github.com/dry-rb/dry-system/blob/main/CHANGELOG.md
|
|
128
173
|
source_code_uri: https://github.com/dry-rb/dry-system
|
|
129
174
|
bug_tracker_uri: https://github.com/dry-rb/dry-system/issues
|
|
130
|
-
|
|
175
|
+
funding_uri: https://github.com/sponsors/hanami
|
|
131
176
|
post_install_message:
|
|
132
177
|
rdoc_options: []
|
|
133
178
|
require_paths:
|
|
@@ -136,7 +181,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
136
181
|
requirements:
|
|
137
182
|
- - ">="
|
|
138
183
|
- !ruby/object:Gem::Version
|
|
139
|
-
version:
|
|
184
|
+
version: 3.1.0
|
|
140
185
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
186
|
requirements:
|
|
142
187
|
- - ">="
|