Sha256: d49437340cc983e2b7ea35ba9944cc8133b1b05f55422ccd4bfce492b445d6d3
Contents?: true
Size: 1.68 KB
Versions: 1
Compression:
Stored size: 1.68 KB
Contents
require 'rubygems' require 'spec' require 'spec/rake/spectask' require 'pathname' ROOT = Pathname(__FILE__).dirname.expand_path require ROOT + 'lib/ferret_adapter/version' AUTHOR = "Bernerd Schaefer" EMAIL = "bernerd@wieck.com" GEM_NAME = "dm-ferret-adapter" GEM_VERSION = DataMapper::More::FerretAdapter::VERSION GEM_DEPENDENCIES = [["dm-core", ">=#{GEM_VERSION}"]] GEM_CLEAN = ["log", "pkg"] GEM_EXTRAS = { :has_rdoc => true, :extra_rdoc_files => %w[ README.txt LICENSE TODO ] } PROJECT_NAME = "datamapper" PROJECT_URL = "http://github.com/sam/dm-more/tree/master/adapters/dm-ferret-adapter" PROJECT_DESCRIPTION = PROJECT_SUMMARY = "Ferret Adapter for DataMapper" require ROOT.parent.parent + 'tasks/hoe' task :default => [ :spec ] WIN32 = (RUBY_PLATFORM =~ /win32|mingw|cygwin/) rescue nil SUDO = WIN32 ? '' : ('sudo' unless ENV['SUDOLESS']) desc "Install #{GEM_NAME} #{GEM_VERSION}" task :install => [ :package ] do sh "#{SUDO} gem install --local pkg/#{GEM_NAME}-#{GEM_VERSION} --no-update-sources", :verbose => false end desc "Uninstall #{GEM_NAME} #{GEM_VERSION} (default ruby)" task :uninstall => [ :clobber ] do sh "#{SUDO} gem uninstall #{GEM_NAME} -v#{GEM_VERSION} -I -x", :verbose => false end desc 'Run specifications' Spec::Rake::SpecTask.new(:spec) do |t| if File.exists?('spec/spec.opts') t.spec_opts << '--options' << 'spec/spec.opts' end t.spec_files = Pathname.glob((ROOT + 'spec/**/*_spec.rb').to_s) begin t.rcov = ENV.has_key?('NO_RCOV') ? ENV['NO_RCOV'] != 'true' : true t.rcov_opts << '--exclude' << 'spec' t.rcov_opts << '--text-summary' t.rcov_opts << '--sort' << 'coverage' << '--sort-reverse' rescue Exception # rcov not installed end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dm-ferret-adapter-0.9.7 | Rakefile |