Sha256: 50bf6b96d0de6a5d784f978ae575f189f2697af2c425d9580b373a016aa975ab

Contents?: true

Size: 1.11 KB

Versions: 1

Compression:

Stored size: 1.11 KB

Contents

require 'rubygems'
require 'rake'
require 'echoe'

def with_gem(gemname, &blk)
  begin
    require gemname
    blk.call
  rescue LoadError => e
    puts "Failed to load gem #{gemname} because #{e}."
  end
end

Echoe.new('dm-rinda-adapter', '0.1.0') do |p|
  p.description    = "A datamapper adapter to connect to a rinda tuplespace"
  p.url            = "http://github.com/sfeu/dm-rinda-adapter"
  p.author         = "Sebastian Feuerstack"
  p.email          = "sebastian @nospam@ feuerstack.de"
  p.ignore_pattern = ["tmp/*", "script/*","#*.*#"]
  p.development_dependencies = []
  p.need_tar_gz = false
  p.need_tgz = false 
end

with_gem 'spec/rake/spectask' do
  
  desc 'Run all specs'
  Spec::Rake::SpecTask.new(:spec) do |t|
    t.spec_opts << '--options' << 'spec/spec.opts' if File.exists?('spec/spec.opts')
    t.libs << 'lib'
    t.spec_files = FileList['spec/**_spec.rb']
  end
 
  desc 'Default: Run Specs'
  task :default => :spec
 
  desc 'Run all tests'
  task :test => :spec
 
end
 
with_gem 'yard' do
  desc "Generate Yardoc"
  YARD::Rake::YardocTask.new do |t|
    t.files = ['lib/**/*.rb', 'README.markdown']
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dm-rinda-adapter-0.1.0 Rakefile