enparallel-bin 1.0.11 → 1.1.0
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/enparallel/cli.rb +10 -11
- data/lib/enparallel/version.rb +1 -1
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da276300e1d6f9f8032900aa39fffe908c0ae7216104aef86ab108a38dea4743
|
4
|
+
data.tar.gz: 8f9872dc3f9fe4b78c5780161d774c88afaa1c7e9a5ed195703e6a926bf8b3bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43b126fcc30124203115f75f2031b76b3e95b7a90a1ede3539c63ff541acde71aa1178344f43fa896fc9657dd984cd09e0706b2c47eba28532f44949c6d4c20b
|
7
|
+
data.tar.gz: 0671df6a324d30c6fec5b351e7136e881244793a25a91299a8f420c481d04edf588fe31f6a1c1ea54d80d54c098d045f067f658894bebbdbe424d0db7a0ebf47
|
data/lib/enparallel/cli.rb
CHANGED
@@ -24,18 +24,18 @@ module Enparallel
|
|
24
24
|
new(opts, stdin)
|
25
25
|
end
|
26
26
|
|
27
|
-
def self.
|
28
|
-
File.basename($
|
27
|
+
def self.program_name
|
28
|
+
File.basename($PROGRAM_NAME)
|
29
29
|
end
|
30
30
|
|
31
31
|
def self.usage
|
32
32
|
<<~EOF
|
33
33
|
Usage:
|
34
|
-
#{
|
35
|
-
#{
|
34
|
+
#{program_name} [options] [--] <command>...
|
35
|
+
#{program_name} --version
|
36
36
|
|
37
37
|
Description:
|
38
|
-
#{
|
38
|
+
#{program_name} operates by reading lines from standard input, and executing
|
39
39
|
<command> once per entry, in parallel.
|
40
40
|
|
41
41
|
The placeholder "{}", if present, is replaced with each line of input in turn.
|
@@ -50,14 +50,13 @@ module Enparallel
|
|
50
50
|
seq 1 10 | enparallel -- bash -c "sleep {} && echo Slept for {}"
|
51
51
|
|
52
52
|
Options:
|
53
|
-
-w, --workers <n> Batch into a pool of <n> workers [default: #{workers_default}]
|
54
|
-
-p, --pick <type> Task-picking rule (see "Types") [default: #{pick_default}]
|
55
|
-
-v, --version
|
56
|
-
-h, --help Help.
|
53
|
+
-w, --workers <n> Batch into a pool of <n> workers [default: #{workers_default}]
|
54
|
+
-p, --pick <type> Task-picking rule (see "Types") [default: #{pick_default}]
|
55
|
+
-v, --version Show version
|
57
56
|
|
58
57
|
Types:
|
59
|
-
sequential The order in which the tasks were queued
|
60
|
-
random Random order
|
58
|
+
sequential The order in which the tasks were queued
|
59
|
+
random Random order
|
61
60
|
EOF
|
62
61
|
end
|
63
62
|
|
data/lib/enparallel/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enparallel-bin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- crdx
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 0.6.1
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: json
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.7'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.7'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: require_all
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,7 +142,7 @@ files:
|
|
128
142
|
- lib/enparallel/version.rb
|
129
143
|
homepage: https://github.com/crdx/enparallel
|
130
144
|
licenses:
|
131
|
-
-
|
145
|
+
- GPLv3
|
132
146
|
metadata:
|
133
147
|
rubygems_mfa_required: 'true'
|
134
148
|
post_install_message:
|
@@ -146,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
146
160
|
- !ruby/object:Gem::Version
|
147
161
|
version: '0'
|
148
162
|
requirements: []
|
149
|
-
rubygems_version: 3.
|
163
|
+
rubygems_version: 3.3.25
|
150
164
|
signing_key:
|
151
165
|
specification_version: 4
|
152
166
|
summary: Parallel command runner with a colourful overview
|