Sha256: 7688fcd4706df5241d80de0394af2c50d18a6ede9172ca9b2b8e9c752491a038
Contents?: true
Size: 802 Bytes
Versions: 1
Compression:
Stored size: 802 Bytes
Contents
require 'rake' require 'rake/testtask' desc "Install the getopt package (non-gem)" task :install do dest = File.join(Config::CONFIG['sitelibdir'], 'getopt') Dir.mkdir(dest) unless File.exists? dest cp 'lib/getopt/std.rb', dest, :verbose => true cp 'lib/getopt/long.rb', dest, :verbose => true end desc "Install the getopt package as a gem" task :install_gem do ruby 'getopt.gemspec' file = Dir["*.gem"].first sh "gem install #{file}" end Rake::TestTask.new do |t| t.warning = true t.verbose = true end Rake::TestTask.new('test_getopt_long') do |t| t.test_files = 'test/test_getopt_long.rb' t.warning = true t.verbose = true end Rake::TestTask.new('test_getopt_std') do |t| t.test_files = 'test/test_getopt_std.rb' t.warning = true t.verbose = true end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
getopt-1.4.0 | Rakefile |