Hello community,
here is the log from the commit of package rubygem-childprocess for
openSUSE:Factory checked in at 2019-07-22 12:20:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-childprocess (Old)
and /work/SRC/openSUSE:Factory/.rubygem-childprocess.new.4126 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-childprocess"
Mon Jul 22 12:20:34 2019 rev:26 rq:717288 version:2.0.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/rubygem-childprocess/rubygem-childprocess.changes
2019-02-11 21:24:59.075093519 +0100
+++
/work/SRC/openSUSE:Factory/.rubygem-childprocess.new.4126/rubygem-childprocess.changes
2019-07-22 12:20:35.595661174 +0200
@@ -1,0 +2,12 @@
+Fri Jul 19 09:01:12 UTC 2019 - Stephan Kulow <[email protected]>
+
+- updated to version 2.0.0
+ see installed CHANGELOG.md
+
+ ### Version 2.0.0 / 2019-07-11
+
+ * [#148](https://github.com/enkessler/childprocess/pull/148): Drop support
for Ruby 2.0, 2.1, and 2.2
+ * [#149](https://github.com/enkessler/childprocess/pull/149): Fix Unix fork
reopen to be compatible with Ruby 2.6
+ *
[#152](https://github.com/enkessler/childprocess/pull/152)/[#154](https://github.com/enkessler/childprocess/pull/154):
Fix hangs and permission errors introduced in Ruby 2.6 for leader processes of
process groups
+
+-------------------------------------------------------------------
Old:
----
childprocess-1.0.1.gem
New:
----
childprocess-2.0.0.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-childprocess.spec ++++++
--- /var/tmp/diff_new_pack.3YEKj4/_old 2019-07-22 12:20:36.279660995 +0200
+++ /var/tmp/diff_new_pack.3YEKj4/_new 2019-07-22 12:20:36.279660995 +0200
@@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@@ -24,12 +24,12 @@
#
Name: rubygem-childprocess
-Version: 1.0.1
+Version: 2.0.0
Release: 0
%define mod_name childprocess
%define mod_full_name %{mod_name}-%{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-BuildRequires: %{rubydevel}
+BuildRequires: %{rubydevel >= 2.3.0}
BuildRequires: %{rubygem gem2rpm}
BuildRequires: ruby-macros >= 5
Url: http://github.com/enkessler/childprocess
++++++ childprocess-1.0.1.gem -> childprocess-2.0.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/.travis.yml new/.travis.yml
--- old/.travis.yml 2019-02-03 08:43:45.000000000 +0100
+++ new/.travis.yml 2019-07-11 19:50:54.000000000 +0200
@@ -5,12 +5,10 @@
rvm:
- jruby-9.1.9.0
- rbx-3
- - 2.0.0
- - 2.1
- - 2.2
- 2.3
- 2.4
- 2.5
+ - 2.6
- ruby-head
sudo: false
@@ -42,10 +40,3 @@
- rvm: jruby-9.2.5.0
jdk: openjdk11
env: "JAVA_OPTS_FOR_SPECS='--add-opens java.base/java.io=org.jruby.dist
--add-opens java.base/sun.nio.ch=org.jruby.dist'"
- exclude:
- # Travis does not provide 1.9.3 on OSX
- - rvm: 1.9.3
- os: osx
- # Travis does not provide 2.0.0 on it latest version of OSX
- - rvm: 2.0.0
- os: osx
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md 2019-02-03 08:43:45.000000000 +0100
+++ new/CHANGELOG.md 2019-07-11 19:50:54.000000000 +0200
@@ -1,3 +1,9 @@
+### Version 2.0.0 / 2019-07-11
+
+* [#148](https://github.com/enkessler/childprocess/pull/148): Drop support for
Ruby 2.0, 2.1, and 2.2
+* [#149](https://github.com/enkessler/childprocess/pull/149): Fix Unix fork
reopen to be compatible with Ruby 2.6
+*
[#152](https://github.com/enkessler/childprocess/pull/152)/[#154](https://github.com/enkessler/childprocess/pull/154):
Fix hangs and permission errors introduced in Ruby 2.6 for leader processes of
process groups
+
### Version 1.0.1 / 2019-02-03
* [#143](https://github.com/enkessler/childprocess/pull/144): Fix installs by
adding `rake` gem as runtime dependency
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md 2019-02-03 08:43:45.000000000 +0100
+++ new/README.md 2019-07-11 19:50:54.000000000 +0200
@@ -12,9 +12,9 @@
[](https://codeclimate.com/github/enkessler/childprocess)
[](https://coveralls.io/r/enkessler/childprocess?branch=master)
-***
-**This project currently needs a new maintainer. If anyone is interested,
please contact me, [enkessler](https://github.com/enkessler).**
-***
+# Requirements
+
+* Ruby 2.3+, JRuby 9+
# Usage
@@ -70,14 +70,18 @@
proc = ChildProcess.build("echo", "foo")
proc.io.stdout = proc.io.stderr = w
proc.start
-w.close
-begin
- loop { print r.readpartial(8192) }
-rescue EOFError
-end
+Thread.new {
+ begin
+ loop do
+ print r.readpartial(8192)
+ end
+ rescue EOFError
+ end
+}
proc.wait
+w.close
```
Note that if you just want to get the output of a command, the backtick method
on Kernel may be a better fit.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/appveyor.yml new/appveyor.yml
--- old/appveyor.yml 2019-02-03 08:43:45.000000000 +0100
+++ new/appveyor.yml 2019-07-11 19:50:54.000000000 +0200
@@ -4,24 +4,6 @@
matrix:
- CHILDPROCESS_POSIX_SPAWN: true
CHILDPROCESS_UNSET: should-be-unset
- RUBY_VERSION: 200-x64
- - CHILDPROCESS_POSIX_SPAWN: false
- CHILDPROCESS_UNSET: should-be-unset
- RUBY_VERSION: 200-x64
- - CHILDPROCESS_POSIX_SPAWN: true
- CHILDPROCESS_UNSET: should-be-unset
- RUBY_VERSION: 21-x64
- - CHILDPROCESS_POSIX_SPAWN: false
- CHILDPROCESS_UNSET: should-be-unset
- RUBY_VERSION: 21-x64
- - CHILDPROCESS_POSIX_SPAWN: true
- CHILDPROCESS_UNSET: should-be-unset
- RUBY_VERSION: 22-x64
- - CHILDPROCESS_POSIX_SPAWN: false
- CHILDPROCESS_UNSET: should-be-unset
- RUBY_VERSION: 22-x64
- - CHILDPROCESS_POSIX_SPAWN: true
- CHILDPROCESS_UNSET: should-be-unset
RUBY_VERSION: 23-x64
- CHILDPROCESS_POSIX_SPAWN: false
CHILDPROCESS_UNSET: should-be-unset
@@ -38,6 +20,12 @@
- CHILDPROCESS_POSIX_SPAWN: false
CHILDPROCESS_UNSET: should-be-unset
RUBY_VERSION: 25-x64
+ - CHILDPROCESS_POSIX_SPAWN: true
+ CHILDPROCESS_UNSET: should-be-unset
+ RUBY_VERSION: 26-x64
+ - CHILDPROCESS_POSIX_SPAWN: false
+ CHILDPROCESS_UNSET: should-be-unset
+ RUBY_VERSION: 26-x64
install:
- set PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH%
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/childprocess.gemspec new/childprocess.gemspec
--- old/childprocess.gemspec 2019-02-03 08:43:45.000000000 +0100
+++ new/childprocess.gemspec 2019-07-11 19:50:54.000000000 +0200
@@ -19,6 +19,8 @@
s.test_files = `git ls-files -- spec/*`.split("\n")
s.require_paths = ["lib"]
+ s.required_ruby_version = '>= 2.3.0'
+
s.add_development_dependency "rspec", "~> 3.0"
s.add_development_dependency "yard", "~> 0.0"
s.add_development_dependency 'coveralls', '< 1.0'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/childprocess/unix/fork_exec_process.rb
new/lib/childprocess/unix/fork_exec_process.rb
--- old/lib/childprocess/unix/fork_exec_process.rb 2019-02-03
08:43:45.000000000 +0100
+++ new/lib/childprocess/unix/fork_exec_process.rb 2019-07-11
19:50:54.000000000 +0200
@@ -29,8 +29,16 @@
exec_r.close
set_env
- STDOUT.reopen(stdout || "/dev/null")
- STDERR.reopen(stderr || "/dev/null")
+ if stdout
+ STDOUT.reopen(stdout)
+ else
+ STDOUT.reopen("/dev/null", "a+")
+ end
+ if stderr
+ STDERR.reopen(stderr)
+ else
+ STDERR.reopen("/dev/null", "a+")
+ end
if duplex?
STDIN.reopen(reader)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/childprocess/unix/process.rb
new/lib/childprocess/unix/process.rb
--- old/lib/childprocess/unix/process.rb 2019-02-03 08:43:45.000000000
+0100
+++ new/lib/childprocess/unix/process.rb 2019-07-11 19:50:54.000000000
+0200
@@ -29,7 +29,7 @@
return true if @exit_code
assert_started
- pid, status = ::Process.waitpid2(_pid, ::Process::WNOHANG |
::Process::WUNTRACED)
+ pid, status = ::Process.waitpid2(@pid, ::Process::WNOHANG |
::Process::WUNTRACED)
pid = nil if pid == 0 # may happen on jruby
log(:pid => pid, :status => status)
@@ -50,7 +50,8 @@
if exited?
exit_code
else
- _, status = ::Process.waitpid2 _pid
+ _, status = ::Process.waitpid2(@pid)
+
set_exit_code(status)
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/childprocess/version.rb
new/lib/childprocess/version.rb
--- old/lib/childprocess/version.rb 2019-02-03 08:43:45.000000000 +0100
+++ new/lib/childprocess/version.rb 2019-07-11 19:50:54.000000000 +0200
@@ -1,3 +1,3 @@
module ChildProcess
- VERSION = '1.0.1'
+ VERSION = '2.0.0'
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2019-02-03 08:43:45.000000000 +0100
+++ new/metadata 2019-07-11 19:50:54.000000000 +0200
@@ -1,7 +1,7 @@
--- !ruby/object:Gem::Specification
name: childprocess
version: !ruby/object:Gem::Version
- version: 1.0.1
+ version: 2.0.0
platform: ruby
authors:
- Jari Bakken
@@ -10,7 +10,7 @@
autorequire:
bindir: bin
cert_chain: []
-date: 2019-02-03 00:00:00.000000000 Z
+date: 2019-07-11 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: rspec
@@ -139,15 +139,14 @@
requirements:
- - ">="
- !ruby/object:Gem::Version
- version: '0'
+ version: 2.3.0
required_rubygems_version: !ruby/object:Gem::Requirement
requirements:
- - ">="
- !ruby/object:Gem::Version
version: '0'
requirements: []
-rubyforge_project: childprocess
-rubygems_version: 2.5.2.3
+rubygems_version: 3.0.3
signing_key:
specification_version: 4
summary: A simple and reliable solution for controlling external programs
running