smart_ioc 0.1.23 → 0.1.24

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: 2cada3041d79cc078eda3cf08e8e54d0e5cf9c5b
4
- data.tar.gz: f5ddaef04a1bdc97286501c4e66892e90a56a325
3
+ metadata.gz: fe545eaedb9fcf8e79eb588a1ae17a8c4c0715b4
4
+ data.tar.gz: 4a5346a0354dd07c85ab0e8f0acc24d08e986000
5
5
  SHA512:
6
- metadata.gz: e07e1777d3866634ab0d2f4d847d9b73279ffa918ccf1d0bd7293d5cd4bcf7010b29b570ece63f36aff4fc364721a7595d53a1a33732554c9a9c88adab6c94a9
7
- data.tar.gz: 98219fd6eab79278f393457320a131180618d358cf33230e05670344cad8957ec4849490ec370752069186d42c0f066d22b858aaa9c9e8f48a6fa29ec92128f8
6
+ metadata.gz: 67408406b25290d15c3b09e04279b1c48ece7ac8c579f3464f91864003c30db073b0ed0941c4531f768e3c3ce31325f0d37276da992cd5acbbcc584d865122e0
7
+ data.tar.gz: 3e4da384c7d5ab400faf863eb6f7921da529626265f25544a5243303cfcfd5e6a0122162d54a98791d46c75bef37450cce13f1ff40b09770f4e9723bf8844905
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- smart_ioc (0.1.23)
4
+ smart_ioc (0.1.24)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -65,14 +65,14 @@ Existing bean details:
65
65
  # @bean_name [Symbol] bean name
66
66
  # @package [Symbol, nil] package name
67
67
  # @context [Symbol, nil] context
68
- # @raises Errors::AmbiguousBeanDefinition if multiple bean definitions are found
68
+ # @raises AmbiguousBeanDefinition if multiple bean definitions are found
69
69
  def find(bean_name, package = nil, context = nil)
70
70
  bds = filter_by_with_drop_to_default_context(bean_name, package, context)
71
71
 
72
72
  if bds.size > 1
73
- raise Errors::AmbiguousBeanDefinition.new(bean_name, bds)
73
+ raise AmbiguousBeanDefinition.new(bean_name, bds)
74
74
  elsif bds.size == 0
75
- raise Errors::BeanNotFound.new(bean_name)
75
+ raise BeanNotFound.new(bean_name)
76
76
  end
77
77
 
78
78
  bds.first
@@ -1,3 +1,3 @@
1
1
  module SmartIoC
2
- VERSION = "0.1.23"
2
+ VERSION = "0.1.24"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smart_ioc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.23
4
+ version: 0.1.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruslan Gatiyatov