aux 0.0.5 → 0.0.6

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: 4b5ace631919c60e6e5204bfb33dad68a6b8583c98d26206b613811b15b2fe29
4
- data.tar.gz: 77bb7c2c22c97181fc1e5d10ecf77dba3296f0b188c38ede324d221777613f02
3
+ metadata.gz: d0c47e51ed8f76e2c4b53518b0a37bf34f23a2a12efd94566305e5846631c7e8
4
+ data.tar.gz: 7d23cb0e9ff25b42ef6c133247935aeecb3bc9695c29af26eb3822f678a97d63
5
5
  SHA512:
6
- metadata.gz: 7edf473b2d627ca0fb4c9f16197177eb3de5d98a042b269097d1f5317e440dac298cac592aede48e8ecf42855f9bb78c86887f0611fee770f5fb164bf871b164
7
- data.tar.gz: 2aa2ffbe10186145ce53a5e54a9759169883d789c618575798eba40f056cc4107add3abc942ce105280a5feef7ef9befe93f326d05764b75d558aa9149489d91
6
+ metadata.gz: af7b280395768002b12f8bb5219ccf51eae327650f095f5ebcd7cf6b4ae5b9421433feecc63f1cf1f6964df4532011651517ecdb8a71d35ad0f085d0ea7b72a6
7
+ data.tar.gz: 6fa52c6ab74433978848a9b89b49450fd321dcf1c32487c960505e487940bc32b07526b52b9bc253cd4442e4b4e4d3d8bc024cce1be31ab5d35118fd57921b3a
@@ -6,7 +6,7 @@ module Aux
6
6
  module ClassMethods
7
7
  # @param dependencies [Hash{Symbol => Object}]
8
8
  def new(**dependencies)
9
- instance = allocate
9
+ instance = super || allocate
10
10
 
11
11
  # Configure dependencies that come from the registry
12
12
  @_dependencies.each do |name, dependency|
@@ -18,9 +18,6 @@ module Aux
18
18
  instance.instance_variable_set("@#{name}", dependency) if @_dependencies.include?(name)
19
19
  end
20
20
 
21
- # Run the rest of customized initialization procedure
22
- instance.send(:initialize, **dependencies)
23
-
24
21
  instance
25
22
  end
26
23
 
@@ -73,6 +70,7 @@ module Aux
73
70
  private dependency_alias
74
71
  end
75
72
  end
73
+
76
74
  # rubocop:enable Metrics/AbcSize, Metrics/MethodLength
77
75
  end
78
76
  end
data/lib/aux/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Aux
4
- VERSION = '0.0.5'
4
+ VERSION = '0.0.6'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aux
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evgeny Boyko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-05 00:00:00.000000000 Z
11
+ date: 2023-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel