dorian-parallel 1.1.1 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/parallel +3 -2
  3. metadata +34 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1358310af95a41f3977ea2553163925aaccea62287d89ddc80a4561fcb12c2c9
4
- data.tar.gz: 77fd027ef61db1b990c9da8a4a8ebe2f2af214879c58d4e99c88d4bc85e130e6
3
+ metadata.gz: d4c63005224146162c43c5ec88a66bb06dc9da40c0bd53611581915d4f59bc92
4
+ data.tar.gz: 8e0a9a5aab4ba23b05cfd59c19f34008b8449ed52536fec00daff1738bb7a763
5
5
  SHA512:
6
- metadata.gz: 7a78880c02aa58c914ebd088a6cad352a6d5e22053cb331daa071ac601ec75b9ef8dbf3d4930cee4476e55b5666d54c7e85a1f2d1905442115e6782b0f37717b
7
- data.tar.gz: 5c08037bb7ac714a5dbd888e9afbdec62ecf233b099e47b53f1aadd59e10dd19e8f9e14b99ebcd59d86cd906ddc9a1739c64126517e68fb5a84852731f3b05b0
6
+ metadata.gz: af7f3ae095a4ddb33c0275f4e999684bea40cf9b60ef00b7accb4af2076952af1f310388ab5576ae50d80ec0418ca5512f04b5a4a0f654093edd4db7c471039b
7
+ data.tar.gz: 9650e8a913a3bbe554995314a2c3ee8987548135c58117fd549396e9cf2e1582c842d486963bc70a5624f793a35a4ff3a765b2c21ec000d0b1d7e30f103a01a1
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("../../VERSION", __FILE__))
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.1.1
4
+ version: 1.2.0
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-08-24 00:00:00.000000000 Z
11
+ date: 2024-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: parallel
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-arguments
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
  - - ">="
@@ -57,9 +85,9 @@ require_paths:
57
85
  - lib
58
86
  required_ruby_version: !ruby/object:Gem::Requirement
59
87
  requirements:
60
- - - ">="
88
+ - - '='
61
89
  - !ruby/object:Gem::Version
62
- version: '0'
90
+ version: 3.3.4
63
91
  required_rubygems_version: !ruby/object:Gem::Requirement
64
92
  requirements:
65
93
  - - ">="