dry-core 1.1.0 → 1.2.0
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 -124
- data/LICENSE +2 -1
- data/README.md +8 -13
- data/dry-core.gemspec +18 -13
- data/lib/dry/core/basic_object.rb +3 -3
- data/lib/dry/core/constants.rb +0 -2
- data/lib/dry/core/extensions.rb +0 -2
- data/lib/dry/core/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: 01eb8881ff6cdd0f0249237b6a5bd70de5f4873dfb4303025a935b8d46174aa7
|
|
4
|
+
data.tar.gz: 910005d47b3e92f4ed503231ab5b082fe6bcf8e325c7957fc181bdb3c1b0faa9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bdcfc8d467da41c66238f9b95033d0db657a0212bc0406e1abf5e263854482c57023f2f2ab12bbda147ea52bbbbe53f8dd15dfda30a8dccb9ca0e8415cea76c0
|
|
7
|
+
data.tar.gz: 3df780e3e2f11ea288b6c5f1251d612640878d907a35bbac63e8d550ab73fc82e333e23da9d5f274000a9892ffc77663365e344d5f70ab303c5c6c9c2a17d2cd
|
data/CHANGELOG.md
CHANGED
|
@@ -1,17 +1,45 @@
|
|
|
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
|
+
### Added
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
### Deprecated
|
|
15
|
+
|
|
16
|
+
### Removed
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
### Security
|
|
21
|
+
|
|
22
|
+
[Unreleased]: https://github.com/dry-rb/dry-core/compare/v1.2.0...main
|
|
23
|
+
|
|
24
|
+
## [1.2.0] - 2025-12-28
|
|
25
|
+
|
|
26
|
+
### Changed
|
|
27
|
+
|
|
28
|
+
- Support Ruby 4.0 in `Dry::Core::BasicObject#inspect` and `#pretty_print` (by returning false from its default `#respond_to_missing?`). (@timriley in #87)
|
|
29
|
+
- Set minimum Ruby version to 3.2. (@timriley)
|
|
30
|
+
|
|
31
|
+
[1.2.0]: https://github.com/dry-rb/dry-core/compare/v1.1.0...v1.2.0
|
|
32
|
+
|
|
33
|
+
## [1.1.0] - 2025-01-04
|
|
5
34
|
|
|
6
35
|
### Changed
|
|
7
36
|
|
|
8
37
|
- Minimal Ruby version is 3.1 (@flash-gordon)
|
|
9
38
|
- Fixed clash with `dry-logger` (see #80) (@flash-gordon)
|
|
10
39
|
|
|
11
|
-
[
|
|
12
|
-
|
|
13
|
-
## 1.0.1 2023-08-06
|
|
40
|
+
[1.1.0]: https://github.com/dry-rb/dry-core/compare/v1.0.1...v1.1.0
|
|
14
41
|
|
|
42
|
+
## [1.0.1] - 2023-08-06
|
|
15
43
|
|
|
16
44
|
### Fixed
|
|
17
45
|
|
|
@@ -19,55 +47,46 @@
|
|
|
19
47
|
|
|
20
48
|
Users of Equalizer should now only need to `require "dry/core"` first.
|
|
21
49
|
|
|
22
|
-
|
|
23
50
|
### Changed
|
|
24
51
|
|
|
25
52
|
- Minimal Ruby version is 3.0 (@flash-gordon)
|
|
26
53
|
|
|
27
|
-
[
|
|
28
|
-
|
|
29
|
-
## 1.0.0 2022-11-04
|
|
54
|
+
[1.0.1]: https://github.com/dry-rb/dry-core/compare/v1.0.0...v1.0.1
|
|
30
55
|
|
|
56
|
+
## [1.0.0] - 2022-11-04
|
|
31
57
|
|
|
32
58
|
### Added
|
|
33
59
|
|
|
34
60
|
- Import dry-container as `Dry::Core::Container` (via #77) (@solnic)
|
|
35
61
|
|
|
62
|
+
[1.0.0]: https://github.com/dry-rb/dry-core/compare/v0.9.1...v1.0.0
|
|
36
63
|
|
|
37
|
-
[
|
|
38
|
-
|
|
39
|
-
## 0.9.1 2022-10-18
|
|
40
|
-
|
|
64
|
+
## [0.9.1] - 2022-10-18
|
|
41
65
|
|
|
42
66
|
### Changed
|
|
43
67
|
|
|
44
68
|
- Correct missing constant for IDENTITY (issue #75 fixed via #76) (@poloka)
|
|
45
69
|
|
|
46
|
-
[
|
|
47
|
-
|
|
48
|
-
## 0.9.0 2022-10-15
|
|
70
|
+
[0.9.1]: https://github.com/dry-rb/dry-core/compare/v0.9.0...v0.9.1
|
|
49
71
|
|
|
72
|
+
## [0.9.0] - 2022-10-15
|
|
50
73
|
|
|
51
74
|
### Changed
|
|
52
75
|
|
|
53
76
|
- dry-core now uses zeitwerk for autoloading (@solnic)
|
|
54
77
|
|
|
55
|
-
[
|
|
56
|
-
|
|
57
|
-
## 0.8.1 2022-07-27
|
|
78
|
+
[0.9.0]: https://github.com/dry-rb/dry-core/compare/v0.8.1...v0.9.0
|
|
58
79
|
|
|
80
|
+
## [0.8.1] - 2022-07-27
|
|
59
81
|
|
|
60
82
|
### Fixed
|
|
61
83
|
|
|
62
84
|
- [memoizable] plays better with inheritance.
|
|
63
85
|
There were cases when cached values from base claesses were used, see #70 (@flash-gordon)
|
|
64
86
|
|
|
87
|
+
[0.8.1]: https://github.com/dry-rb/dry-core/compare/v0.8.0...v0.8.1
|
|
65
88
|
|
|
66
|
-
|
|
67
|
-
[Compare v0.8.0...v0.8.1](https://github.com/dry-rb/dry-core/compare/v0.8.0...v0.8.1)
|
|
68
|
-
|
|
69
|
-
## 0.8.0 2022-07-15
|
|
70
|
-
|
|
89
|
+
## [0.8.0] - 2022-07-15
|
|
71
90
|
|
|
72
91
|
### Added
|
|
73
92
|
|
|
@@ -78,23 +97,18 @@ There were cases when cached values from base claesses were used, see #70 (@flas
|
|
|
78
97
|
- [BREAKING] [descendants tracker] switch to using `Class#subclasses` on Ruby 3.1+.
|
|
79
98
|
This changes the order of returned subclasses (immediate subclasses now go first) (@flash-gordon)
|
|
80
99
|
|
|
100
|
+
[0.8.0]: https://github.com/dry-rb/dry-core/compare/v0.7.1...v0.8.0
|
|
81
101
|
|
|
82
|
-
[
|
|
83
|
-
|
|
84
|
-
## 0.7.1 2021-07-10
|
|
85
|
-
|
|
102
|
+
## [0.7.1] - 2021-07-10
|
|
86
103
|
|
|
87
104
|
### Fixed
|
|
88
105
|
|
|
89
106
|
- [memoizable] memoizable correctly handles cases where a method
|
|
90
107
|
has unnamed params (e.g. happens when the new `...` syntax is used) (@flash-gordon)
|
|
91
108
|
|
|
109
|
+
[0.7.1]: https://github.com/dry-rb/dry-core/compare/v0.7.0...v0.7.1
|
|
92
110
|
|
|
93
|
-
|
|
94
|
-
[Compare v0.7.0...v0.7.1](https://github.com/dry-rb/dry-core/compare/v0.7.0...v0.7.1)
|
|
95
|
-
|
|
96
|
-
## 0.7.0 2021-07-08
|
|
97
|
-
|
|
111
|
+
## [0.7.0] - 2021-07-08
|
|
98
112
|
|
|
99
113
|
### Fixed
|
|
100
114
|
|
|
@@ -106,10 +120,9 @@ has unnamed params (e.g. happens when the new `...` syntax is used) (@flash-gord
|
|
|
106
120
|
- Minimal Ruby version is 2.6
|
|
107
121
|
- [memoizable] memoization of block-accepting methods is deprecated (@flash-gordon)
|
|
108
122
|
|
|
109
|
-
[
|
|
110
|
-
|
|
111
|
-
## 0.6.0 2021-06-03
|
|
123
|
+
[0.7.0]: https://github.com/dry-rb/dry-core/compare/v0.6.0...v0.7.0
|
|
112
124
|
|
|
125
|
+
## [0.6.0] - 2021-06-03
|
|
113
126
|
|
|
114
127
|
### Added
|
|
115
128
|
|
|
@@ -121,21 +134,17 @@ has unnamed params (e.g. happens when the new `...` syntax is used) (@flash-gord
|
|
|
121
134
|
|
|
122
135
|
- [memoizable] works with MRI 2.7+ keyword arguments now (@oleander)
|
|
123
136
|
|
|
137
|
+
[0.6.0]: https://github.com/dry-rb/dry-core/compare/v0.5.0...v0.6.0
|
|
124
138
|
|
|
125
|
-
[
|
|
126
|
-
|
|
127
|
-
## 0.5.0 2020-12-12
|
|
128
|
-
|
|
139
|
+
## [0.5.0] - 2020-12-12
|
|
129
140
|
|
|
130
141
|
### Added
|
|
131
142
|
|
|
132
143
|
- dry-equalizer has been imported into dry-core as `Dry::Core::Equalizer` but the interface remains the same, which is `include Dry.Equalizer(...)` - we'll be porting all other gems that depend on dry-equalizer to the latest dry-core with equalizer included *gradually*. Eventually dry-equalizer usage will be gone completely in rom-rb/dry-rb/hanami projects (@solnic)
|
|
133
144
|
|
|
145
|
+
[0.5.0]: https://github.com/dry-rb/dry-core/compare/v0.4.10...v0.5.0
|
|
134
146
|
|
|
135
|
-
[
|
|
136
|
-
|
|
137
|
-
## 0.4.10 2020-11-19
|
|
138
|
-
|
|
147
|
+
## [0.4.10] - 2020-11-19
|
|
139
148
|
|
|
140
149
|
### Added
|
|
141
150
|
|
|
@@ -153,11 +162,9 @@ defines :nodes, coerce: Dry::Types['coercible.integer']
|
|
|
153
162
|
```
|
|
154
163
|
- `Constants::IDENTITY` which is the identity function (flash-gordon)
|
|
155
164
|
|
|
165
|
+
[0.4.10]: https://github.com/dry-rb/dry-core/compare/v0.4.9...v0.4.10
|
|
156
166
|
|
|
157
|
-
[
|
|
158
|
-
|
|
159
|
-
## 0.4.9 2019-08-09
|
|
160
|
-
|
|
167
|
+
## [0.4.9] - 2019-08-09
|
|
161
168
|
|
|
162
169
|
### Added
|
|
163
170
|
|
|
@@ -171,11 +178,9 @@ defines :nodes, coerce: Dry::Types['coercible.integer']
|
|
|
171
178
|
|
|
172
179
|
- `Undefined.{dup,clone}` returns `Undefined` back, `Undefined` is a singleton (flash-gordon)
|
|
173
180
|
|
|
181
|
+
[0.4.9]: https://github.com/dry-rb/dry-core/compare/v0.4.8...v0.4.9
|
|
174
182
|
|
|
175
|
-
[
|
|
176
|
-
|
|
177
|
-
## 0.4.8 2019-06-23
|
|
178
|
-
|
|
183
|
+
## [0.4.8] - 2019-06-23
|
|
179
184
|
|
|
180
185
|
### Added
|
|
181
186
|
|
|
@@ -189,80 +194,66 @@ defines :nodes, coerce: Dry::Types['coercible.integer']
|
|
|
189
194
|
Undefined.map(something) { |v| v + 1 } # => Undefined
|
|
190
195
|
```
|
|
191
196
|
|
|
197
|
+
[0.4.8]: https://github.com/dry-rb/dry-core/compare/v0.4.7...v0.4.8
|
|
192
198
|
|
|
193
|
-
[
|
|
194
|
-
|
|
195
|
-
## 0.4.7 2018-06-25
|
|
196
|
-
|
|
199
|
+
## [0.4.7] - 2018-06-25
|
|
197
200
|
|
|
198
201
|
### Fixed
|
|
199
202
|
|
|
200
203
|
- Fix default logger for deprecations, it now uses `$stderr` by default, as it should (flash-gordon)
|
|
201
204
|
|
|
205
|
+
[0.4.7]: https://github.com/dry-rb/dry-core/compare/v0.4.6...v0.4.7
|
|
202
206
|
|
|
203
|
-
[
|
|
204
|
-
|
|
205
|
-
## 0.4.6 2018-05-15
|
|
206
|
-
|
|
207
|
+
## [0.4.6] - 2018-05-15
|
|
207
208
|
|
|
208
209
|
### Changed
|
|
209
210
|
|
|
210
211
|
- Trigger constant autoloading in the class builder (radar)
|
|
211
212
|
|
|
212
|
-
[
|
|
213
|
-
|
|
214
|
-
## 0.4.5 2018-03-14
|
|
213
|
+
[0.4.6]: https://github.com/dry-rb/dry-core/compare/v0.4.5...v0.4.6
|
|
215
214
|
|
|
215
|
+
## [0.4.5] - 2018-03-14
|
|
216
216
|
|
|
217
217
|
### Added
|
|
218
218
|
|
|
219
219
|
- `Dry::Core::Memoizable`, which provides a `memoize` macro for memoizing results of instance methods (timriley)
|
|
220
220
|
|
|
221
|
+
[0.4.5]: https://github.com/dry-rb/dry-core/compare/v0.4.4...v0.4.5
|
|
221
222
|
|
|
222
|
-
[
|
|
223
|
-
|
|
224
|
-
## 0.4.4 2018-02-10
|
|
225
|
-
|
|
223
|
+
## [0.4.4] - 2018-02-10
|
|
226
224
|
|
|
227
225
|
### Added
|
|
228
226
|
|
|
229
227
|
- `deprecate_constant` overrides `Module#deprecate_constant` and issues a labeled message on accessing a deprecated constant (flash-gordon)
|
|
230
228
|
- `Undefined.default` which accepts two arguments and returns the first if it's not `Undefined`; otherwise, returns the second one or yields a block (flash-gordon)
|
|
231
229
|
|
|
230
|
+
[0.4.4]: https://github.com/dry-rb/dry-core/compare/v0.4.3...v0.4.4
|
|
232
231
|
|
|
233
|
-
[
|
|
234
|
-
|
|
235
|
-
## 0.4.3 2018-02-03
|
|
236
|
-
|
|
232
|
+
## [0.4.3] - 2018-02-03
|
|
237
233
|
|
|
238
234
|
### Added
|
|
239
235
|
|
|
240
236
|
- `Dry::Core::DescendantsTracker` which is a maintained version of the [`descendants_tracker`](https://github.com/dkubb/descendants_tracker) gem (flash-gordon)
|
|
241
237
|
|
|
238
|
+
[0.4.3]: https://github.com/dry-rb/dry-core/compare/v0.4.2...v0.4.3
|
|
242
239
|
|
|
243
|
-
[
|
|
244
|
-
|
|
245
|
-
## 0.4.2 2017-12-16
|
|
246
|
-
|
|
240
|
+
## [0.4.2] - 2017-12-16
|
|
247
241
|
|
|
248
242
|
### Fixed
|
|
249
243
|
|
|
250
244
|
- Class attributes now support private setters/getters (flash-gordon)
|
|
251
245
|
|
|
246
|
+
[0.4.2]: https://github.com/dry-rb/dry-core/compare/v0.4.1...v0.4.2
|
|
252
247
|
|
|
253
|
-
[
|
|
254
|
-
|
|
255
|
-
## 0.4.1 2017-11-04
|
|
256
|
-
|
|
248
|
+
## [0.4.1] - 2017-11-04
|
|
257
249
|
|
|
258
250
|
### Changed
|
|
259
251
|
|
|
260
252
|
- Improved error message on invalid attribute value (GustavoCaso)
|
|
261
253
|
|
|
262
|
-
[
|
|
263
|
-
|
|
264
|
-
## 0.4.0 2017-11-02
|
|
254
|
+
[0.4.1]: https://github.com/dry-rb/dry-core/compare/v0.4.0...v0.4.1
|
|
265
255
|
|
|
256
|
+
## [0.4.0] - 2017-11-02
|
|
266
257
|
|
|
267
258
|
### Added
|
|
268
259
|
|
|
@@ -277,104 +268,84 @@ defines :nodes, coerce: Dry::Types['coercible.integer']
|
|
|
277
268
|
end
|
|
278
269
|
```
|
|
279
270
|
|
|
271
|
+
[0.4.0]: https://github.com/dry-rb/dry-core/compare/v0.3.4...v0.4.0
|
|
280
272
|
|
|
281
|
-
[
|
|
282
|
-
|
|
283
|
-
## 0.3.4 2017-09-29
|
|
284
|
-
|
|
273
|
+
## [0.3.4] - 2017-09-29
|
|
285
274
|
|
|
286
275
|
### Fixed
|
|
287
276
|
|
|
288
277
|
- `Deprecations` output is set to `$stderr` by default now (solnic)
|
|
289
278
|
|
|
279
|
+
[0.3.4]: https://github.com/dry-rb/dry-core/compare/v0.3.3...v0.3.4
|
|
290
280
|
|
|
291
|
-
[
|
|
292
|
-
|
|
293
|
-
## 0.3.3 2017-08-31
|
|
294
|
-
|
|
281
|
+
## [0.3.3] - 2017-08-31
|
|
295
282
|
|
|
296
283
|
### Fixed
|
|
297
284
|
|
|
298
285
|
- The Deprecations module now shows the right caller line (flash-gordon)
|
|
299
286
|
|
|
287
|
+
[0.3.3]: https://github.com/dry-rb/dry-core/compare/v0.3.2...v0.3.3
|
|
300
288
|
|
|
301
|
-
[
|
|
302
|
-
|
|
303
|
-
## 0.3.2 2017-08-31
|
|
304
|
-
|
|
289
|
+
## [0.3.2] - 2017-08-31
|
|
305
290
|
|
|
306
291
|
### Added
|
|
307
292
|
|
|
308
293
|
- Accept an existing logger object in `Dry::Core::Deprecations.set_logger!` (flash-gordon)
|
|
309
294
|
|
|
295
|
+
[0.3.2]: https://github.com/dry-rb/dry-core/compare/v0.3.1...v0.3.2
|
|
310
296
|
|
|
311
|
-
[
|
|
312
|
-
|
|
313
|
-
## 0.3.1 2017-05-27
|
|
314
|
-
|
|
297
|
+
## [0.3.1] - 2017-05-27
|
|
315
298
|
|
|
316
299
|
### Added
|
|
317
300
|
|
|
318
301
|
- Support for building classes within an existing namespace (flash-gordon)
|
|
319
302
|
|
|
303
|
+
[0.3.1]: https://github.com/dry-rb/dry-core/compare/v0.3.0...v0.3.1
|
|
320
304
|
|
|
321
|
-
[
|
|
322
|
-
|
|
323
|
-
## 0.3.0 2017-05-05
|
|
324
|
-
|
|
305
|
+
## [0.3.0] - 2017-05-05
|
|
325
306
|
|
|
326
307
|
### Changed
|
|
327
308
|
|
|
328
309
|
- Class attributes are initialized _before_ running the `inherited` hook. It's slightly more convenient behavior and it's very unlikely anyone will be affected by this, but technically this is a breaking change (flash-gordon)
|
|
329
310
|
|
|
330
|
-
[
|
|
331
|
-
|
|
332
|
-
## 0.2.4 2017-01-26
|
|
311
|
+
[0.3.0]: https://github.com/dry-rb/dry-core/compare/v0.2.4...v0.3.0
|
|
333
312
|
|
|
313
|
+
## [0.2.4] - 2017-01-26
|
|
334
314
|
|
|
335
315
|
### Fixed
|
|
336
316
|
|
|
337
317
|
- Do not require deprecated method to be defined (flash-gordon)
|
|
338
318
|
|
|
319
|
+
[0.2.4]: https://github.com/dry-rb/dry-core/compare/v0.2.3...v0.2.4
|
|
339
320
|
|
|
340
|
-
[
|
|
341
|
-
|
|
342
|
-
## 0.2.3 2016-12-30
|
|
343
|
-
|
|
321
|
+
## [0.2.3] - 2016-12-30
|
|
344
322
|
|
|
345
323
|
### Fixed
|
|
346
324
|
|
|
347
325
|
- Fix warnings on using uninitialized class attributes (flash-gordon)
|
|
348
326
|
|
|
327
|
+
[0.2.3]: https://github.com/dry-rb/dry-core/compare/v0.2.2...v0.2.3
|
|
349
328
|
|
|
350
|
-
[
|
|
351
|
-
|
|
352
|
-
## 0.2.2 2016-12-30
|
|
353
|
-
|
|
329
|
+
## [0.2.2] - 2016-12-30
|
|
354
330
|
|
|
355
331
|
### Added
|
|
356
332
|
|
|
357
333
|
- `ClassAttributes` which provides `defines` method for defining get-or-set methods (flash-gordon)
|
|
358
334
|
|
|
335
|
+
[0.2.2]: https://github.com/dry-rb/dry-core/compare/v0.2.1...v0.2.2
|
|
359
336
|
|
|
360
|
-
[
|
|
361
|
-
|
|
362
|
-
## 0.2.1 2016-11-18
|
|
363
|
-
|
|
337
|
+
## [0.2.1] - 2016-11-18
|
|
364
338
|
|
|
365
339
|
### Added
|
|
366
340
|
|
|
367
341
|
- `Constants` are now available in nested scopes (flash-gordon)
|
|
368
342
|
|
|
343
|
+
[0.2.1]: https://github.com/dry-rb/dry-core/compare/v0.2.0...v0.2.1
|
|
369
344
|
|
|
370
|
-
[
|
|
371
|
-
|
|
372
|
-
## 0.2.0 2016-11-01
|
|
373
|
-
|
|
374
|
-
|
|
345
|
+
## [0.2.0] - 2016-11-01
|
|
375
346
|
|
|
376
|
-
[
|
|
347
|
+
[0.2.0]: https://github.com/dry-rb/dry-core/compare/v0.1.0...v0.2.0
|
|
377
348
|
|
|
378
|
-
## 0.1.0 2016-09-17
|
|
349
|
+
## 0.1.0 - 2016-09-17
|
|
379
350
|
|
|
380
351
|
Initial release
|
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,22 +1,17 @@
|
|
|
1
|
-
<!---
|
|
2
|
-
|
|
1
|
+
<!--- This file is synced from hanakai-rb/repo-sync -->
|
|
2
|
+
|
|
3
|
+
[rubygem]: https://rubygems.org/gems/dry-core
|
|
3
4
|
[actions]: https://github.com/dry-rb/dry-core/actions
|
|
4
5
|
|
|
5
|
-
# dry-core [][
|
|
6
|
+
# dry-core [][rubygem] [][actions]
|
|
6
7
|
|
|
7
8
|
## Links
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
## Supported Ruby versions
|
|
14
|
-
|
|
15
|
-
This library officially supports the following Ruby versions:
|
|
16
|
-
|
|
17
|
-
* MRI `>= 3.1`
|
|
18
|
-
* jruby `>= 9.4` (not tested on CI)
|
|
10
|
+
- [User documentation](https://dry-rb.org/gems/dry-core)
|
|
11
|
+
- [API documentation](http://rubydoc.info/gems/dry-core)
|
|
12
|
+
- [Forum](https://discourse.dry-rb.org)
|
|
19
13
|
|
|
20
14
|
## License
|
|
21
15
|
|
|
22
16
|
See `LICENSE` file.
|
|
17
|
+
|
data/dry-core.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/core/version"
|
|
|
8
8
|
|
|
9
9
|
Gem::Specification.new do |spec|
|
|
10
10
|
spec.name = "dry-core"
|
|
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::Core::VERSION.dup
|
|
15
15
|
|
|
@@ -21,16 +21,21 @@ 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-core/blob/main/CHANGELOG.md"
|
|
26
|
-
spec.metadata["source_code_uri"] = "https://github.com/dry-rb/dry-core"
|
|
27
|
-
spec.metadata["bug_tracker_uri"] = "https://github.com/dry-rb/dry-core/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-core/blob/main/CHANGELOG.md"
|
|
28
|
+
spec.metadata["source_code_uri"] = "https://github.com/dry-rb/dry-core"
|
|
29
|
+
spec.metadata["bug_tracker_uri"] = "https://github.com/dry-rb/dry-core/issues"
|
|
30
|
+
spec.metadata["funding_uri"] = "https://github.com/sponsors/hanami"
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
spec.
|
|
35
|
-
spec.
|
|
32
|
+
spec.required_ruby_version = ">= 3.2"
|
|
33
|
+
|
|
34
|
+
spec.add_runtime_dependency "concurrent-ruby", "~> 1.0"
|
|
35
|
+
spec.add_runtime_dependency "logger"
|
|
36
|
+
spec.add_runtime_dependency "zeitwerk", "~> 2.6"
|
|
37
|
+
spec.add_development_dependency "bundler"
|
|
38
|
+
spec.add_development_dependency "rake"
|
|
39
|
+
spec.add_development_dependency "rspec"
|
|
36
40
|
end
|
|
41
|
+
|
|
@@ -121,18 +121,18 @@ module Dry
|
|
|
121
121
|
# @since 0.8.0
|
|
122
122
|
#
|
|
123
123
|
# @see http://ruby-doc.org/core/Object.html#method-i-respond_to-3F
|
|
124
|
-
def respond_to?(method_name, include_all = false)
|
|
124
|
+
def respond_to?(method_name, include_all = false)
|
|
125
125
|
respond_to_missing?(method_name, include_all)
|
|
126
126
|
end
|
|
127
127
|
|
|
128
128
|
private
|
|
129
129
|
|
|
130
|
-
#
|
|
130
|
+
# Can be overridden by descendants to customize respond_to? behavior
|
|
131
131
|
#
|
|
132
132
|
# @since 0.8.0
|
|
133
133
|
# @api private
|
|
134
134
|
def respond_to_missing?(_method_name, _include_all)
|
|
135
|
-
|
|
135
|
+
false
|
|
136
136
|
end
|
|
137
137
|
|
|
138
138
|
# @since 0.8.0
|
data/lib/dry/core/constants.rb
CHANGED
data/lib/dry/core/extensions.rb
CHANGED
data/lib/dry/core/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dry-core
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.2.0
|
|
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-12-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: concurrent-ruby
|
|
@@ -52,12 +52,57 @@ dependencies:
|
|
|
52
52
|
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '2.6'
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: bundler
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - ">="
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '0'
|
|
62
|
+
type: :development
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - ">="
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: '0'
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: rake
|
|
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: rspec
|
|
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'
|
|
55
97
|
description: A toolset of small support modules used throughout the dry-rb ecosystem
|
|
56
98
|
email:
|
|
57
|
-
-
|
|
99
|
+
- info@hanakai.org
|
|
58
100
|
executables: []
|
|
59
101
|
extensions: []
|
|
60
|
-
extra_rdoc_files:
|
|
102
|
+
extra_rdoc_files:
|
|
103
|
+
- README.md
|
|
104
|
+
- CHANGELOG.md
|
|
105
|
+
- LICENSE
|
|
61
106
|
files:
|
|
62
107
|
- CHANGELOG.md
|
|
63
108
|
- LICENSE
|
|
@@ -99,7 +144,7 @@ metadata:
|
|
|
99
144
|
changelog_uri: https://github.com/dry-rb/dry-core/blob/main/CHANGELOG.md
|
|
100
145
|
source_code_uri: https://github.com/dry-rb/dry-core
|
|
101
146
|
bug_tracker_uri: https://github.com/dry-rb/dry-core/issues
|
|
102
|
-
|
|
147
|
+
funding_uri: https://github.com/sponsors/hanami
|
|
103
148
|
post_install_message:
|
|
104
149
|
rdoc_options: []
|
|
105
150
|
require_paths:
|
|
@@ -108,7 +153,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
108
153
|
requirements:
|
|
109
154
|
- - ">="
|
|
110
155
|
- !ruby/object:Gem::Version
|
|
111
|
-
version: 3.
|
|
156
|
+
version: '3.2'
|
|
112
157
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
158
|
requirements:
|
|
114
159
|
- - ">="
|