scorpion-ioc 0.5.4 → 0.5.5

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: 6428d2f5e0abe49e6c16b290662aecb892a82fe6
4
- data.tar.gz: 8f0887e737d14eba6f16783a351e234282297d5e
3
+ metadata.gz: 6720dc02b6c96c93c8bf7a1d343cf382b65f18f2
4
+ data.tar.gz: 86b85c4f95298bad0bada13ecf453abadfdd9aa2
5
5
  SHA512:
6
- metadata.gz: 20714b9c65809825c63350841a0099a7d3962eb8c40a17af38758a817ebfc924c8a1babf3d9dad03710ba188f4f942f4b749f8f840b89d90f256479d882c1244
7
- data.tar.gz: 77282f171a0e64132832256138d0844163bb9fd5c142a98f372d93a31165d67e7526984f92dfe88b354330b7a1751326e9eb6f4763b5597a00d9b3ee27475e65
6
+ metadata.gz: 085236298b580ad84cfd64290f64124585e16dd5ab3c1c408bf8dd36b6a2a15a86683c2176bf867f95b0a98777025ec20cef7237a798d9287c046ec913995cac
7
+ data.tar.gz: ad76e51c4aaae9614db79361b7ce65ec4ea40cb99b4d108e2ac699a7728dade03828b185b27489068a93ba9fbc069e8bc95d4e303a278d5d2d243153ac9ba025
data/lib/scorpion/hunt.rb CHANGED
@@ -96,7 +96,7 @@ module Scorpion
96
96
  next if object.send "#{ attr.name }?"
97
97
  next if attr.lazy?
98
98
 
99
- object.send :inject, attr, fetch_by_traits( attr.contract, attr.traits )
99
+ object.send :inject_dependency, attr, fetch_by_traits( attr.contract, attr.traits )
100
100
  end
101
101
 
102
102
  object.send :on_injected
@@ -28,7 +28,7 @@ module Scorpion
28
28
  #
29
29
  # This method is used by the {#scorpion} to feed the object. Do not call it
30
30
  # directly.
31
- def inject( attribute, dependency )
31
+ def inject_dependency( attribute, dependency )
32
32
  send "#{ attribute.name }=", dependency
33
33
  end
34
34
 
@@ -132,8 +132,6 @@ module Scorpion
132
132
  injected_attributes.define &block
133
133
  build_injected_attributes
134
134
  end
135
- alias_method :inject, :depend_on
136
- alias_method :depend_on, :depend_on
137
135
 
138
136
  # Define a single dependency and accessor.
139
137
  # @param [Symbol] name of the dependency.
@@ -1,5 +1,5 @@
1
1
  module Scorpion
2
- VERSION_NUMBER = "0.5.4"
2
+ VERSION_NUMBER = "0.5.5"
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.4
4
+ version: 0.5.5
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-04 00:00:00.000000000 Z
11
+ date: 2015-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails