scorpion-ioc 0.5.5 → 0.5.6

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: 6720dc02b6c96c93c8bf7a1d343cf382b65f18f2
4
- data.tar.gz: 86b85c4f95298bad0bada13ecf453abadfdd9aa2
3
+ metadata.gz: af54a49895a5c2d423c63f900fc9265fcabd8e72
4
+ data.tar.gz: c4796fd330005378b5017dfd6e743a485d95c41d
5
5
  SHA512:
6
- metadata.gz: 085236298b580ad84cfd64290f64124585e16dd5ab3c1c408bf8dd36b6a2a15a86683c2176bf867f95b0a98777025ec20cef7237a798d9287c046ec913995cac
7
- data.tar.gz: ad76e51c4aaae9614db79361b7ce65ec4ea40cb99b4d108e2ac699a7728dade03828b185b27489068a93ba9fbc069e8bc95d4e303a278d5d2d243153ac9ba025
6
+ metadata.gz: d09cce9712eab697098ee65559ace05c554cccc40d259d10d0116ed7d7719981f56d6b60ce2b8d914df8a96c02e47136338d2d18528ab3a32fddcabd82cb1c99
7
+ data.tar.gz: 70df5b00bd327804f33b09a3b82887fa435c097e85d13059e52f01fca0106723a29682edb702ad872db565aad2aec1e11c58de6a07be2c202724271472545c09
data/lib/scorpion.rb CHANGED
@@ -124,10 +124,7 @@ module Scorpion
124
124
  # @param [Boolean] reset true to free all existing resource and initialize a
125
125
  # new scorpion.
126
126
  def self.prepare( reset = false, &block )
127
- if reset
128
- @instance.destroy
129
- @instance = Scorpion::Hunter.new
130
- end
127
+ @instance.reset if reset
131
128
  instance.prepare &block
132
129
  end
133
130
 
@@ -127,7 +127,6 @@ module Scorpion
127
127
 
128
128
  # Remove all dependency mappings.
129
129
  def reset
130
-
131
130
  @dependency_set.each &:release if @dependency_set
132
131
  @shared_dependency_set.each &:release if @shared_dependency_set
133
132
 
@@ -20,7 +20,7 @@ module Scorpion
20
20
  # @!endgroup Attributes
21
21
 
22
22
  def initialize( parent = nil, &block )
23
- @parent = parent
23
+ @parent = parent
24
24
  @dependency_map = Scorpion::DependencyMap.new( self )
25
25
 
26
26
  prepare &block if block_given?
@@ -1,5 +1,5 @@
1
1
  module Scorpion
2
- VERSION_NUMBER = "0.5.5"
2
+ VERSION_NUMBER = "0.5.6"
3
3
  VERSION_SUFFIX = ""
4
4
  VERSION = "#{VERSION_NUMBER}#{VERSION_SUFFIX}"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scorpion-ioc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Alexander