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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d0c47e51ed8f76e2c4b53518b0a37bf34f23a2a12efd94566305e5846631c7e8
4
- data.tar.gz: 7d23cb0e9ff25b42ef6c133247935aeecb3bc9695c29af26eb3822f678a97d63
3
+ metadata.gz: f503f7b2c93409d49d479fae673bd7fa87a34e52f810597db2b5ea7cc74325d9
4
+ data.tar.gz: 6294d1a412b7da15c43f8959e25b7a420efa3a5d9a73cd5fe1ad899745d70a5f
5
5
  SHA512:
6
- metadata.gz: af7b280395768002b12f8bb5219ccf51eae327650f095f5ebcd7cf6b4ae5b9421433feecc63f1cf1f6964df4532011651517ecdb8a71d35ad0f085d0ea7b72a6
7
- data.tar.gz: 6fa52c6ab74433978848a9b89b49450fd321dcf1c32487c960505e487940bc32b07526b52b9bc253cd4442e4b4e4d3d8bc024cce1be31ab5d35118fd57921b3a
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 = super || allocate
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) if @_dependencies.include?(name)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Aux
4
- VERSION = '0.0.6'
4
+ VERSION = '0.0.8'
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.6
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-10 00:00:00.000000000 Z
11
+ date: 2023-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel