Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

45 lines (37 sloc) 1.478 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-migrations'
s.version = '0.9.0.1'
s.platform = Gem::Platform::RUBY
s.has_rdoc = true
s.extra_rdoc_files = %w[ README LICENSE TODO ]
s.summary = 'DataMapper plugin for writing and specing migrations'
s.description = s.summary
s.author = 'Paul Sadauskas'
s.email = 'psadauskas@gmail.com'
s.homepage = 'http://github.com/sam/dm-more/tree/master/dm-migrations'
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.0')
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.