Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (32 sloc) 1.07 KB
# -*- 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', '')
p.extra_deps = [['rack-datamapper', '~>0.3']]
p.remote_rdoc_dir = '' # Release to root
p.rspec_options << '--options' << 'spec/spec.opts'
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"
desc 'generate rails using all generators and run the specs'
task :integration_tests => [:spec, :install] do
require 'datamapper4rails/integration_test' 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"
require 'yard'
# vim: syntax=Ruby
Jump to Line
Something went wrong with that request. Please try again.