childprocess 5.0.0 → 5.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/.github/workflows/ci.yml +14 -5
- data/CHANGELOG.md +5 -0
- data/Gemfile +4 -1
- data/README.md +2 -3
- data/childprocess.gemspec +2 -0
- data/lib/childprocess/version.rb +1 -1
- data/spec/spec_helper.rb +2 -2
- metadata +20 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9af8db7e1ea6ba4571c4b26bf7631147d9dc3e9d1b96bf602534a054621d44dd
|
4
|
+
data.tar.gz: fcb40387f9f29e29019663fdea7c1fa94a531c80ee125f6b207194f76617b7cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8eec57e14538d054468f8582802596cc6ecafcc88660bc2242b90c9da2ba6ec9d5e053d39c8d6338aa9486ff8eb942942e6eae2216c52bde3cac53128192b796
|
7
|
+
data.tar.gz: 9e5335a82ab47954fff0d7781cd666f20742ab5c48b670bb8adb567466f22d20a96500b581ac750e9e91ea36d63f7a9a01d05a89a21a6eef20134c66891510f3
|
data/.github/workflows/ci.yml
CHANGED
@@ -5,13 +5,22 @@ jobs:
|
|
5
5
|
strategy:
|
6
6
|
fail-fast: false
|
7
7
|
matrix:
|
8
|
-
os: [ ubuntu, macos, windows ]
|
9
|
-
ruby: [ '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2', '3.3', jruby, truffleruby ]
|
8
|
+
os: [ ubuntu-latest, macos-latest, windows-latest ]
|
9
|
+
ruby: [ '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2', '3.3', head, jruby, truffleruby ]
|
10
|
+
# CRuby < 2.6 does not support macos-arm64, so test those on amd64 instead
|
11
|
+
# JRuby 9.4.7.0 does not have native console support on macos-arm64: https://github.com/jruby/jruby/issues/8271
|
12
|
+
include:
|
13
|
+
- { os: macos-13, ruby: '2.4' }
|
14
|
+
- { os: macos-13, ruby: '2.5' }
|
15
|
+
- { os: macos-13, ruby: jruby }
|
10
16
|
exclude:
|
11
|
-
- { os:
|
17
|
+
- { os: macos-latest, ruby: '2.4' }
|
18
|
+
- { os: macos-latest, ruby: '2.5' }
|
19
|
+
- { os: macos-latest, ruby: jruby }
|
20
|
+
- { os: windows-latest, ruby: truffleruby }
|
12
21
|
# fails to load rspec: RuntimeError: CRITICAL: RUBYGEMS_ACTIVATION_MONITOR.owned?: before false -> after true
|
13
|
-
- { os: windows, ruby: jruby }
|
14
|
-
runs-on: ${{ matrix.os }}
|
22
|
+
- { os: windows-latest, ruby: jruby }
|
23
|
+
runs-on: ${{ matrix.os }}
|
15
24
|
env:
|
16
25
|
CHILDPROCESS_UNSET: should-be-unset
|
17
26
|
steps:
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
### Version 5.1.0 / 2024-01-06
|
2
|
+
|
3
|
+
* [#196](https://github.com/enkessler/childprocess/pull/196): Remove `ostruct` dependency to fix deprecation warning on Ruby 3.4
|
4
|
+
* [#199](https://github.com/enkessler/childprocess/pull/199): Add `logger` dependency to fix deprecation warning on Ruby 3.4
|
5
|
+
|
1
6
|
### Version 5.0.0 / 2024-01-06
|
2
7
|
|
3
8
|
* [#175](https://github.com/enkessler/childprocess/pull/175): Replace all backends by `Process.spawn` for portability, reliability and simplicity.
|
data/Gemfile
CHANGED
@@ -1,7 +1,10 @@
|
|
1
|
-
source '
|
1
|
+
source 'https://rubygems.org'
|
2
2
|
|
3
3
|
# Specify your gem's dependencies in child_process.gemspec
|
4
4
|
gemspec
|
5
5
|
|
6
6
|
# Used for local development/testing only
|
7
7
|
gem 'rake'
|
8
|
+
|
9
|
+
# Newer versions of term-ansicolor (used by coveralls) do not work on Ruby 2.4
|
10
|
+
gem 'term-ansicolor', '< 1.8.0' if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.5')
|
data/README.md
CHANGED
@@ -6,9 +6,8 @@ external programs running in the background on any Ruby / OS combination.
|
|
6
6
|
The code originated in the [selenium-webdriver](https://rubygems.org/gems/selenium-webdriver) gem, but should prove useful as
|
7
7
|
a standalone library.
|
8
8
|
|
9
|
-
[](http://badge.fury.io/rb/childprocess)
|
9
|
+
[](https://github.com/enkessler/childprocess/actions/workflows/ci.yml)
|
10
|
+

|
12
11
|
[](https://codeclimate.com/github/enkessler/childprocess)
|
13
12
|
[](https://coveralls.io/r/enkessler/childprocess?branch=master)
|
14
13
|
|
data/childprocess.gemspec
CHANGED
@@ -20,6 +20,8 @@ Gem::Specification.new do |s|
|
|
20
20
|
|
21
21
|
s.required_ruby_version = '>= 2.4.0'
|
22
22
|
|
23
|
+
s.add_dependency "logger", "~> 1.5"
|
24
|
+
|
23
25
|
s.add_development_dependency "rspec", "~> 3.0"
|
24
26
|
s.add_development_dependency "yard", "~> 0.0"
|
25
27
|
s.add_development_dependency 'coveralls', '< 1.0'
|
data/lib/childprocess/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -11,10 +11,10 @@ require 'rspec'
|
|
11
11
|
require 'tempfile'
|
12
12
|
require 'socket'
|
13
13
|
require 'stringio'
|
14
|
-
require 'ostruct'
|
15
14
|
|
16
15
|
module ChildProcessSpecHelper
|
17
16
|
RUBY = defined?(Gem) ? Gem.ruby : 'ruby'
|
17
|
+
CapturedOutput = Struct.new(:stdout, :stderr)
|
18
18
|
|
19
19
|
def ruby_process(*args)
|
20
20
|
@process = ChildProcess.build(RUBY , *args)
|
@@ -229,7 +229,7 @@ module ChildProcessSpecHelper
|
|
229
229
|
|
230
230
|
yield
|
231
231
|
|
232
|
-
|
232
|
+
CapturedOutput.new rewind_and_read(out), rewind_and_read(err)
|
233
233
|
ensure
|
234
234
|
STDOUT.reopen orig_out
|
235
235
|
STDERR.reopen orig_err
|
metadata
CHANGED
@@ -1,17 +1,31 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: childprocess
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jari Bakken
|
8
8
|
- Eric Kessler
|
9
9
|
- Shane da Silva
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2024-
|
13
|
+
date: 2024-08-06 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: logger
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
requirements:
|
19
|
+
- - "~>"
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '1.5'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - "~>"
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
version: '1.5'
|
15
29
|
- !ruby/object:Gem::Dependency
|
16
30
|
name: rspec
|
17
31
|
requirement: !ruby/object:Gem::Requirement
|
@@ -98,7 +112,7 @@ homepage: https://github.com/enkessler/childprocess
|
|
98
112
|
licenses:
|
99
113
|
- MIT
|
100
114
|
metadata: {}
|
101
|
-
post_install_message:
|
115
|
+
post_install_message:
|
102
116
|
rdoc_options: []
|
103
117
|
require_paths:
|
104
118
|
- lib
|
@@ -113,8 +127,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
127
|
- !ruby/object:Gem::Version
|
114
128
|
version: '0'
|
115
129
|
requirements: []
|
116
|
-
rubygems_version: 3.
|
117
|
-
signing_key:
|
130
|
+
rubygems_version: 3.5.9
|
131
|
+
signing_key:
|
118
132
|
specification_version: 4
|
119
133
|
summary: A simple and reliable solution for controlling external programs running
|
120
134
|
in the background on any Ruby / OS combination.
|