Sha256: 7002c8bfe43fe2309af3c62f0014ed0287770e78e15ffc32aec09465d31fa5c9
Contents?: true
Size: 859 Bytes
Versions: 9
Compression:
Stored size: 859 Bytes
Contents
require 'rake' require 'rake/testtask' require 'rake/clean' require 'rbconfig' CLEAN.include("**/*.rbc", "**/*.rbx", "**/*.gem") desc "Run the example program" task :example do if File::ALT_SEPARATOR sh 'ruby -Ilib/windows examples/uname_test.rb' else sh 'ruby -Ilib/unix examples/uname_test.rb' end end namespace :gem do desc "Create the sys-uname gem" task :create => [:clean] do require 'rubygems/package' spec = eval(IO.read('sys-uname.gemspec')) spec.signing_key = File.join(Dir.home, '.ssh', 'gem-private_key.pem') Gem::Package.build(spec, true) end desc "Install the sys-uname gem" task :install => [:create] do file = Dir["*.gem"].first sh "gem install #{file}" end end desc "Run the test suite" Rake::TestTask.new("test") do |t| t.warning = true t.verbose = true end task :default => :test
Version data entries
9 entries across 9 versions & 4 rubygems