scorpion-ioc 0.5.6 → 0.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: af54a49895a5c2d423c63f900fc9265fcabd8e72
4
- data.tar.gz: c4796fd330005378b5017dfd6e743a485d95c41d
3
+ metadata.gz: 20fb20abde108448e87164053d135dd6ae49ddca
4
+ data.tar.gz: 9cc25be5d7d6249621e33ae17b911aefe2681dbd
5
5
  SHA512:
6
- metadata.gz: d09cce9712eab697098ee65559ace05c554cccc40d259d10d0116ed7d7719981f56d6b60ce2b8d914df8a96c02e47136338d2d18528ab3a32fddcabd82cb1c99
7
- data.tar.gz: 70df5b00bd327804f33b09a3b82887fa435c097e85d13059e52f01fca0106723a29682edb702ad872db565aad2aec1e11c58de6a07be2c202724271472545c09
6
+ metadata.gz: 487fdc77e46bc56ad23937ae07f6e019d3889c19851f0c75a8ff2198c9064a08dec11da04f8815131d5ea1857c0899325790ed0d217c59a5ccbc93408309ece5
7
+ data.tar.gz: d562f6a3e670d213e5857e8fe89481808ce9d6583764866fdbd301e9cbf9fbb254e92d356a076195847c509f69ae15096ad1d11599f7ba903bcee7d11792576e
@@ -110,11 +110,7 @@ module Scorpion
110
110
  # contract itself.
111
111
  elsif contract.respond_to?( :create ) && contract.singleton_methods( false ).include?( :create )
112
112
  Scorpion::Dependency::BuilderDependency.new( contract, traits ) do |hunt,*args,**dependencies,&block|
113
- if dependencies.present?
114
- contract.create hunt, *args, **dependencies, &block
115
- else
116
- contract.create hunt, *args, &block
117
- end
113
+ contract.create hunt, *args, **dependencies, &block
118
114
  end
119
115
  else
120
116
  dependency_class( contract ).new( contract, traits, &builder )
@@ -24,11 +24,7 @@ module Scorpion
24
24
 
25
25
  # @see Scorpion::Dependency#fetch
26
26
  def fetch( hunt )
27
- if hunt.dependencies.any?
28
- builder.call( hunt, *hunt.arguments, **hunt.dependencies, &hunt.block )
29
- else
30
- builder.call( hunt, *hunt.arguments, &hunt.block )
31
- end
27
+ builder.call( hunt, *hunt.arguments, **hunt.dependencies, &hunt.block )
32
28
  end
33
29
 
34
30
  end
@@ -1,5 +1,5 @@
1
1
  module Scorpion
2
- VERSION_NUMBER = "0.5.6"
2
+ VERSION_NUMBER = "0.5.7"
3
3
  VERSION_SUFFIX = ""
4
4
  VERSION = "#{VERSION_NUMBER}#{VERSION_SUFFIX}"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scorpion-ioc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.6
4
+ version: 0.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Alexander
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-09 00:00:00.000000000 Z
11
+ date: 2015-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails