Sha256: 0042bba804c05b2211f92ff9b1bef89690c2187d1c91459e163d2ea354f7daef

Contents?: true

Size: 613 Bytes

Versions: 1

Compression:

Stored size: 613 Bytes

Contents

require 'rake'
require 'rake/clean'
require 'rspec/core/rake_task'

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

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, true)
  end

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

desc "Run the test suite"
RSpec::Core::RakeTask.new(:spec)

task :default => :spec

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dbi-dbrc-1.5.0 Rakefile