unity-dependency-container 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/unity/dependency_container/version.rb +1 -1
- data/lib/unity/dependency_container.rb +2 -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: 7a83bf465acfb55c0bee367904a600cfe6faba2dbd915407ba572126a5617035
|
4
|
+
data.tar.gz: 25acaee0d86a24f95705fcdab7de8ef9121ffe289d0fe1cc3706b4e2fcbf2a9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4722d4da1cb80d8366d92650f8bce4c76c460b76390d6d5b719dae79fd9ce5771f51d9ea90bc619a5d92adc7ff72151ac47c4714401d6f24c97fc126c84e7475
|
7
|
+
data.tar.gz: '0391a5b0c302773ea8b61bce20bb0b8d8060800e3a701b2a802d09235cb9cac9131d3dff869c2f2c1686971aea887fa4509dce7f88cce73f1c5243c90b47572d'
|
@@ -15,7 +15,8 @@ module Unity
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def di(name)
|
18
|
-
|
18
|
+
instances = Thread.current[:di_instances]
|
19
|
+
return instances[name] if !instances.nil? && instances.key?(name)
|
19
20
|
|
20
21
|
Thread.current[:di_instances] ||= {}
|
21
22
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unity-dependency-container
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- saluzafa
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-03-
|
11
|
+
date: 2022-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Extend module/class abilities to provide dependencies container/injection
|
14
14
|
email:
|