Sha256: 61bca671b6e6e027ce270dacb285dc643b1702aa3a6edb4db9e37b1a0b5576f7
Contents?: true
Size: 1.74 KB
Versions: 2
Compression:
Stored size: 1.74 KB
Contents
require 'rubygems' require 'spec' require 'spec/rake/spectask' require 'pathname' ROOT = Pathname(__FILE__).dirname.expand_path require ROOT + 'lib/dm-adjust/version' AUTHOR = "Sindre Aarsaether" EMAIL = "sindre [a] identu [d] no" GEM_NAME = "dm-adjust" GEM_VERSION = DataMapper::More::Adjust::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/dm-adjust" PROJECT_DESCRIPTION = PROJECT_SUMMARY = "DataMapper plugin providing methods to increment and decrement properties" require ROOT.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} (default ruby)" task :install => [ :package ] do sh "#{SUDO} gem install --local pkg/#{GEM_NAME}-#{GEM_VERSION} --no-update-sources", :verbose => false end namespace :jruby do desc "Install #{GEM_NAME} #{GEM_VERSION} with JRuby" task :install => [ :package ] do sh %{#{SUDO} jruby -S gem install --local pkg/#{GEM_NAME}-#{GEM_VERSION} --no-update-sources}, :verbose => false end end desc 'Run specifications' Spec::Rake::SpecTask.new(:spec) do |t| t.spec_opts << '--options' << 'spec/spec.opts' if File.exists?('spec/spec.opts') 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dm-adjust-0.9.6 | Rakefile |
dm-adjust-0.9.7 | Rakefile |