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 +4 -4
- data/lib/peplum/john/application/payload.rb +1 -20
- data/lib/peplum/john/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92051ee7cf724c42df3d3d3729553f78989b943dc955da3b6d9d94b19f6826cb
|
4
|
+
data.tar.gz: 81ea1be25a3943bce5832349a12d1690c7483e56d635536e4d743c153163653e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/peplum/john/version.rb
CHANGED