infusible 3.6.0 → 3.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/infusible.gemspec +2 -2
- data/lib/infusible/actuator.rb +1 -1
- data/lib/infusible/{constructor.rb → builder.rb} +4 -2
- data/lib/infusible.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +4 -4
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ce1cb2510baeb0f069a6bff2ea8929ef09042e001f2cf24ba1147aef8089c62
|
4
|
+
data.tar.gz: 928bf12e9989a04b2517b3c30d784299a9e5ae63ca43e5a6a1ba3daae5c12a0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b096bfd86501ed206c73ab70b38ade9f9521016b14a9c19058f41344999870fd3629572c4358246c4b5e1a2cf924ea57a5591839f06ca5cc8d74ce0964a1cd2
|
7
|
+
data.tar.gz: 8437cec7b71a3a0d2b59a38d8ee16aa1478888aed4783f98fa75fbc24bc64df11b0c4e4178b7dec5c42d5329a122ecf7d2e386293f17a1aba9afc8442a752978
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/infusible.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "infusible"
|
5
|
-
spec.version = "3.
|
5
|
+
spec.version = "3.7.0"
|
6
6
|
spec.authors = ["Brooke Kuhlmann"]
|
7
7
|
spec.email = ["brooke@alchemists.io"]
|
8
8
|
spec.homepage = "https://alchemists.io/projects/infusible"
|
9
|
-
spec.summary = "An
|
9
|
+
spec.summary = "An automatic dependency injector."
|
10
10
|
spec.license = "Hippocratic-2.1"
|
11
11
|
|
12
12
|
spec.metadata = {
|
data/lib/infusible/actuator.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
module Infusible
|
4
4
|
# Associates the container with the constructor for actualization.
|
5
5
|
class Actuator
|
6
|
-
def initialize container, constructor: Infusible::
|
6
|
+
def initialize container, constructor: Infusible::Builder
|
7
7
|
@container = container
|
8
8
|
@constructor = constructor
|
9
9
|
end
|
@@ -5,7 +5,7 @@ require "marameters"
|
|
5
5
|
module Infusible
|
6
6
|
# Provides the automatic and complete resolution of all injected dependencies.
|
7
7
|
# :reek:TooManyInstanceVariables
|
8
|
-
class
|
8
|
+
class Builder < Module
|
9
9
|
def self.define_instance_variables target, keys, keywords
|
10
10
|
unless target.instance_variable_defined? :@infused_keys
|
11
11
|
target.instance_variable_set :@infused_names, keys
|
@@ -28,7 +28,9 @@ module Infusible
|
|
28
28
|
@dependencies = DependencyMap.new(*configuration)
|
29
29
|
@scope = scope
|
30
30
|
@class_module = Class.new(Module).new
|
31
|
-
@instance_module = Class.new(Module).new
|
31
|
+
@instance_module = Class.new(Module).new.set_temporary_name "infusible-parent"
|
32
|
+
|
33
|
+
freeze
|
32
34
|
end
|
33
35
|
|
34
36
|
def included descendant
|
data/lib/infusible.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: infusible
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
3n5C8/6Zh9DYTkpcwPSuIfAga6wf4nXc9m6JAw8AuMLaiWN/r/2s4zJsUHYERJEu
|
36
36
|
gZGm4JqtuSg8pYjPeIJxS960owq+SfuC+jxqmRA54BisFCv/0VOJi7tiJVY=
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2024-04-
|
38
|
+
date: 2024-04-30 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: marameters
|
@@ -65,7 +65,7 @@ files:
|
|
65
65
|
- infusible.gemspec
|
66
66
|
- lib/infusible.rb
|
67
67
|
- lib/infusible/actuator.rb
|
68
|
-
- lib/infusible/
|
68
|
+
- lib/infusible/builder.rb
|
69
69
|
- lib/infusible/dependency_map.rb
|
70
70
|
- lib/infusible/errors/duplicate_dependency.rb
|
71
71
|
- lib/infusible/errors/invalid_dependency.rb
|
@@ -99,5 +99,5 @@ requirements: []
|
|
99
99
|
rubygems_version: 3.5.9
|
100
100
|
signing_key:
|
101
101
|
specification_version: 4
|
102
|
-
summary: An
|
102
|
+
summary: An automatic dependency injector.
|
103
103
|
test_files: []
|
metadata.gz.sig
CHANGED
Binary file
|