Sha256: 5d980d4e1ada201d44e0474171ab43a8e8284f56917c6582be21024317789699

Contents?: true

Size: 1.05 KB

Versions: 1

Compression:

Stored size: 1.05 KB

Contents

require 'rubygems'
require 'rake/gempackagetask'

PLUGIN = "merb_datamapper"
NAME = "merb_datamapper"
VERSION = "0.5"
AUTHOR = "Jason Toy"
EMAIL = "jtoy@rubynow.com"
HOMEPAGE = "http://merbivore.com"
SUMMARY = "Merb plugin that provides DataMapper support for Merb"

spec = Gem::Specification.new do |s|
  s.name = NAME
  s.version = VERSION
  s.platform = Gem::Platform::RUBY
  s.has_rdoc = true
  s.extra_rdoc_files = ["README", "LICENSE", 'TODO']
  s.summary = SUMMARY
  s.description = s.summary
  s.author = AUTHOR
  s.email = EMAIL
  s.homepage = HOMEPAGE
  s.add_dependency('merb', '>= 0.5')
  s.add_dependency('datamapper', '>= 0.2.3')
  s.require_path = 'lib'
  s.autorequire = PLUGIN
  s.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,specs,datamapper_generators}/**/*")
end

Rake::GemPackageTask.new(spec) do |pkg|
  pkg.gem_spec = spec
end

task :install do
  sh %{rake package}
  sh %{sudo gem install pkg/#{NAME}-#{VERSION}}
end

task :release => :package do
  sh %{rubyforge add_release merb #{PLUGIN} #{VERSION} pkg/#{NAME}-#{VERSION}.gem}
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
merb_datamapper-0.5 Rakefile