henry-container 0.1.54 → 0.1.55

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: e796d87a8aa1137e548d11d52c3543876ff84ddd
4
- data.tar.gz: 1bc7a6a5ae7a173ef6dd64e544486321b00ebee2
3
+ metadata.gz: 8ed5f635ba7153a1c77e24cbb61ff82de1fe2d81
4
+ data.tar.gz: 662b4be26b6733ed791ee65430f1e57880e63673
5
5
  SHA512:
6
- metadata.gz: 8cad7b34b433bf2ba2abace1cc6046fc010fada7208ab67f1be92f5ae1e20253554e93a5cb13c228510c73014501037e5a4b577610024cc3d4bf1990ab9c6f2d
7
- data.tar.gz: 3bed28d4123863a9ace7205ec59f5a0516e3806fca41812f23a3e09b28953851e5fe0bb56300ec376ce6654c79c79909d61389ea32473f6fb43c64a7a4597ea5
6
+ metadata.gz: 8021e81b4615c7a179792c75cb9de8e7f002e65af7e24adcabf97f96be66f5242867a61a056613a2bf0e5efed835fdddc55d75b958fa80743a7d7e6864c4fd50
7
+ data.tar.gz: 1b491467ae8cd2cb7986288690ae9cd3a6be6d3934b43ff89916b11774356b47be84e8f104520278911520bc1528abd1dfdacf08395c406c1c3bc611b3070308
@@ -3,7 +3,7 @@ module Henry
3
3
  class Container
4
4
 
5
5
  # Current Gem version
6
- VERSION = ENV['gem_version'] || '0.1.54'
6
+ VERSION = ENV['gem_version'] || '0.1.55'
7
7
 
8
8
  end
9
9
 
@@ -39,7 +39,7 @@ module Henry
39
39
  self.tasks.select {|task| task.enabled?}.each do |task|
40
40
  task_params = (params['all'] || {}).merge(params[task.name] || {})
41
41
 
42
- task.configure(task_params,self.task_extended_context(task.name))
42
+ task.configure(task_params,self.task_extended_context(task_params))
43
43
  task.export_params(task_params)
44
44
  task.export_config({output_directory:task.data.system[:output_directory]})
45
45
  task.execution.params = task_params
@@ -219,19 +219,19 @@ module Henry
219
219
  # Retrun the custom extended_context fo the given task.
220
220
  # @note default_extended_context will be used for undefined keys.
221
221
  #
222
- # @param [String] task_name the target Task name.
222
+ # @param [Hash] task_params the params of the target Task.
223
223
  # @return [Hash] the Task custom extended context.
224
- def extended_context(task_name)
225
- {}['extended_context']
224
+ def extended_context(task_params)
225
+ task_params['extended_context']
226
226
  end
227
227
 
228
228
  # Returns the custom execution_context for the given task.
229
229
  # @note default_execution_context will be used for undefined keys.
230
230
  #
231
- # @param [String] task_name the target Task name.
231
+ # @param [Hash] task_params the params of the target Task.
232
232
  # @return [Hash] the Task custom execution_context.
233
- def task_extended_context(task_name)
234
- self.default_extended_context.merge(self.extended_context(task_name) || {})
233
+ def task_extended_context(task_params)
234
+ self.default_extended_context.merge(self.extended_context(task_params) || {})
235
235
  end
236
236
 
237
237
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: henry-container
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.54
4
+ version: 0.1.55
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Decurnex
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-05 00:00:00.000000000 Z
11
+ date: 2013-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -178,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
178
178
  version: '0'
179
179
  requirements: []
180
180
  rubyforge_project:
181
- rubygems_version: 2.0.3
181
+ rubygems_version: 2.0.6
182
182
  signing_key:
183
183
  specification_version: 4
184
184
  summary: The Ruby Container for Henry