Sha256: d7304cd5c314ac060e68a10ad2a120e22eb6d8f5d4ddd88a83db6b868f26ff3a

Contents?: true

Size: 918 Bytes

Versions: 1

Compression:

Stored size: 918 Bytes

Contents

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

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

namespace :gem do
  desc "Create the dbi-dbrc gem"
  task :create => [:clean] do
    require 'rubygems/package'
    spec = eval(IO.read('dbi-dbrc.gemspec'))
    spec.signing_key = File.join(Dir.home, '.ssh', 'gem-private_key.pem')
    Gem::Package.build(spec)
  end

  desc "Install the dbi-dbrc gem"
  task :install => [:create] do
    gem = Dir["*.gem"].first
    sh "gem install -l #{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.3.0 Rakefile