Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
enkessler committed Jan 22, 2017
2 parents 63483de + 4b04c3f commit a89bff2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
11 changes: 6 additions & 5 deletions childprocess.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Gem::Specification.new do |s|
s.authors = ["Jari Bakken", "Eric Kessler"]
s.email = ["morrow748@gmail.com"]
s.homepage = "http://github.com/enkessler/childprocess"
s.summary = %q{This gem aims at being a simple and reliable solution for controlling external programs running in the background on any Ruby / OS combination.}
s.summary = %q{A simple and reliable solution for controlling external programs running in the background on any Ruby / OS combination.}
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.}

s.rubyforge_project = "childprocess"
Expand All @@ -19,11 +19,12 @@ Gem::Specification.new do |s|
s.test_files = `git ls-files -- spec/*`.split("\n")
s.require_paths = ["lib"]

s.add_development_dependency "rspec", "~> 3.0.0"
s.add_development_dependency "yard", ">= 0"
s.add_development_dependency "rake", "~> 0.9.2"
s.add_development_dependency 'coveralls'
s.add_runtime_dependency "ffi", "~> 1.0", ">= 1.0.11"

s.add_development_dependency "rspec", "~> 3.0"
s.add_development_dependency "yard", "~> 0.0"
s.add_runtime_dependency 'rake', '< 12.0'
s.add_development_dependency 'coveralls', '< 1.0'
end


15 changes: 15 additions & 0 deletions spec/childprocess_spec.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,23 @@
# encoding: utf-8

require File.expand_path('../spec_helper', __FILE__)
require 'rubygems/mock_gem_ui'


describe ChildProcess do

here = File.dirname(__FILE__)

let(:gemspec) { eval(File.read "#{here}/../childprocess.gemspec") }

it 'validates cleanly' do
mock_ui = Gem::MockGemUi.new
Gem::DefaultUserInteraction.use_ui(mock_ui) { gemspec.validate }

expect(mock_ui.error).to_not match(/warn/i)
end


it "returns self when started" do
process = sleeping_ruby

Expand Down

0 comments on commit a89bff2

Please sign in to comment.