aux 0.0.6 → 0.0.8
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 -3
- 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: f503f7b2c93409d49d479fae673bd7fa87a34e52f810597db2b5ea7cc74325d9
|
4
|
+
data.tar.gz: 6294d1a412b7da15c43f8959e25b7a420efa3a5d9a73cd5fe1ad899745d70a5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2e8123f2550f6da88a40f9cecbbea4b53d0a318e2f987c8b6955ef2523dce30027c53fe0313feab8c64d8cf1165e736dcdbd10e1764ec6eea7d8d7277a48601
|
7
|
+
data.tar.gz: 7374bff3510b50391575acda6f9ddd206cafe4c742619b1699e5d19728df0c63031c3f021d7286d5c4a4e0c5c60b2d126bf66a2db5d9978aeb0006ee0014668f
|
@@ -6,7 +6,7 @@ module Aux
|
|
6
6
|
module ClassMethods
|
7
7
|
# @param dependencies [Hash{Symbol => Object}]
|
8
8
|
def new(**dependencies)
|
9
|
-
instance =
|
9
|
+
instance = allocate
|
10
10
|
|
11
11
|
# Configure dependencies that come from the registry
|
12
12
|
@_dependencies.each do |name, dependency|
|
@@ -15,7 +15,7 @@ module Aux
|
|
15
15
|
|
16
16
|
# Configure dependencies that come from the customized initialization procedure
|
17
17
|
dependencies.each do |name, dependency|
|
18
|
-
instance.instance_variable_set("@#{name}", dependency)
|
18
|
+
instance.instance_variable_set("@#{name}", dependency)
|
19
19
|
end
|
20
20
|
|
21
21
|
instance
|
@@ -70,7 +70,6 @@ module Aux
|
|
70
70
|
private dependency_alias
|
71
71
|
end
|
72
72
|
end
|
73
|
-
|
74
73
|
# rubocop:enable Metrics/AbcSize, Metrics/MethodLength
|
75
74
|
end
|
76
75
|
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.8
|
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-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|