Sha256: bd1c7c0265e8812423bdb41eb1087a0097da9d9151e1a53ab9a14156c3c91b39

Contents?: true

Size: 998 Bytes

Versions: 1

Compression:

Stored size: 998 Bytes

Contents

require 'rake'
require 'rake/clean'
require 'rake/testtask'
require 'rbconfig'
include Config

CLEAN.include('**/*.gem', '**/*.rbc')

namespace :gem do
  desc 'Create the win32-process gem'
  task :create do
    spec = eval(IO.read('win32-process.gemspec'))
    Gem::Builder.new(spec).build
  end

  desc 'Install the win32-process gem'
  task :install => [:create] do
    file = Dir["*.gem"].first
    sh "gem install #{file}"
  end
end

namespace :example do
  desc 'Run the fork + wait example'
  task :fork_wait do
    sh "ruby -Ilib examples/example_fork_wait.rb"
  end

  desc 'Run the fork + waitpid example'
  task :fork_waitpid do
    sh "ruby -Ilib examples/example_fork_waitpid.rb"
  end

  desc 'Run the kill example'
  task :kill do
    sh "ruby -Ilib examples/example_kill.rb"
  end

  desc 'Run the create example'
  task :create do
    sh "ruby -Ilib examples/example_create.rb"
  end
end

Rake::TestTask.new do |t|
  t.verbose = true
  t.warning = true
end

task :default => :test

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
win32-process-0.6.4 Rakefile