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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eb8480e78fb38c546e3c81c90e1f6f9a1a5802e8
4
- data.tar.gz: 54d44e720653e8410c041fc1329764d6cbbc2006
3
+ metadata.gz: f5e38615ec92915c1139c21c872c415d3b0f4d38
4
+ data.tar.gz: 93f1abdcbafaf1855bd4893468e86ff522138375
5
5
  SHA512:
6
- metadata.gz: 826b68d278823ec060007d8c631443ef9d1368b5573312c241c2969622d185d8e6b4047f07f42f9cfcb7b0dd5dcc18fbe285376ade582d8e28ecd003698b9293
7
- data.tar.gz: 4aa1c43f77731c12307829b730dd0d2fd2af1a8fc344b816dd820ab24beab3d1e27ac844d2f4bb06875054b90c0a13f496619b34d37cda2bf8d573a7c440f7a0
6
+ metadata.gz: c3c31ea0bf518b500e740cf95430cd1b718873c7b96d9b9a1506ddd5e890ef0f53ec5cdd898af4d9db7bb8d74c89f9d8169b0b7553af7afb08db6809e8289666
7
+ data.tar.gz: 9e90dce2f4f150a389251e67f4c632f34cf76b8682da4cbc9e6017aed7ddbae6023b33c2b1cc9556dc956a79b7700f5ff1087571f6eb66443b7424d470cdd799
@@ -1,3 +1,7 @@
1
+ # 0.4.3 (2014-03-29)
2
+
3
+ * Fix Regex verification to be sure that the argument is a String
4
+
1
5
  # 0.4.2 (2014-03-16)
2
6
 
3
7
  * Fix an error when a service takes an arrays as parameter
@@ -1,13 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dependency_injection (0.4.2)
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.14)
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
@@ -1,3 +1,3 @@
1
1
  module DependencyInjection
2
- VERSION = '0.4.2'
2
+ VERSION = '0.4.3'
3
3
  end
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.2
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-16 00:00:00.000000000 Z
11
+ date: 2014-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport