Sha256: 87264f4067f614c8a54ae0f5f4d1c92ffbac76a22b1b9e8cf9e0e619cd4cede9

Contents?: true

Size: 532 Bytes

Versions: 1

Compression:

Stored size: 532 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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
getopt-1.3.8 Rakefile