peplum-john 0.2.2 → 0.2.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
  SHA256:
3
- metadata.gz: f14dd32ae9417ae6a13bc1343fa0eb530facc0ef42b1a72288e80198ea229a9b
4
- data.tar.gz: '0882f77f99ce3f5ea1551c0a80a1873c5225e630c96e2a7e55109efb379972cf'
3
+ metadata.gz: 92051ee7cf724c42df3d3d3729553f78989b943dc955da3b6d9d94b19f6826cb
4
+ data.tar.gz: 81ea1be25a3943bce5832349a12d1690c7483e56d635536e4d743c153163653e
5
5
  SHA512:
6
- metadata.gz: 7febba6d06ad2ead542a9a385e4a6c492e444bde62f970eb43ca60b20ec526d3815fe969354200b2c1dc3440b39298352b425f4ad9516fce02785d834bbbc2c8
7
- data.tar.gz: 5901c23f40cc93ab786789a14de96df493a5442dd32e1ec4f5e9dcbdb6d2de231e8c68686919f94c99e31ebae8643b9340a9d0a4a8ea365ce52d88e9f611c01c
6
+ metadata.gz: 41b3618f7b9c1dccd4d584dd5a7950e44f32f3c0fc7f49cdc3f4e73591f7aab1986b64fa57c8ea7a10ed7dd0514fcc5ff9edf12546b5d3d34dc452dfcf1b7c14
7
+ data.tar.gz: c794c8bed553e1604d08c0b05eb92e64ab0c54b38bb559a228fcc57e5bfdc066e0dd25e80957c7b1b298d7d7d1fbae0174eb9f058a6a63d0f5246cdbc88dacc2
@@ -6,6 +6,7 @@ class John
6
6
  class Application
7
7
 
8
8
  module Payload
9
+ include Peplum::Application::Payload
9
10
 
10
11
  # For some reason doesn't work when specifying sane directories.
11
12
  HASHES_FILE = "hashes.#{rand(99999)}.#{Process.pid}.txt"
@@ -90,26 +91,6 @@ module Payload
90
91
  r
91
92
  end
92
93
 
93
- # Distribute `objects` into `chunks` amount of groups, one for each worker.
94
- #
95
- # @param [Array] objects All objects that need to be processed.
96
- # @param [Integer] chunks Amount of object groups that should be generated.
97
- #
98
- # @return [Array<Array<Object>>] `objects` split in `chunks` amount of groups
99
- def split( objects, chunks )
100
- objects.chunk chunks
101
- end
102
-
103
- # Merge result `data` for reporting.
104
- #
105
- # @param [Array] data Report data from workers.
106
- # @abstract
107
- def merge( data )
108
- f = data.pop
109
- data.each { |d| f.merge! d }
110
- f
111
- end
112
-
113
94
  private
114
95
 
115
96
  def executable
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Peplum
4
4
  class John
5
- VERSION = "0.2.2"
5
+ VERSION = "0.2.3"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peplum-john
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tasos Laskos