# encoding: utf-8 # vim: syntax=ruby require 'rubygems' require 'rake' require 'rake/testtask' require 'rake/rdoctask' begin require 'jeweler' Jeweler::Tasks.new do |gem| gem.name = 'dm-money' gem.summary = %q{BigMoney backed DataMapper money plugin.} gem.email = ['shane.hanna@gmail.com'] gem.homepage = 'http://github.com/shanna/dm-money' gem.authors = ['Shane Hanna'] gem.executables = [] # Only ever bundled development executables in bin/* gem.add_dependency 'big_money', '~> 1.1' gem.add_dependency 'dm-core', '~> 1.0' end Jeweler::GemcutterTasks.new rescue LoadError puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler" end Rake::TestTask.new(:test) do |test| test.libs << 'lib' << 'test' test.pattern = 'test/**/test_*.rb' test.verbose = true end Rake::RDocTask.new do |rdoc| if File.exist?('VERSION.yml') config = YAML.load(File.read('VERSION.yml')) version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}" else version = "" end rdoc.rdoc_dir = 'rdoc' rdoc.title = "dm-money #{version}" rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('lib/**/*.rb') end task :default => :test