dry-system 1.2.0 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 73c4548cedcd9da37980d70bf114fca9879738c1274789da138c8e43301db4db
4
- data.tar.gz: 2c7cc8974efaaea1e998a15ea6c91cc0e6af352ec6ccce530abca9e83356203f
3
+ metadata.gz: 5bfe2490a297c8a15055b59c5687a43010a16cbad255c3e2a725599e92e6511b
4
+ data.tar.gz: 74140748c45051afcf0fea5949bf22340fa24de48a0c7fd15e52bb48e2075064
5
5
  SHA512:
6
- metadata.gz: daeef02f9d5c2de8a2e66edc4474cb4ee56d0c1a0813aa967caeacb1d7cc9e0fc287667cdbb4514934599432c3ca9fa016893341dacb79fd3f56ca5b3038a1d3
7
- data.tar.gz: '0983d69ebea6f6a4f9c653ad850aee8f5b0f5215431b3d4aa2e535b10b11a9aebb68f5305939de6e67fe03bcf8f48ba0830591b116c7ece9411f525e33277f05'
6
+ metadata.gz: 87e0577c52a30753bd5ac790d041ea85332b1c0697cc080b0f8e76da7b02dc48b9b10832584b392580066e645f4440367802938919722c1ad3cad341f15981f9
7
+ data.tar.gz: 24ae404d4315f3251e35f75ff419c2bc07681a7009e7de360cb5e3af0ed7a1429c7e9077b0d398f95bc8a8e78d867d5d99d2b858cde29398175083daaa053296
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  <!--- DO NOT EDIT THIS FILE - IT'S AUTOMATICALLY GENERATED VIA DEVTOOLS --->
2
2
 
3
+ ## 1.2.2 2025-01-31
4
+
5
+
6
+ ### Fixed
7
+
8
+ - Syntax errors on 3.3.0 (@flash-gordon, see #284)
9
+
10
+
11
+ [Compare v1.2.1...v1.2.2](https://github.com/dry-rb/dry-system/compare/v1.2.1...v1.2.2)
12
+
13
+ ## 1.2.1 2025-01-08
14
+
15
+
16
+ ### Fixed
17
+
18
+ - `eager_load` was removed from `finalize!`. It was introduced with `true` by default that
19
+ wasn't the intention #281 (via #282) (@flash-gordon)
20
+
21
+
22
+ [Compare v1.2.0...v1.2.1](https://github.com/dry-rb/dry-system/compare/v1.2.0...v1.2.1)
23
+
3
24
  ## 1.2.0 2025-01-07
4
25
 
5
26
 
@@ -314,7 +314,7 @@ module Dry
314
314
  # @return [self] frozen container
315
315
  #
316
316
  # @api public
317
- def finalize!(freeze: true, eager_load: true, &)
317
+ def finalize!(freeze: true, &)
318
318
  return self if finalized?
319
319
 
320
320
  configured!
@@ -324,8 +324,6 @@ module Dry
324
324
 
325
325
  [providers, auto_registrar, manifest_registrar, importer].each(&:finalize!)
326
326
 
327
- keys.each { resolve(_1) } if eager_load
328
-
329
327
  @__finalized__ = true
330
328
 
331
329
  self.freeze if freeze
@@ -24,7 +24,7 @@ module Dry
24
24
  end
25
25
 
26
26
  # @api private
27
- def monitor(key, **options, &)
27
+ def monitor(key, **options, &block)
28
28
  notifications = self[:notifications]
29
29
 
30
30
  resolve(key).tap do |target|
@@ -32,7 +32,7 @@ module Dry
32
32
 
33
33
  if block_given?
34
34
  proxy.monitored_methods.each do |meth|
35
- notifications.subscribe(:monitoring, target: key, method: meth, &)
35
+ notifications.subscribe(:monitoring, target: key, method: meth, &block)
36
36
  end
37
37
  end
38
38
 
@@ -37,7 +37,7 @@ module Dry
37
37
  # @see Dry::System::Provider::SourceDSL
38
38
  #
39
39
  # @api private
40
- def for(name:, group: nil, superclass: nil, &)
40
+ def for(name:, group: nil, superclass: nil, &block)
41
41
  superclass ||= self
42
42
 
43
43
  ::Class.new(superclass) { |klass|
@@ -51,7 +51,7 @@ module Dry
51
51
  end # end
52
52
  RUBY
53
53
 
54
- SourceDSL.evaluate(klass, &) if block_given?
54
+ SourceDSL.evaluate(klass, &block) if block_given?
55
55
  }
56
56
  end
57
57
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Dry
4
4
  module System
5
- VERSION = "1.2.0"
5
+ VERSION = "1.2.2"
6
6
  end
7
7
  end
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.0
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Solnica
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-01-07 00:00:00.000000000 Z
11
+ date: 2025-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-auto_inject