dependency_injection 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +2 -2
- data/lib/dependency_injection/definition.rb +2 -2
- data/lib/dependency_injection/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5e38615ec92915c1139c21c872c415d3b0f4d38
|
4
|
+
data.tar.gz: 93f1abdcbafaf1855bd4893468e86ff522138375
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3c31ea0bf518b500e740cf95430cd1b718873c7b96d9b9a1506ddd5e890ef0f53ec5cdd898af4d9db7bb8d74c89f9d8169b0b7553af7afb08db6809e8289666
|
7
|
+
data.tar.gz: 9e90dce2f4f150a389251e67f4c632f34cf76b8682da4cbc9e6017aed7ddbae6023b33c2b1cc9556dc956a79b7700f5ff1087571f6eb66443b7424d470cdd799
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
dependency_injection (0.4.
|
4
|
+
dependency_injection (0.4.3)
|
5
5
|
activesupport
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activesupport (3.2.
|
10
|
+
activesupport (3.2.17)
|
11
11
|
i18n (~> 0.6, >= 0.6.4)
|
12
12
|
multi_json (~> 1.0)
|
13
13
|
colorize (0.5.8)
|
@@ -90,7 +90,7 @@ module DependencyInjection
|
|
90
90
|
def resolve_container_parameters(argument)
|
91
91
|
if argument.kind_of?(Array)
|
92
92
|
argument.map { |arg| resolve(arg) }
|
93
|
-
elsif /^%(?<parameter_name>.*)%$/ =~ argument
|
93
|
+
elsif /^%(?<parameter_name>.*)%$/ =~ argument.to_s
|
94
94
|
@container.parameters[parameter_name]
|
95
95
|
else
|
96
96
|
argument
|
@@ -100,7 +100,7 @@ module DependencyInjection
|
|
100
100
|
def resolve_references(argument)
|
101
101
|
if argument.kind_of?(Array)
|
102
102
|
argument.map { |arg| resolve(arg) }
|
103
|
-
elsif /^@(?<reference_name>.*)/ =~ argument
|
103
|
+
elsif /^@(?<reference_name>.*)/ =~ argument.to_s
|
104
104
|
reference_definition = @container.find(reference_name)
|
105
105
|
reference = reference_definition.object
|
106
106
|
raise ScopeWideningInjectionError if reference_definition.scope == :prototype && scope == :container
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dependency_injection
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Disneur
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|