multi_process 1.2.0 → 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/.github/workflows/test.yml +6 -6
- data/CHANGELOG.md +9 -1
- data/Gemfile +1 -1
- data/README.md +6 -6
- data/lib/multi_process/process.rb +4 -2
- data/lib/multi_process/version.rb +1 -1
- data/multi_process.gemspec +0 -4
- metadata +4 -40
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9fa36d18413df27da497f7b827039f6f7316aea6b4d495e7dae6f7824779347a
|
4
|
+
data.tar.gz: 8aedd68f59d4e596cf905d71214db13693eca5c8bcdbe2ba65a380ad6da8da53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e86fea763485072ed00773827421524753b11f1e3b4d117dcbd1d0d78d05db78103db141fff9d7d2f229b4e5b5655ab6a6a3d2dddea8f624c9c9ff859abe30cd
|
7
|
+
data.tar.gz: 1eda65291d33b32948db1114300928341ba783d3e1148b9a633fdd470bc96de049b3944cb8fa47bdbec74e49b1552d61f0d1cd3d61ef1ec3e7b35876d175362e
|
data/.github/workflows/test.yml
CHANGED
@@ -5,15 +5,15 @@ on: push
|
|
5
5
|
jobs:
|
6
6
|
rspec:
|
7
7
|
name: ruby-${{ matrix.ruby }}
|
8
|
-
runs-on: ubuntu-
|
8
|
+
runs-on: ubuntu-22.04
|
9
9
|
|
10
10
|
strategy:
|
11
11
|
fail-fast: false
|
12
12
|
matrix:
|
13
|
-
ruby: ["3.1", "3.0", "2.7"]
|
13
|
+
ruby: ["3.2", "3.1", "3.0", "2.7"]
|
14
14
|
|
15
15
|
steps:
|
16
|
-
- uses: actions/checkout@
|
16
|
+
- uses: actions/checkout@v4
|
17
17
|
- uses: ruby/setup-ruby@v1
|
18
18
|
with:
|
19
19
|
ruby-version: ${{ matrix.ruby }}
|
@@ -23,13 +23,13 @@ jobs:
|
|
23
23
|
|
24
24
|
rubocop:
|
25
25
|
name: rubocop
|
26
|
-
runs-on: ubuntu-
|
26
|
+
runs-on: ubuntu-22.04
|
27
27
|
|
28
28
|
steps:
|
29
|
-
- uses: actions/checkout@
|
29
|
+
- uses: actions/checkout@v4
|
30
30
|
- uses: ruby/setup-ruby@v1
|
31
31
|
with:
|
32
|
-
ruby-version: 3.
|
32
|
+
ruby-version: "3.2"
|
33
33
|
bundler-cache: True
|
34
34
|
env:
|
35
35
|
BUNDLE_JOBS: 4
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [1.2.1] - 2024-01-11
|
10
|
+
|
11
|
+
### Added
|
12
|
+
|
13
|
+
- Remove dependency on ActiveSupport by @tylerhunt (#9)
|
14
|
+
- Ruby 3.2
|
15
|
+
|
9
16
|
## [1.2.0] - 2022-06-03
|
10
17
|
|
11
18
|
### Added
|
@@ -30,7 +37,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
30
37
|
|
31
38
|
- Possible concurrent hash modification while iterating (#1)
|
32
39
|
|
33
|
-
[
|
40
|
+
[Unreleased]: https://github.com/jgraichen/multi_process/compare/v1.2.1...HEAD
|
41
|
+
[1.2.1]: https://github.com/jgraichen/multi_process/compare/v1.2.0...v1.2.1
|
34
42
|
[1.2.0]: https://github.com/jgraichen/multi_process/compare/v1.1.1...v1.2.0
|
35
43
|
[1.1.1]: https://github.com/jgraichen/multi_process/compare/v1.1.0...v1.1.1
|
36
44
|
[1.1.0]: https://github.com/jgraichen/multi_process/compare/v1.0.0...v1.1.0
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -12,14 +12,14 @@ gem 'multi_process'
|
|
12
12
|
|
13
13
|
And then execute:
|
14
14
|
|
15
|
-
```
|
16
|
-
|
15
|
+
```console
|
16
|
+
bundle
|
17
17
|
```
|
18
18
|
|
19
19
|
Or install it yourself as:
|
20
20
|
|
21
|
-
```
|
22
|
-
|
21
|
+
```console
|
22
|
+
gem install multi_process
|
23
23
|
```
|
24
24
|
|
25
25
|
## Usage
|
@@ -36,7 +36,7 @@ group.wait # Wait until finished
|
|
36
36
|
group.stop # Stop processes
|
37
37
|
```
|
38
38
|
|
39
|
-
```
|
39
|
+
```text
|
40
40
|
(23311) rubyB | Output from B
|
41
41
|
(23308) rubyA | Output from A
|
42
42
|
(23314) rubyC | Output from C
|
@@ -55,7 +55,7 @@ group.stop # Stop processes
|
|
55
55
|
|
56
56
|
## License
|
57
57
|
|
58
|
-
Copyright © 2019 Jan Graichen
|
58
|
+
Copyright © 2019-2023 Jan Graichen
|
59
59
|
|
60
60
|
This program is free software: you can redistribute it and/or modify
|
61
61
|
it under the terms of the GNU General Public License as published by
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require '
|
3
|
+
require 'forwardable'
|
4
4
|
|
5
5
|
module MultiProcess
|
6
6
|
#
|
@@ -9,6 +9,8 @@ module MultiProcess
|
|
9
9
|
# {Process} basically is just a thin wrapper around {ChildProcess}.
|
10
10
|
#
|
11
11
|
class Process
|
12
|
+
extend Forwardable
|
13
|
+
|
12
14
|
# @!group Process
|
13
15
|
|
14
16
|
# Process title used in e.g. logger
|
@@ -39,7 +41,7 @@ module MultiProcess
|
|
39
41
|
|
40
42
|
# Delegate some methods to ChildProcess.
|
41
43
|
#
|
42
|
-
delegate
|
44
|
+
delegate %i[exited? alive? crashed? exit_code pid] => :childprocess
|
43
45
|
|
44
46
|
# Wait until process finished.
|
45
47
|
#
|
data/multi_process.gemspec
CHANGED
@@ -19,12 +19,8 @@ Gem::Specification.new do |spec|
|
|
19
19
|
|
20
20
|
spec.files = `git ls-files -z`.split("\x0")
|
21
21
|
spec.executables = spec.files.grep(%r{^bin/}) {|f| File.basename(f) }
|
22
|
-
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
23
22
|
spec.require_paths = ['lib']
|
24
23
|
|
25
|
-
spec.add_runtime_dependency 'activesupport', '>= 3.1'
|
26
24
|
spec.add_runtime_dependency 'childprocess'
|
27
25
|
spec.add_runtime_dependency 'nio4r', '~> 2.0'
|
28
|
-
|
29
|
-
spec.add_development_dependency 'bundler'
|
30
26
|
end
|
metadata
CHANGED
@@ -1,29 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: multi_process
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Graichen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: activesupport
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '3.1'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '3.1'
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: childprocess
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,20 +38,6 @@ dependencies:
|
|
52
38
|
- - "~>"
|
53
39
|
- !ruby/object:Gem::Version
|
54
40
|
version: '2.0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: bundler
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
41
|
description: Handle multiple child processes.
|
70
42
|
email:
|
71
43
|
- jg@altimos.de
|
@@ -124,16 +96,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
96
|
- !ruby/object:Gem::Version
|
125
97
|
version: '0'
|
126
98
|
requirements: []
|
127
|
-
rubygems_version: 3.
|
99
|
+
rubygems_version: 3.4.22
|
128
100
|
signing_key:
|
129
101
|
specification_version: 4
|
130
102
|
summary: Handle multiple child processes.
|
131
|
-
test_files:
|
132
|
-
- spec/files/env.rb
|
133
|
-
- spec/files/fail.rb
|
134
|
-
- spec/files/sleep.rb
|
135
|
-
- spec/files/test.rb
|
136
|
-
- spec/multi_process/group_spec.rb
|
137
|
-
- spec/multi_process/process_spec.rb
|
138
|
-
- spec/multi_process_spec.rb
|
139
|
-
- spec/spec_helper.rb
|
103
|
+
test_files: []
|