async-process 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/async/process/version.rb +1 -1
- metadata +19 -41
- data/.editorconfig +0 -6
- data/.gitignore +0 -12
- data/.rspec +0 -3
- data/.travis.yml +0 -19
- data/Gemfile +0 -5
- data/README.md +0 -75
- data/Rakefile +0 -6
- data/async-process.gemspec +0 -27
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 952fa23d154d27e2243793967230bd26a76c278b400028f3e26aa88079b3752b
|
4
|
+
data.tar.gz: 58d271855c877f0f8e6db743612fac87c188d1f07c3703e6a5d62c0acd46ac0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed1c7d43f0b63afa9fb16b624daa1c7df102a7aaaf84d9fb636e8dda26205d022c24c18597c10cdafaf4bb4492c564495a6768fe2b13d8d11b4677abce8226ab
|
7
|
+
data.tar.gz: 5fc867164550a1d8b67f4bca13927cedbfa62ba404e9c2cc100883262a5f0cd4bd562e194ed0460e807cc0cab0aff5eff5ba33a31d6c1887a7e76f97e96ff56a
|
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: async-process
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: async-io
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: async-rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -53,7 +53,7 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '1.1'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: bundler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
@@ -67,7 +67,7 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: covered
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
@@ -80,20 +80,6 @@ dependencies:
|
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: rake
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '11.0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '11.0'
|
97
83
|
- !ruby/object:Gem::Dependency
|
98
84
|
name: rspec
|
99
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,28 +94,20 @@ dependencies:
|
|
108
94
|
- - "~>"
|
109
95
|
- !ruby/object:Gem::Version
|
110
96
|
version: '3.0'
|
111
|
-
description:
|
97
|
+
description:
|
112
98
|
email:
|
113
|
-
- samuel.williams@oriontransfer.co.nz
|
114
99
|
executables: []
|
115
100
|
extensions: []
|
116
101
|
extra_rdoc_files: []
|
117
102
|
files:
|
118
|
-
- ".editorconfig"
|
119
|
-
- ".gitignore"
|
120
|
-
- ".rspec"
|
121
|
-
- ".travis.yml"
|
122
|
-
- Gemfile
|
123
|
-
- README.md
|
124
|
-
- Rakefile
|
125
|
-
- async-process.gemspec
|
126
103
|
- lib/async/process.rb
|
127
104
|
- lib/async/process/child.rb
|
128
105
|
- lib/async/process/version.rb
|
129
106
|
homepage: https://github.com/socketry/async-process
|
130
|
-
licenses:
|
107
|
+
licenses:
|
108
|
+
- MIT
|
131
109
|
metadata: {}
|
132
|
-
post_install_message:
|
110
|
+
post_install_message:
|
133
111
|
rdoc_options: []
|
134
112
|
require_paths:
|
135
113
|
- lib
|
@@ -144,8 +122,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
122
|
- !ruby/object:Gem::Version
|
145
123
|
version: '0'
|
146
124
|
requirements: []
|
147
|
-
rubygems_version: 3.
|
148
|
-
signing_key:
|
125
|
+
rubygems_version: 3.2.22
|
126
|
+
signing_key:
|
149
127
|
specification_version: 4
|
150
128
|
summary: Asynchronous process spawning.
|
151
129
|
test_files: []
|
data/.editorconfig
DELETED
data/.gitignore
DELETED
data/.rspec
DELETED
data/.travis.yml
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
dist: xenial
|
3
|
-
cache: bundler
|
4
|
-
|
5
|
-
matrix:
|
6
|
-
include:
|
7
|
-
- rvm: 2.5
|
8
|
-
- rvm: 2.6
|
9
|
-
- rvm: 2.7
|
10
|
-
- rvm: 2.6
|
11
|
-
env: COVERAGE=PartialSummary,Coveralls
|
12
|
-
- rvm: jruby-head
|
13
|
-
env: JRUBY_OPTS="--debug -X+O"
|
14
|
-
- rvm: truffleruby
|
15
|
-
- rvm: ruby-head
|
16
|
-
allow_failures:
|
17
|
-
- rvm: truffleruby
|
18
|
-
- rvm: ruby-head
|
19
|
-
- rvm: jruby-head
|
data/Gemfile
DELETED
data/README.md
DELETED
@@ -1,75 +0,0 @@
|
|
1
|
-
# Async::Process
|
2
|
-
|
3
|
-
Implements `Process.spawn` and `Process.capture` for [async].
|
4
|
-
|
5
|
-
[![Build Status](https://travis-ci.com/socketry/async-process.svg?branch=master)](https://travis-ci.com/socketry/async-process)
|
6
|
-
[![Code Climate](https://codeclimate.com/github/socketry/async-process.svg)](https://codeclimate.com/github/socketry/async-process)
|
7
|
-
[![Coverage Status](https://coveralls.io/repos/socketry/async-process/badge.svg)](https://coveralls.io/r/socketry/async-process)
|
8
|
-
|
9
|
-
[async]: https://github.com/socketry/async
|
10
|
-
|
11
|
-
## Installation
|
12
|
-
|
13
|
-
Add this line to your application's Gemfile:
|
14
|
-
|
15
|
-
```ruby
|
16
|
-
gem 'async-process'
|
17
|
-
```
|
18
|
-
|
19
|
-
And then execute:
|
20
|
-
|
21
|
-
$ bundle
|
22
|
-
|
23
|
-
Or install it yourself as:
|
24
|
-
|
25
|
-
$ gem install async-process
|
26
|
-
|
27
|
-
## Usage
|
28
|
-
|
29
|
-
In any asynchronous context (e.g. a reactor), simply use the `Async::Process.spawn` rather than `Process.spawn` like so:
|
30
|
-
|
31
|
-
```ruby
|
32
|
-
require 'async/process'
|
33
|
-
|
34
|
-
Async::Reactor.run do
|
35
|
-
status = Async::Process.spawn("ls", "-lah")
|
36
|
-
end
|
37
|
-
```
|
38
|
-
|
39
|
-
Internally, we use a thread, since `nio4r` doesn't support monitoring pids.
|
40
|
-
|
41
|
-
## Contributing
|
42
|
-
|
43
|
-
1. Fork it
|
44
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
45
|
-
3. Commit your changes (`git commit -am 'Add some feature'`)
|
46
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
47
|
-
5. Create new Pull Request
|
48
|
-
|
49
|
-
## See Also
|
50
|
-
|
51
|
-
- [async-container](https://github.com/socketry/async-container) — Execute multiple isolated threads and/or processes.
|
52
|
-
|
53
|
-
## License
|
54
|
-
|
55
|
-
Released under the MIT license.
|
56
|
-
|
57
|
-
Copyright, 2017, by [Samuel G. D. Williams](http://www.codeotaku.com/samuel-williams).
|
58
|
-
|
59
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
60
|
-
of this software and associated documentation files (the "Software"), to deal
|
61
|
-
in the Software without restriction, including without limitation the rights
|
62
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
63
|
-
copies of the Software, and to permit persons to whom the Software is
|
64
|
-
furnished to do so, subject to the following conditions:
|
65
|
-
|
66
|
-
The above copyright notice and this permission notice shall be included in
|
67
|
-
all copies or substantial portions of the Software.
|
68
|
-
|
69
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
70
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
71
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
72
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
73
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
74
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
75
|
-
THE SOFTWARE.
|
data/Rakefile
DELETED
data/async-process.gemspec
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
require_relative "lib/async/process/version"
|
3
|
-
|
4
|
-
Gem::Specification.new do |spec|
|
5
|
-
spec.name = "async-process"
|
6
|
-
spec.version = Async::Process::VERSION
|
7
|
-
spec.authors = ["Samuel Williams"]
|
8
|
-
spec.email = ["samuel.williams@oriontransfer.co.nz"]
|
9
|
-
|
10
|
-
spec.summary = "Asynchronous process spawning."
|
11
|
-
spec.homepage = "https://github.com/socketry/async-process"
|
12
|
-
|
13
|
-
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
14
|
-
f.match(%r{^(test|spec|features)/})
|
15
|
-
end
|
16
|
-
|
17
|
-
spec.require_paths = ["lib"]
|
18
|
-
|
19
|
-
spec.add_dependency "async", "~> 1.0"
|
20
|
-
spec.add_dependency "async-io", "~> 1.0"
|
21
|
-
spec.add_development_dependency "async-rspec", "~> 1.1"
|
22
|
-
|
23
|
-
spec.add_development_dependency "covered"
|
24
|
-
spec.add_development_dependency "bundler"
|
25
|
-
spec.add_development_dependency "rake", "~> 11.0"
|
26
|
-
spec.add_development_dependency "rspec", "~> 3.0"
|
27
|
-
end
|