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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: edd4f4aa089af94042a2e8f85b178ab549fdf671811d3aeedd71eea177476f35
4
- data.tar.gz: c38db2936eb013401b01a7903a44d1946070f90512f9eb74f473f08e974f6217
3
+ metadata.gz: 7a83bf465acfb55c0bee367904a600cfe6faba2dbd915407ba572126a5617035
4
+ data.tar.gz: 25acaee0d86a24f95705fcdab7de8ef9121ffe289d0fe1cc3706b4e2fcbf2a9f
5
5
  SHA512:
6
- metadata.gz: 630bcc823bf1155ccd7215386c90f9e10493228eb322c2356cc9a8f95e421288379b4eaad69db1f8e08e5ffbaf6019326647b8f344254238d31e12a90de61962
7
- data.tar.gz: b5a67c0ec0f5fd62b225e40bfb31546b052b161f99ce1c287b0ebca0ac1d5138000e86b17fc4e0958d62e1dfab8779f63acf5e182c15d569d7d050c7c4654773
6
+ metadata.gz: 4722d4da1cb80d8366d92650f8bce4c76c460b76390d6d5b719dae79fd9ce5771f51d9ea90bc619a5d92adc7ff72151ac47c4714401d6f24c97fc126c84e7475
7
+ data.tar.gz: '0391a5b0c302773ea8b61bce20bb0b8d8060800e3a701b2a802d09235cb9cac9131d3dff869c2f2c1686971aea887fa4509dce7f88cce73f1c5243c90b47572d'
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Unity
4
4
  module DependencyContainer
5
- VERSION = '1.1.1'
5
+ VERSION = '1.1.2'
6
6
  end
7
7
  end
@@ -15,7 +15,8 @@ module Unity
15
15
  end
16
16
 
17
17
  def di(name)
18
- return di_instances[name] if !di_instances.nil? && di_instances.key?(name)
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.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-21 00:00:00.000000000 Z
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: