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 +4 -4
- data/lib/aux/pluggable/class_methods.rb +2 -4
- data/lib/aux/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0c47e51ed8f76e2c4b53518b0a37bf34f23a2a12efd94566305e5846631c7e8
|
4
|
+
data.tar.gz: 7d23cb0e9ff25b42ef6c133247935aeecb3bc9695c29af26eb3822f678a97d63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
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.
|
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-
|
11
|
+
date: 2023-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|