dorian-parallel 1.1.1 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/parallel +3 -2
- metadata +34 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b960e57b8f8e92e685760a0f5acc9c9652574ec98db047552dc312424510b3c
|
4
|
+
data.tar.gz: 0611ea464e098765627dc3777518a704544249f2b06e752ed282e16684fd8873
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e89658b4c26993831b2187e8cd2c78877f6b16e60703445b2ce0d92eee7b95a0710c30865b0d6cd7b561b6c25b4bfad3a640995822bf033667454a94873156d7
|
7
|
+
data.tar.gz: 44de0c446b33e1b59d1a9acf33d84ff69b157c2a72c5410e04da60a96bfa1f758099fcdaee3c70a5abb2d86d46db6027fac785f85c5c8538d5226388375826a6
|
data/bin/parallel
CHANGED
@@ -45,7 +45,7 @@ parsed =
|
|
45
45
|
abort parsed.help if parsed.options.help
|
46
46
|
|
47
47
|
if parsed.options.version
|
48
|
-
abort File.read(File.expand_path("
|
48
|
+
abort File.read(File.expand_path("../VERSION", __dir__))
|
49
49
|
end
|
50
50
|
|
51
51
|
input = parsed.files.map { |file| File.read(file) }.join("\n")
|
@@ -60,8 +60,9 @@ colorize = parsed.options.colorize
|
|
60
60
|
total = inputs.size
|
61
61
|
format = parsed.options.progress_format
|
62
62
|
progress = progress ? Dorian::Progress.create(total:, format:) : nil
|
63
|
+
rails = parsed.options.rails
|
63
64
|
|
64
65
|
Parallel.each(inputs) do |it|
|
65
|
-
Dorian::Eval.eval(it:, ruby:, debug:, stdout:, stderr:, colorize:)
|
66
|
+
Dorian::Eval.eval(it:, ruby:, debug:, stdout:, stderr:, colorize:, rails:)
|
66
67
|
progress&.increment
|
67
68
|
end
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dorian-parallel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dorian Marié
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: dorian-arguments
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
@@ -25,7 +25,35 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name: dorian-
|
28
|
+
name: dorian-eval
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: dorian-progress
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: parallel
|
29
57
|
requirement: !ruby/object:Gem::Requirement
|
30
58
|
requirements:
|
31
59
|
- - ">="
|
@@ -59,14 +87,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
59
87
|
requirements:
|
60
88
|
- - ">="
|
61
89
|
- !ruby/object:Gem::Version
|
62
|
-
version: '
|
90
|
+
version: '3'
|
63
91
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
64
92
|
requirements:
|
65
93
|
- - ">="
|
66
94
|
- !ruby/object:Gem::Version
|
67
95
|
version: '0'
|
68
96
|
requirements: []
|
69
|
-
rubygems_version: 3.5.
|
97
|
+
rubygems_version: 3.5.16
|
70
98
|
signing_key:
|
71
99
|
specification_version: 4
|
72
100
|
summary: evaluates some code on each line of the input in parallel
|