Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

45 lines (37 sloc) 1.463 kb
require 'rubygems'
require 'spec'
require 'rake/clean'
require 'rake/gempackagetask'
require 'spec/rake/spectask'
require 'pathname'
CLEAN.include '{log,pkg}/'
spec = Gem::Specification.new do |s|
s.name = 'dm-timeline'
s.version = '0.0.1'
s.platform = Gem::Platform::RUBY
s.has_rdoc = true
s.extra_rdoc_files = %w[ README LICENSE TODO ]
s.summary = 'DataMapper plugin providing temporal object behavior'
s.description = s.summary
s.author = 'Dirkjan Bussink'
s.email = 'd.bussink@gmail.com'
s.homepage = 'http://github.com/dbussink/dm-timeline'
s.require_path = 'lib'
s.files = FileList[ '{lib,spec}/**/*.rb', 'spec/spec.opts', 'Rakefile', *s.extra_rdoc_files ]
s.add_dependency('dm-core', ">=0.9.1")
end
task :default => [ :spec ]
WIN32 = (RUBY_PLATFORM =~ /win32|mingw|cygwin/) rescue nil
SUDO = WIN32 ? '' : ('sudo' unless ENV['SUDOLESS'])
Rake::GemPackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
end
desc "Install #{spec.name} #{spec.version}"
task :install => [ :package ] do
sh "#{SUDO} gem install pkg/#{spec.name}-#{spec.version} --no-update-sources", :verbose => false
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(Pathname.new(__FILE__).dirname + 'spec/**/*_spec.rb')
end
Jump to Line
Something went wrong with that request. Please try again.