require 'rubygems' require 'rake' require 'spec/rake/spectask' Spec::Rake::SpecTask.new(:spec) do |spec| 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 begin require 'jeweler' Jeweler::Tasks.new do |gemspec| gemspec.name = "consadole_aggregator" gemspec.summary = "Consadole Sapporo's Information Aggregator" gemspec.email = "niku@niku.name" gemspec.homepage = "http://github.com/niku/consadole_aggregator" gemspec.authors = ["niku"] gemspec.required_ruby_version = '~>1.9.1' gemspec.add_development_dependency(['nokogiri','dm-core','dm-types','dm-validations']) gemspec.add_development_dependency('rspec') end rescue LoadError puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com" end task :default => :spec