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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eeb29a3bdf425982108ca90f88d03e7de685e3ee
4
- data.tar.gz: 758529eb5a151b6f42d8cdc99d4886437aebaa46
3
+ metadata.gz: 2ec1ae4a5a64bc063f724ebdd5ccb42b34297093
4
+ data.tar.gz: ca1eb097353af419909214c72c7bd40aaadbbc34
5
5
  SHA512:
6
- metadata.gz: 51bfdac12ce95e82b6791d59786b98cd59811235edad08f3045a212b06246adebbb3f97b7be32799a49c29b30ca44d3ec0c3d2254ea428df3b845356559ac602
7
- data.tar.gz: 5cf5df30c587ed234fccc25e32ad773c6db5e6449d9b94f2d73d797a8137e8707f4530a39c6d3fe488efd9061ce6ae7bc14e4ddc0b5b2c6626b23182116d499c
6
+ metadata.gz: 0eede098f99190deb1ecf72842a005915cd680a1ad7213076f80613940c9895b802aa981f5526758b22f9f5e6e404da663dcabc031c30e0516801ff3a9b273b3
7
+ data.tar.gz: 9c878248fc321e02b6b33d8d764c19fdff8a4d79fa024e5e0ac48f573a7a0c3a16a10ab929482284bcef691ca9bf92e2fb3b403fe2218824c8f2e6d1d5d6f03f
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Hypo
2
- VERSION = '0.8.2'
2
+ VERSION = '0.8.3'
3
3
  end
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.2
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-26 00:00:00.000000000 Z
11
+ date: 2017-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler