alephant-broker 2.0.2 → 2.0.3

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: 0eaf7f1fcaa9778c9c88112a3cffdcdc1de72115
4
- data.tar.gz: 14f82c42772e0c91ae2edadfa07e00821bc6dae1
3
+ metadata.gz: ba843f0d0800792867923c91cf36d56c8be39ee9
4
+ data.tar.gz: b6da0dd2fa36c5ed132f49d032d92d60c9de8bd6
5
5
  SHA512:
6
- metadata.gz: fc5ff5fe4db92a920b1f4cab1cb53856561e7e6787b8142e44791c1498d178186788194f0fb7e52e3e046123cbbefc7a76b69691225a0b01d7125ad9ec58912a
7
- data.tar.gz: 761ebd1fd85cdbf61c1dbfaeb5168ffc36aeedf6f9a26b9dacc670453233cdb3c55703dfa346b790c749352293fca971605c7a36873fde97d61ebd192cca3b83
6
+ metadata.gz: 176cb75d6319513178caff4822f04d0a58dc604461fe411dad10950ec6ee4b9d593065f11addba069cc855969a0f896347b746e4a456e6941d87f1b8baad8723
7
+ data.tar.gz: 40c78db16794c4eac11595855348cc13ec6c96b5545846ecc6061f042e4a34d20b1882a5918226a92c86cbe50a6156a3341c6edda8821f95ef6f28920645e2d2
@@ -1,5 +1,6 @@
1
1
  require 'alephant/logger'
2
2
  require 'alephant/broker/component'
3
+ require 'pmap'
3
4
 
4
5
  module Alephant
5
6
  module Broker
@@ -26,7 +27,7 @@ module Alephant
26
27
  end
27
28
 
28
29
  def components_for(env)
29
- env.data['components'].map do |c|
30
+ env.data['components'].pmap do |c|
30
31
  @component_factory.create(
31
32
  c['component'],
32
33
  batch_id,
@@ -1,5 +1,4 @@
1
1
  require 'alephant/logger'
2
- require 'pmap'
3
2
 
4
3
  module Alephant
5
4
  module Broker
@@ -27,7 +26,7 @@ module Alephant
27
26
 
28
27
  def json
29
28
  logger.info "Broker: Batch load started (#{batch_id})"
30
- result = components.pmap do |component|
29
+ result = components.map do |component|
31
30
  {
32
31
  'component' => component.id,
33
32
  'options' => component.options,
@@ -1,5 +1,5 @@
1
1
  module Alephant
2
2
  module Broker
3
- VERSION = "2.0.2"
3
+ VERSION = "2.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alephant-broker
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Jack
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-24 00:00:00.000000000 Z
11
+ date: 2014-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec