infusible 3.6.0 → 3.8.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 +5 -5
- 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: 5db9b0c3997fc27666b2f87b5c16556f28333c9eaf4e773932f236ed25fe2d3a
|
4
|
+
data.tar.gz: 689bfeb555ba51327d148d07c82ab59e83455d4d91cd312e48fe95005ff0290d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f59ae55fccf157809f84f978afae784f2557fec88e3b63cacdca78480124b854e68fe00b59a947f6edbdaf136a44f51804e48ef07e07dc7e33dce2284eae118d
|
7
|
+
data.tar.gz: d606b90f72f9e58f0186368a44d4b49402e1c5d3d9c2268cf47e83f708f039ea17a79eb8df4c2949d9104d0f49b90e240d5a0aed8032cf67bf40d1083acfb895
|
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.8.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.8.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-
|
38
|
+
date: 2024-06-01 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
|
@@ -96,8 +96,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
96
|
- !ruby/object:Gem::Version
|
97
97
|
version: '0'
|
98
98
|
requirements: []
|
99
|
-
rubygems_version: 3.5.
|
99
|
+
rubygems_version: 3.5.11
|
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
|