smart_ioc 0.3.1 → 0.3.2

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: 8afa36b74a66cb6082823684679f4fd9d5f974f0
4
- data.tar.gz: 715809ca8d2dcbb7020acad09ba3a6f39e4883f1
3
+ metadata.gz: 9f440eaa9c2c4bfa7c178c6dd2d77ed762cb67ab
4
+ data.tar.gz: 50a40a15cfda928ebff9d12489e5e1149b44ccf5
5
5
  SHA512:
6
- metadata.gz: 4badf8cf4a9da4a48909e7d827f1881d50c003415f50cb1d763976f4e2d8ece131c4b2b4f4860dd3338d0cf1d5bf8d41d2e5bce343f3612b0b9f4c46ba1d30f0
7
- data.tar.gz: cb8e5693a785030019776cbabf90f9d5abeeed5cb0726efb96292cb20f078ed5d9cd51bbe7edf1fd9af707890387db0328eef7efc05add950e3a279cd8f22f52
6
+ metadata.gz: 2ff9c4aa242a0e223f252331b317377742b8e848800b8011b15e71cb5f558f6664e36fcad10808500404044004e73f16cf1becca35906001cd1914b82d66ea77
7
+ data.tar.gz: a0239ffda9a42ac306d0eec4f7ddcb5764ac4207e3ce33e973e7c2e77b51e6fdc89286fb093fd3a3c1c163b4ef208edd51fb7df136e98bfff326e4d10282ce9c
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- smart_ioc (0.3.1)
4
+ smart_ioc (0.3.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -83,7 +83,7 @@ class SmartIoC::BeanFactory
83
83
  @extra_package_contexts.get_context(package)
84
84
  else
85
85
  bean_definition = autodetect_bean_definition(bean_name, package, parent_bean_package)
86
- bean_definition.context
86
+ @extra_package_contexts.get_context(bean_definition.package)
87
87
  end
88
88
  end
89
89
 
@@ -14,6 +14,10 @@ class SmartIoC::ExtraPackageContexts
14
14
  @data[package_name] = context
15
15
  end
16
16
 
17
+ def package_context(package_name)
18
+ @data[package_name]
19
+ end
20
+
17
21
  def get_context(package_name)
18
22
  @data[package_name] || SmartIoC::Container::DEFAULT_CONTEXT
19
23
  end
@@ -1,3 +1,3 @@
1
1
  module SmartIoC
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smart_ioc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruslan Gatiyatov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-03 00:00:00.000000000 Z
11
+ date: 2018-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler