peplum-john 0.2.1 → 0.2.3

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: 443f44c20876e1a8e0bb745fe6341a151851ce937e94c9f2c4e6a68d0bfc2197
4
- data.tar.gz: 4c2ee91c1042307d95d927bcb6881d08714ef4326b80009ad61261e61c623d53
3
+ metadata.gz: 92051ee7cf724c42df3d3d3729553f78989b943dc955da3b6d9d94b19f6826cb
4
+ data.tar.gz: 81ea1be25a3943bce5832349a12d1690c7483e56d635536e4d743c153163653e
5
5
  SHA512:
6
- metadata.gz: c41fe68bac34af8e86831a28a93722dfe5f4f024872d602779af0bd32f5c3ccfa38f74980d939581be70946d2e4ab4aa72c2dcb5235ebca48edfbe96b07975f6
7
- data.tar.gz: f629deee6ef6b5d03d632acd5026389dbfafac11ec36509ce68f79c94579588c7440a4af68968d44327b6c6334cc1efe120c57df2fbffd0c5299bb11c44e014d
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,27 +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
- # @abstract
100
- def group( objects, chunks )
101
- objects.chunk chunks
102
- end
103
-
104
- # Merge result `data` for reporting.
105
- #
106
- # @param [Array] data Report data from workers.
107
- # @abstract
108
- def merge( data )
109
- f = data.pop
110
- data.each { |d| f.merge! d }
111
- f
112
- end
113
-
114
94
  private
115
95
 
116
96
  def executable
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Peplum
4
4
  class John
5
- VERSION = "0.2.1"
5
+ VERSION = "0.2.3"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peplum-john
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.3
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: peplum