smart_ioc 0.1.13 → 0.1.14

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: 651654180ff6efe44a53a5bf8295d0fdc2216efe
4
- data.tar.gz: 7aff613bd666008bf5f444f7aeb1b8641a8c0e0e
3
+ metadata.gz: 711973dfcc378ef2747687d59998356f9221ea1f
4
+ data.tar.gz: b452d155c41eca11c6fec9d4ecb10b49644c4081
5
5
  SHA512:
6
- metadata.gz: 53900c9682dab42dc691fa95e504a3e5f2eb67daa312532cc7a239d33bf2673118b20c9ebc6a50a5151689e04f052bd6faaa1d6bdc9374462988ecf38d51179b
7
- data.tar.gz: 1b8bc3b293360604e3b32cfe71b381f93d4e920352e482d7764faf3b50fdfdd6821134d7babe443568fada62bf7b7c6acc6f51f170f08afd385284e141b1eddc
6
+ metadata.gz: d8862d38fa0de781c29ca63295c263339be7e44582b9c076ea07411e74be9ea80aa151cb0f4f4fa98e0c5fb35e0b81026ff3b69d2e16af6ef09bdbf15cf64182
7
+ data.tar.gz: b0793c5eccf9f883ffbf2aa2fe1116e55caa74cc4ada9c564b1cf3b679bccc25038b316db7917edbbb36dd06b59e6ead4fb92da4bc856294dbf29c9c92443809
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- smart_ioc (0.1.13)
4
+ smart_ioc (0.1.14)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -101,6 +101,10 @@ class SmartIoC::BeanFactory
101
101
  raise ArgumentError, "Unable to autodetect bean :#{bean}.\nSeveral definitions were found.\n#{smart_bds.map(&:inspect).join("\n\n")}. Set package directly for injected dependency"
102
102
  end
103
103
 
104
+ if smart_bds.size == 0
105
+ raise ArgumentError, "Unable to find bean :#{bean} in any package."
106
+ end
107
+
104
108
  return smart_bds.first
105
109
  end
106
110
 
@@ -1,3 +1,3 @@
1
1
  module SmartIoC
2
- VERSION = "0.1.13"
2
+ VERSION = "0.1.14"
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.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruslan Gatiyatov