Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: version-0.3.1
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 42 lines (32 sloc) 1.126 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
# -*- ruby -*-

require 'rubygems'
require 'hoe'

require 'spec'
require 'spec/rake/spectask'
require 'pathname'

require './lib/datamapper4rails/version.rb'

Hoe.spec('datamapper4rails') do |p|
  p.rubyforge_name = 'datamapper4rail'
  p.developer('mkristian', 'm.kristian@web.de')
  p.extra_deps = [['rack-datamapper', '~>0.2'], ['rails_datamapper', '>= 0']]
  p.remote_rdoc_dir = '' # Release to root
  p.rspec_options << '--options' << 'spec/spec.opts'
end

desc 'Install the package as a gem.'
task :install => [:clean, :package] do
  gem = Dir['pkg/*.gem'].first
  sh "gem install --local #{gem} --no-ri --no-rdoc"
end

desc 'generate rails using all generators and run the specs'
task :integration_tests => [:spec, :install] do
  require 'datamapper4rails/integration_test'
  Datamapper4Rails::IntegrationTest.new do |t|
    t.generate "datamapper_model role name:string"
    t.generate "datamapper_scaffold domain name:string"
    t.generate "datamapper_rspec_model user name:string"
    t.generate "datamapper_rspec_scaffold group name:string"
  end
end

require 'yard'

YARD::Rake::YardocTask.new

# vim: syntax=Ruby
Something went wrong with that request. Please try again.