Hello community,
here is the log from the commit of package rubygem-childprocess for
openSUSE:Factory checked in at 2015-10-25 19:13:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-childprocess (Old)
and /work/SRC/openSUSE:Factory/.rubygem-childprocess.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-childprocess"
Changes:
--------
---
/work/SRC/openSUSE:Factory/rubygem-childprocess/rubygem-childprocess.changes
2015-04-10 09:53:50.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.rubygem-childprocess.new/rubygem-childprocess.changes
2015-10-25 19:13:31.000000000 +0100
@@ -1,0 +2,6 @@
+Sat Oct 24 04:28:47 UTC 2015 - [email protected]
+
+- updated to version 0.5.7
+ no changelog found
+
+-------------------------------------------------------------------
Old:
----
childprocess-0.5.6.gem
New:
----
childprocess-0.5.7.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-childprocess.spec ++++++
--- /var/tmp/diff_new_pack.V6NAuJ/_old 2015-10-25 19:13:32.000000000 +0100
+++ /var/tmp/diff_new_pack.V6NAuJ/_new 2015-10-25 19:13:32.000000000 +0100
@@ -24,7 +24,7 @@
#
Name: rubygem-childprocess
-Version: 0.5.6
+Version: 0.5.7
Release: 0
%define mod_name childprocess
%define mod_full_name %{mod_name}-%{version}
++++++ childprocess-0.5.6.gem -> childprocess-0.5.7.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md 2015-04-08 15:44:37.000000000 +0200
+++ new/README.md 1970-01-01 01:00:00.000000000 +0100
@@ -153,6 +153,10 @@
ChildProcess.build("ruby", "-S", "bundle")
```
+## Caveats
+
+* With JRuby on Unix, modifying `ENV["PATH"]` before using childprocess could
lead to 'Command not found' errors, since JRuby is unable to modify the
environemnt used for PATH searches in `java.lang.ProcessBuilder`. This can be
avoided by setting `ChildProcess.posix_spawn = true`.
+
# Implementation
How the process is launched and killed depends on the platform:
Files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/childprocess/unix/posix_spawn_process.rb
new/lib/childprocess/unix/posix_spawn_process.rb
--- old/lib/childprocess/unix/posix_spawn_process.rb 2015-04-08
15:44:37.000000000 +0200
+++ new/lib/childprocess/unix/posix_spawn_process.rb 1970-01-01
01:00:00.000000000 +0100
@@ -14,20 +14,20 @@
attrs = Lib::Attrs.new
if io.stdout
- actions.add_dup fileno_for(io.stdout), fileno_for($stdout)
+ actions.add_dup fileno_for(io.stdout), fileno_for(STDOUT)
else
- actions.add_open fileno_for($stdout), "/dev/null", File::WRONLY, 0644
+ actions.add_open fileno_for(STDOUT), "/dev/null", File::WRONLY, 0644
end
if io.stderr
- actions.add_dup fileno_for(io.stderr), fileno_for($stderr)
+ actions.add_dup fileno_for(io.stderr), fileno_for(STDERR)
else
- actions.add_open fileno_for($stderr), "/dev/null", File::WRONLY, 0644
+ actions.add_open fileno_for(STDERR), "/dev/null", File::WRONLY, 0644
end
if duplex?
reader, writer = ::IO.pipe
- actions.add_dup fileno_for(reader), fileno_for($stdin)
+ actions.add_dup fileno_for(reader), fileno_for(STDIN)
actions.add_close fileno_for(writer)
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 2015-04-08 15:44:37.000000000 +0200
+++ new/lib/childprocess/version.rb 1970-01-01 01:00:00.000000000 +0100
@@ -1,3 +1,3 @@
module ChildProcess
- VERSION = "0.5.6"
+ VERSION = "0.5.7"
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2015-04-08 15:44:37.000000000 +0200
+++ new/metadata 1970-01-01 01:00:00.000000000 +0100
@@ -1,89 +1,89 @@
--- !ruby/object:Gem::Specification
name: childprocess
version: !ruby/object:Gem::Version
- version: 0.5.6
+ version: 0.5.7
platform: ruby
authors:
- Jari Bakken
autorequire:
bindir: bin
cert_chain: []
-date: 2015-04-08 00:00:00.000000000 Z
+date: 2015-10-23 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: rspec
requirement: !ruby/object:Gem::Requirement
requirements:
- - - "~>"
+ - - ~>
- !ruby/object:Gem::Version
version: 3.0.0
type: :development
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - - "~>"
+ - - ~>
- !ruby/object:Gem::Version
version: 3.0.0
- !ruby/object:Gem::Dependency
name: yard
requirement: !ruby/object:Gem::Requirement
requirements:
- - - ">="
+ - - '>='
- !ruby/object:Gem::Version
version: '0'
type: :development
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - - ">="
+ - - '>='
- !ruby/object:Gem::Version
version: '0'
- !ruby/object:Gem::Dependency
name: rake
requirement: !ruby/object:Gem::Requirement
requirements:
- - - "~>"
+ - - ~>
- !ruby/object:Gem::Version
version: 0.9.2
type: :development
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - - "~>"
+ - - ~>
- !ruby/object:Gem::Version
version: 0.9.2
- !ruby/object:Gem::Dependency
name: coveralls
requirement: !ruby/object:Gem::Requirement
requirements:
- - - ">="
+ - - '>='
- !ruby/object:Gem::Version
version: '0'
type: :development
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - - ">="
+ - - '>='
- !ruby/object:Gem::Version
version: '0'
- !ruby/object:Gem::Dependency
name: ffi
requirement: !ruby/object:Gem::Requirement
requirements:
- - - "~>"
+ - - ~>
- !ruby/object:Gem::Version
version: '1.0'
- - - ">="
+ - - '>='
- !ruby/object:Gem::Version
version: 1.0.11
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - - "~>"
+ - - ~>
- !ruby/object:Gem::Version
version: '1.0'
- - - ">="
+ - - '>='
- !ruby/object:Gem::Version
version: 1.0.11
description: This gem aims at being a simple and reliable solution for
controlling
@@ -94,10 +94,10 @@
extensions: []
extra_rdoc_files: []
files:
-- ".document"
-- ".gitignore"
-- ".rspec"
-- ".travis.yml"
+- .document
+- .gitignore
+- .rspec
+- .travis.yml
- Gemfile
- LICENSE
- README.md
@@ -148,17 +148,17 @@
- lib
required_ruby_version: !ruby/object:Gem::Requirement
requirements:
- - - ">="
+ - - '>='
- !ruby/object:Gem::Version
version: '0'
required_rubygems_version: !ruby/object:Gem::Requirement
requirements:
- - - ">="
+ - - '>='
- !ruby/object:Gem::Version
version: '0'
requirements: []
rubyforge_project: childprocess
-rubygems_version: 2.2.0
+rubygems_version: 2.0.14
signing_key:
specification_version: 4
summary: This gem aims at being a simple and reliable solution for controlling
external
@@ -172,4 +172,3 @@
- spec/spec_helper.rb
- spec/unix_spec.rb
- spec/windows_spec.rb
-has_rdoc:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/spec/io_spec.rb new/spec/io_spec.rb
--- old/spec/io_spec.rb 2015-04-08 15:44:37.000000000 +0200
+++ new/spec/io_spec.rb 1970-01-01 01:00:00.000000000 +0100
@@ -1,7 +1,17 @@
require File.expand_path('../spec_helper', __FILE__)
describe ChildProcess do
- it "can redirect stdout, stderr" do
+ it "can run even when $stdout is a StringIO" do
+ begin
+ stdout = $stdout
+ $stdout = StringIO.new
+ expect { sleeping_ruby.start }.to_not raise_error
+ ensure
+ $stdout = stdout
+ end
+ end
+
+ it "can redirect stdout, stderr" do
process = ruby(<<-CODE)
[STDOUT, STDERR].each_with_index do |io, idx|
io.sync = true