Sha256: c939c4a78cfdea2c5a0d48702187e938cf0f7d0511b479e2d526bad98f791a88

Contents?: true

Size: 913 Bytes

Versions: 1

Compression:

Stored size: 913 Bytes

Contents

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

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

namespace :gem do
  desc "Remove any gem files."
  task :clean do
    Dir['*.gem'].each{ |f| File.delete(f) }
  end

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

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

namespace :test do
  Rake::TestTask.new(:all) do |t|
    t.warning = true
    t.verbose = true
  end

  Rake::TestTask.new(:xml) do |t|
    t.warning = true
    t.verbose = true
    t.test_files = FileList['test/test_dbi_dbrc_xml.rb']
  end

  Rake::TestTask.new(:yml) do |t|
    t.warning = true
    t.verbose = true
    t.test_files = FileList['test/test_dbi_dbrc_yml.rb']
  end
end

task :default => 'test:all'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dbi-dbrc-1.1.9 Rakefile