peplum 0.2.7 → 0.3.0

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
  SHA256:
3
- metadata.gz: 2c2c58c0b4f8d82bb6376ca24b17b1b07585630e257f0c38717d19a02a71ce76
4
- data.tar.gz: 235f665ccb1f8c49d6a991166a55f5871556a483c3b57937d89427cf5694a2f6
3
+ metadata.gz: 39d9ce50f924ae2ba75b9722feab0a00b40d7c18bca14fdfcfe823de5672ef4b
4
+ data.tar.gz: 995a13165a99b8dde616ce02fc878876e9ede71b70016f3f08928312cd969566
5
5
  SHA512:
6
- metadata.gz: 6625f8916a0cfb646972c700d1f68cd7d97ba5fbc23f9637896190fffdce28f64c2878e2cc0c811ba37702fab63fe1fa65f0e8561203cbad420177e293e82a7c
7
- data.tar.gz: 22cf60063e6040de45ba80c3fb5cfa1930898bcd46615b6ce80bf67baa12d4b9eb30ca9d8e79c3cbdc6b635600fb29e14eadac9940cb00a144ac0c6b7cf71f22
6
+ metadata.gz: 6f5eb468b00c381da6731f52295cce1636875ad4ba19df0494f2c8957e420cd4161599f65faccec22dd3e1238e1dacc2e18242ba4ecf216e5e3cb5686fe98c8a
7
+ data.tar.gz: bf11c45c00a5a2d1f028ac028060588448a2dbc342c133bf0ab7526c8fe09585f17eb2624897231b4bc06b40199b6b6fa24c937ec43cf30e2b12a9eee933da1f
@@ -59,14 +59,14 @@ module Peplum
59
59
 
60
60
  # Implements:
61
61
  # * `.run` -- Worker; executes its payload against `objects`.
62
- # * `.group` -- Splits given `objects` into groups for each worker.
62
+ # * `.split` -- Splits given `objects` into groups for each worker.
63
63
  # * `.merge` -- Merges results from multiple workers.
64
64
  #
65
65
  # That's all we need to turn any application into a super version of itself.
66
66
  #
67
67
  # @abstract
68
68
  def payload
69
- fail Error, 'Missing payload app!'
69
+ fail Error, 'Missing #payload!'
70
70
  end
71
71
 
72
72
  def report( data )
@@ -89,7 +89,7 @@ module Peplum
89
89
  def schedule( peplum_options, payload_options )
90
90
  max_workers = peplum_options.delete('max_workers')
91
91
  objects = peplum_options.delete('objects')
92
- groups = payload.group( objects, max_workers )
92
+ groups = payload.split( objects, max_workers )
93
93
 
94
94
  # Workload turned out to be less than our maximum allowed instances.
95
95
  # Don't spawn the max if we don't have to.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Peplum
4
- VERSION = "0.2.7"
4
+ VERSION = "0.3.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peplum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tasos Laskos
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-24 00:00:00.000000000 Z
11
+ date: 2023-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cuboid