Sha256: cd60620dbc890c090a795a730767f74cfafa286a2f07f77f5e8f8a3319258fd6

Contents?: true

Size: 657 Bytes

Versions: 1

Compression:

Stored size: 657 Bytes

Contents

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

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

namespace :gem do
  desc 'Create the windows-api gem'
  task :create => [:clean] do
    spec = eval(IO.read('windows-api.gemspec'))
    if Gem::VERSION < "2.0"
      Gem::Builder.new(spec).build
    else
      require 'rubygems/package'
      Gem::Package.build(spec)
    end
  end

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

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

task :default => :test

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
windows-api-0.4.3 Rakefile