hypo 0.8.2 → 0.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hypo/container.rb +0 -5
- data/lib/hypo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ec1ae4a5a64bc063f724ebdd5ccb42b34297093
|
4
|
+
data.tar.gz: ca1eb097353af419909214c72c7bd40aaadbbc34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0eede098f99190deb1ecf72842a005915cd680a1ad7213076f80613940c9895b802aa981f5526758b22f9f5e6e404da663dcabc031c30e0516801ff3a9b273b3
|
7
|
+
data.tar.gz: 9c878248fc321e02b6b33d8d764c19fdff8a4d79fa024e5e0ac48f573a7a0c3a16a10ab929482284bcef691ca9bf92e2fb3b403fe2218824c8f2e6d1d5d6f03f
|
data/lib/hypo/container.rb
CHANGED
@@ -36,11 +36,6 @@ module Hypo
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def register_instance(item, name)
|
39
|
-
if item.is_a?(Class)
|
40
|
-
raise ContainerError, 'Using method "register_instance" you can register only an instance. ' \
|
41
|
-
'If you wanna register a type please use method "register".'
|
42
|
-
end
|
43
|
-
|
44
39
|
@mutex.synchronize do
|
45
40
|
instance = Instance.new(item, self, name)
|
46
41
|
@components[name] = instance
|
data/lib/hypo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hypo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vladimir Kalinkin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|