| 1 |
require "rubygems" |
|---|
| 2 |
require "rake/gempackagetask" |
|---|
| 3 |
|
|---|
| 4 |
PLUGIN = "merb_sequel" |
|---|
| 5 |
NAME = "merb_sequel" |
|---|
| 6 |
VERSION = "0.9" |
|---|
| 7 |
AUTHOR = "Wayne E. Seguin, Lance Carlson" |
|---|
| 8 |
EMAIL = "wayneeseguin@gmail.com, lancecarlson@gmail.com" |
|---|
| 9 |
HOMEPAGE = "http://merb-plugins.rubyforge.org/merb_sequel/" |
|---|
| 10 |
SUMMARY = "Merb plugin that provides support for Sequel and Sequel::Model" |
|---|
| 11 |
|
|---|
| 12 |
specification = Gem::Specification.new do |spec| |
|---|
| 13 |
spec.name = NAME |
|---|
| 14 |
spec.email = EMAIL |
|---|
| 15 |
spec.author = AUTHOR |
|---|
| 16 |
spec.version = VERSION |
|---|
| 17 |
spec.summary = SUMMARY |
|---|
| 18 |
spec.platform = Gem::Platform::RUBY |
|---|
| 19 |
spec.has_rdoc = true |
|---|
| 20 |
spec.homepage = HOMEPAGE |
|---|
| 21 |
spec.description = SUMMARY |
|---|
| 22 |
spec.autorequire = PLUGIN |
|---|
| 23 |
spec.require_path = "lib" |
|---|
| 24 |
spec.extra_rdoc_files = ["README", "LICENSE", 'TODO'] |
|---|
| 25 |
# Dependencies |
|---|
| 26 |
#spec.add_dependency("merb", ">= 0.9") |
|---|
| 27 |
spec.add_dependency("merb-core", ">= 0.9") # This will probably only be temporary until there is an official merb gem greater than 0.9 |
|---|
| 28 |
spec.add_dependency("sequel", ">= 1.0.0") |
|---|
| 29 |
spec.add_dependency("sequel_model", ">= 0.3.3") |
|---|
| 30 |
spec.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,specs,sequel_generators}/**/*") |
|---|
| 31 |
end |
|---|
| 32 |
|
|---|
| 33 |
Rake::GemPackageTask.new(specification) do |package| |
|---|
| 34 |
package.gem_spec = specification |
|---|
| 35 |
end |
|---|
| 36 |
|
|---|
| 37 |
task :install do |
|---|
| 38 |
sh %{rake package} |
|---|
| 39 |
sh %{sudo gem install pkg/#{NAME}-#{VERSION}} |
|---|
| 40 |
end |
|---|
| 41 |
|
|---|
| 42 |
task :release => :package do |
|---|
| 43 |
sh %{rubyforge add_release merb #{PLUGIN} #{VERSION} pkg/#{NAME}-#{VERSION}.gem} |
|---|
| 44 |
end |
|---|