Sha256: 79d3796a900385e2b406a300af3ade0299a0fa626dcf486ac86495e440d8a066

Contents?: true

Size: 785 Bytes

Versions: 1

Compression:

Stored size: 785 Bytes

Contents

require 'rake'
require 'rake/clean'
require 'rake/testtask'

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

namespace :gem do
  desc "Create the getopt gem"
  task :create => [:clean] do
    spec = eval(IO.read('getopt.gemspec'))
    Gem::Builder.new(spec).build
  end

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

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

namespace :test do
  Rake::TestTask.new('getopt_long') do |t|
    t.test_files = 'test/test_getopt_long.rb'
    t.warning = true
    t.verbose = true
  end

  Rake::TestTask.new('getopt_std') do |t|
    t.test_files = 'test/test_getopt_std.rb'
    t.warning = true
    t.verbose = true
  end
end

task :default => :test

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
getopt-1.4.1 Rakefile