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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/smart_ioc/bean_definitions_storage.rb +3 -3
- data/lib/smart_ioc/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe545eaedb9fcf8e79eb588a1ae17a8c4c0715b4
|
4
|
+
data.tar.gz: 4a5346a0354dd07c85ab0e8f0acc24d08e986000
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67408406b25290d15c3b09e04279b1c48ece7ac8c579f3464f91864003c30db073b0ed0941c4531f768e3c3ce31325f0d37276da992cd5acbbcc584d865122e0
|
7
|
+
data.tar.gz: 3e4da384c7d5ab400faf863eb6f7921da529626265f25544a5243303cfcfd5e6a0122162d54a98791d46c75bef37450cce13f1ff40b09770f4e9723bf8844905
|
data/Gemfile.lock
CHANGED
@@ -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
|
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
|
73
|
+
raise AmbiguousBeanDefinition.new(bean_name, bds)
|
74
74
|
elsif bds.size == 0
|
75
|
-
raise
|
75
|
+
raise BeanNotFound.new(bean_name)
|
76
76
|
end
|
77
77
|
|
78
78
|
bds.first
|
data/lib/smart_ioc/version.rb
CHANGED