childprocess 2.0.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 02b58bb5f5d2ed76658b0d6c8f5d8e8fe88cfcfbfaf725c71192505186a61981
4
- data.tar.gz: 5ba37a1132b070d75002f48aeb8f140f7244011219079a50de455fb4c538a00b
3
+ metadata.gz: b3927c01811510b0458e140f2b6f0fc6974f15ef733af515fa1d1b30976af4f4
4
+ data.tar.gz: 82883fa302f9e1698cff900a88cf5662e4561b5ca6fb5c6a794eccb65fc89d96
5
5
  SHA512:
6
- metadata.gz: 9fb100ea7f324ec173d78230345efd9e5d9650d3a9b064a74e297174709830e04eea1c9b442d6a91c3883fddf650445bf766c6d3a1a9b6112ec5dc32a504c5cb
7
- data.tar.gz: ca02c5272f09358e0361b0fb98cd60b8de5281cc1d98887b04e261aa11c30e2f5aa557b66f5305c454f5c820a3655e539411d7f188a6f9faa59bc4e5c6f8a5d3
6
+ metadata.gz: 98d6faa166068b1f9186cbf817ac5623e22212a7cd434b5a9213be80bf2e13df8d517513a772a5e5abf3a81c3dfe930c75bfd3f822423bf9e9259230dd4a26bd
7
+ data.tar.gz: 92082f9fb2ca7ec07bcaefcb1c0cd2619305204bbc7872090b485e694e36879e4de4d6abc460867a2715ea0214b0aeef16d67016fa0f36280028aa391b27ca94
@@ -3,7 +3,6 @@ os:
3
3
  - osx
4
4
 
5
5
  rvm:
6
- - jruby-9.1.9.0
7
6
  - rbx-3
8
7
  - 2.3
9
8
  - 2.4
@@ -33,7 +32,6 @@ env:
33
32
  matrix:
34
33
  allow_failures:
35
34
  - rvm: rbx-3
36
- - rvm: jruby-9.1.9.0
37
35
  - rvm: ruby-head
38
36
  - env: "CHILDPROCESS_POSIX_SPAWN=true"
39
37
  include:
@@ -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`.
@@ -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
@@ -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, falling back to default implementation. " +
20
- "Please add it to your deployment to unlock this functionality. " +
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)
@@ -1,3 +1,3 @@
1
1
  module ChildProcess
2
- VERSION = '2.0.0'
2
+ VERSION = '3.0.0'
3
3
  end
@@ -1,6 +1,11 @@
1
- require "ffi"
2
1
  require "rbconfig"
3
2
 
3
+ begin
4
+ require 'ffi'
5
+ rescue LoadError
6
+ raise ChildProcess::MissingFFIError
7
+ end
8
+
4
9
  module ChildProcess
5
10
  module Windows
6
11
  module Lib
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: 2.0.0
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-07-11 00:00:00.000000000 Z
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
@@ -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