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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4f99dc573cc9c1527b47b04688ff4535369eed4669d52efa98b523fd95ff0c19
4
- data.tar.gz: 9b1abb691f026e8277c6e5a9a9a1e095b8682879d62e5f0eff6dcff60e21bf33
3
+ metadata.gz: 2ce1cb2510baeb0f069a6bff2ea8929ef09042e001f2cf24ba1147aef8089c62
4
+ data.tar.gz: 928bf12e9989a04b2517b3c30d784299a9e5ae63ca43e5a6a1ba3daae5c12a0e
5
5
  SHA512:
6
- metadata.gz: e860e15f851c44d236630445e5c14ac878d4d9d603757979d6e1da5f5bfb2e6ef5f6f996db85d62cfefb9fd05fec632244ab5d6ede21f3cd541a5b5c3abd912b
7
- data.tar.gz: 6b8718be08634a780d7b8197f2065648bed8cb01172007a3eacfba5d91261885f97126afd824ee5a72e5603ade8a985bcdcdc52d219e0f085d11616af4dd10c7
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.6.0"
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 automated dependency manager and injector."
9
+ spec.summary = "An automatic dependency injector."
10
10
  spec.license = "Hippocratic-2.1"
11
11
 
12
12
  spec.metadata = {
@@ -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::Constructor
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 Constructor < Module
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
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "infusible/actuator"
4
- require "infusible/constructor"
4
+ require "infusible/builder"
5
5
  require "infusible/dependency_map"
6
6
  require "infusible/errors/duplicate_dependency"
7
7
  require "infusible/errors/invalid_dependency"
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.6.0
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-21 00:00:00.000000000 Z
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/constructor.rb
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 automated dependency manager and injector.
102
+ summary: An automatic dependency injector.
103
103
  test_files: []
metadata.gz.sig CHANGED
Binary file