Sha256: b5601c728b57b0041c78c7889a8a8070c9ba2884d2af072ac1c00a7245f6caf6
Contents?: true
Size: 1.28 KB
Versions: 2
Compression:
Stored size: 1.28 KB
Contents
require 'rake' require 'rake/clean' require 'rake/testtask' require 'rbconfig' include RbConfig CLEAN.include('**/*.gem', '**/*.rbc', '**/*.log') namespace :gem do desc 'Create the win32-process gem' task :create => [:clean] do spec = eval(IO.read('win32-process.gemspec')) if Gem::VERSION.to_f < 2.0 Gem::Builder.new(spec).build else require 'rubygems/package' Gem::Package.build(spec) end 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 namespace :test do Rake::TestTask.new(:kill) do |t| t.verbose = true t.warning = true t.test_files = FileList['test/test_win32_process_kill.rb'] end end Rake::TestTask.new do |t| t.verbose = true t.warning = true end task :default => :test
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
win32-process-0.7.4 | Rakefile |
win32-process-0.7.3 | Rakefile |