Sha256: 510fa1fa85d5ba203700196653981eb2dfd69563aad452b2930322084e4b9d02

Contents?: true

Size: 799 Bytes

Versions: 2

Compression:

Stored size: 799 Bytes

Contents

require 'rubygems'
require 'rake'
require 'spec/rake/spectask'
require File.expand_path("../lib/merb_datamapper/version", __FILE__)

Spec::Rake::SpecTask.new(:spec) do |spec|
  spec.spec_opts << '--options' << 'spec/spec.opts' if File.exists?('spec/spec.opts')
  spec.libs << 'lib' << 'spec'
  spec.spec_files = FileList['spec/**/*_spec.rb']
end

Spec::Rake::SpecTask.new(:rcov) do |spec|
  spec.libs << 'lib' << 'spec'
  spec.pattern = 'spec/**/*_spec.rb'
  spec.rcov = true
end

desc "Build project gem"
task :build do
  sh "#{RUBY} -S gem build merb_datamapper.gemspec"
end

desc "Build and install gem"
task :install => :build do
  sh "#{RUBY} -S gem install -l ./merb_datamapper-#{Merb::DataMapper::VERSION}.gem --no-rdoc --no-ri"
end

desc 'Default: run spec examples'
task :default => 'spec'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
merb_datamapper-1.1.3 Rakefile
merb_datamapper-1.1.2 Rakefile