childprocess 2.0.0 → 3.0.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/.travis.yml +0 -2
- data/CHANGELOG.md +6 -0
- data/Gemfile +3 -0
- data/README.md +2 -0
- data/childprocess.gemspec +0 -6
- data/lib/childprocess/errors.rb +2 -2
- data/lib/childprocess/version.rb +1 -1
- data/lib/childprocess/windows.rb +6 -1
- metadata +3 -19
- data/ext/mkrf_conf.rb +0 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3927c01811510b0458e140f2b6f0fc6974f15ef733af515fa1d1b30976af4f4
|
4
|
+
data.tar.gz: 82883fa302f9e1698cff900a88cf5662e4561b5ca6fb5c6a794eccb65fc89d96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98d6faa166068b1f9186cbf817ac5623e22212a7cd434b5a9213be80bf2e13df8d517513a772a5e5abf3a81c3dfe930c75bfd3f822423bf9e9259230dd4a26bd
|
7
|
+
data.tar.gz: 92082f9fb2ca7ec07bcaefcb1c0cd2619305204bbc7872090b485e694e36879e4de4d6abc460867a2715ea0214b0aeef16d67016fa0f36280028aa391b27ca94
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
### Version 3.0.0 / 2019-09-20
|
2
|
+
|
3
|
+
* [#156](https://github.com/enkessler/childprocess/pull/156)Remove unused `rubyforge_project` from gemspec
|
4
|
+
* [#160](https://github.com/enkessler/childprocess/pull/160): Remove extension to conditionally install `ffi` gem on Windows platforms
|
5
|
+
* [#160](https://github.com/enkessler/childprocess/pull/160): Remove runtime dependency on `rake` gem
|
6
|
+
|
1
7
|
### Version 2.0.0 / 2019-07-11
|
2
8
|
|
3
9
|
* [#148](https://github.com/enkessler/childprocess/pull/148): Drop support for Ruby 2.0, 2.1, and 2.2
|
data/Gemfile
CHANGED
@@ -3,6 +3,9 @@ source 'http://rubygems.org'
|
|
3
3
|
# Specify your gem's dependencies in child_process.gemspec
|
4
4
|
gemspec
|
5
5
|
|
6
|
+
# Used for local development/testing only
|
7
|
+
gem 'rake'
|
8
|
+
|
6
9
|
if RUBY_VERSION =~ /^1\./
|
7
10
|
gem 'tins', '< 1.7' # The 'tins' gem requires Ruby 2.x on/after this version
|
8
11
|
gem 'json', '< 2.0' # The 'json' gem drops pre-Ruby 2.x support on/after this version
|
data/README.md
CHANGED
@@ -16,6 +16,8 @@ a standalone library.
|
|
16
16
|
|
17
17
|
* Ruby 2.3+, JRuby 9+
|
18
18
|
|
19
|
+
Windows users **must** ensure the `ffi` gem (`>= 1.0.11`) is installed in order to use ChildProcess.
|
20
|
+
|
19
21
|
# Usage
|
20
22
|
|
21
23
|
The object returned from `ChildProcess.build` will implement `ChildProcess::AbstractProcess`.
|
data/childprocess.gemspec
CHANGED
@@ -12,7 +12,6 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.summary = %q{A simple and reliable solution for controlling external programs running in the background on any Ruby / OS combination.}
|
13
13
|
s.description = %q{This gem aims at being a simple and reliable solution for controlling external programs running in the background on any Ruby / OS combination.}
|
14
14
|
|
15
|
-
s.rubyforge_project = "childprocess"
|
16
15
|
s.license = 'MIT'
|
17
16
|
|
18
17
|
s.files = `git ls-files`.split("\n")
|
@@ -24,9 +23,4 @@ Gem::Specification.new do |s|
|
|
24
23
|
s.add_development_dependency "rspec", "~> 3.0"
|
25
24
|
s.add_development_dependency "yard", "~> 0.0"
|
26
25
|
s.add_development_dependency 'coveralls', '< 1.0'
|
27
|
-
|
28
|
-
s.add_runtime_dependency 'rake', '< 13.0'
|
29
|
-
|
30
|
-
# Install FFI gem if we're running on Windows
|
31
|
-
s.extensions = 'ext/mkrf_conf.rb'
|
32
26
|
end
|
data/lib/childprocess/errors.rb
CHANGED
@@ -16,8 +16,8 @@ module ChildProcess
|
|
16
16
|
|
17
17
|
class MissingFFIError < Error
|
18
18
|
def initialize
|
19
|
-
message = "FFI is a required pre-requisite for posix_spawn
|
20
|
-
"
|
19
|
+
message = "FFI is a required pre-requisite for Windows or posix_spawn support in the ChildProcess gem. " +
|
20
|
+
"Ensure the `ffi` gem is installed. " +
|
21
21
|
"If you believe this is an error, please file a bug at http://github.com/enkessler/childprocess/issues"
|
22
22
|
|
23
23
|
super(message)
|
data/lib/childprocess/version.rb
CHANGED
data/lib/childprocess/windows.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: childprocess
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jari Bakken
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2019-
|
13
|
+
date: 2019-09-20 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rspec
|
@@ -54,28 +54,13 @@ dependencies:
|
|
54
54
|
- - "<"
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
version: '1.0'
|
57
|
-
- !ruby/object:Gem::Dependency
|
58
|
-
name: rake
|
59
|
-
requirement: !ruby/object:Gem::Requirement
|
60
|
-
requirements:
|
61
|
-
- - "<"
|
62
|
-
- !ruby/object:Gem::Version
|
63
|
-
version: '13.0'
|
64
|
-
type: :runtime
|
65
|
-
prerelease: false
|
66
|
-
version_requirements: !ruby/object:Gem::Requirement
|
67
|
-
requirements:
|
68
|
-
- - "<"
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
version: '13.0'
|
71
57
|
description: This gem aims at being a simple and reliable solution for controlling
|
72
58
|
external programs running in the background on any Ruby / OS combination.
|
73
59
|
email:
|
74
60
|
- morrow748@gmail.com
|
75
61
|
- shane@dasilva.io
|
76
62
|
executables: []
|
77
|
-
extensions:
|
78
|
-
- ext/mkrf_conf.rb
|
63
|
+
extensions: []
|
79
64
|
extra_rdoc_files: []
|
80
65
|
files:
|
81
66
|
- ".document"
|
@@ -89,7 +74,6 @@ files:
|
|
89
74
|
- Rakefile
|
90
75
|
- appveyor.yml
|
91
76
|
- childprocess.gemspec
|
92
|
-
- ext/mkrf_conf.rb
|
93
77
|
- lib/childprocess.rb
|
94
78
|
- lib/childprocess/abstract_io.rb
|
95
79
|
- lib/childprocess/abstract_process.rb
|
data/ext/mkrf_conf.rb
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
# Based on the example from https://en.wikibooks.org/wiki/Ruby_Programming/RubyGems#How_to_install_different_versions_of_gems_depending_on_which_version_of_ruby_the_installee_is_using
|
2
|
-
require 'rubygems'
|
3
|
-
require 'rubygems/command.rb'
|
4
|
-
require 'rubygems/dependency_installer.rb'
|
5
|
-
|
6
|
-
begin
|
7
|
-
Gem::Command.build_args = ARGV
|
8
|
-
rescue NoMethodError # rubocop:disable Lint/HandleExceptions
|
9
|
-
end
|
10
|
-
|
11
|
-
inst = Gem::DependencyInstaller.new
|
12
|
-
|
13
|
-
begin
|
14
|
-
if Gem.win_platform?
|
15
|
-
inst.install 'ffi', Gem::Requirement.new('~> 1.0', '>= 1.0.11')
|
16
|
-
end
|
17
|
-
rescue # rubocop:disable Lint/RescueWithoutErrorClass
|
18
|
-
exit(1)
|
19
|
-
end
|
20
|
-
|
21
|
-
# create dummy rakefile to indicate success
|
22
|
-
File.open(File.join(File.dirname(__FILE__), 'Rakefile'), 'w') do |f|
|
23
|
-
f.write("task :default\n")
|
24
|
-
end
|