Sha256: cebd845f1dd2642acd84e055e902096b13cc016cef3390e8f63ab0209cefd77f

Contents?: true

Size: 1.91 KB

Versions: 1

Compression:

Stored size: 1.91 KB

Contents

# = Rakefile
#
# code: 
# George Moschovitis  <gm@navel.gr>
#
# (c) 2004 Navel, all rights reserved.
# $Id: connection.rb 71 2004-10-18 10:50:22Z gmosx $

require "rake"
require "rake/rdoctask"
require "rubygems"
require "rake/gempackagetask"

require "lib/n/config"

# ----------------------------------------------------------------------

desc "Default Task"
task :default => :package

# ----------------------------------------------------------------------

desc "Run unit tests"
task :test do
  # Might wait until I"ve got some...
end

# ----------------------------------------------------------------------

Rake::RDocTask.new do |rd|
	rd.main = "README"
	rd.rdoc_dir = "rdoc"
	rd.rdoc_files.include("README", "lib/**/*.rb")
end
	
# ----------------------------------------------------------------------

PKG_VERSION = $srv_version
PKG_FILES = FileList[
	"[A-Z]*", "{bin,etc,examples,doc,lib,test}/**/*" 
#	"examples/*.rb"
].exclude(".svn/**/*")

spec = Gem::Specification.new do |s|
  s.name = "nitro"
  s.version = PKG_VERSION
  s.summary = "Web Engine"
  s.description = "An efficient, yet simple engine for Web Applications"
# s.add_dependency("extensions", ">= 0.5")
  s.required_ruby_version = ">= 1.8.1"
  s.files = PKG_FILES.to_a 
  s.require_path = "lib"
  s.autorequire = "n/std"
  s.has_rdoc = true
  s.extra_rdoc_files = FileList["[A-Z]*"].to_a
  s.rdoc_options << "--main" << "README" << "--title" << 
			"Nitro Documentation"
  s.test_files = []
	s.bindir = "bin"
  s.author = "George Moschovitis"
  s.email = "gm@navel.gr"
  s.homepage = "http://www.navel.gr/nitro"
  s.rubyforge_project = "nitro"
end

Rake::GemPackageTask.new(spec) do |pkg|
  pkg.package_dir = "dist"
  pkg.need_zip = true
  pkg.need_tar = true
end

# ----------------------------------------------------------------------

desc "Install the gem"
task :install => :repackage do
  sh "gem install --local --no-rdoc dist/nitro-#{PKG_VERSION}.gem"
end

# vim: ft=ruby

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nitro-0.1.2 Rakefile