Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
53 lines (42 sloc) 1.49 KB
require 'rubygems'
require 'rake'
require 'echoe'
$:.unshift(File.dirname(__FILE__) + "/lib")
require 'tabs_on_rails'
PKG_NAME = ENV['PKG_NAME'] || TabsOnRails::GEM
PKG_VERSION = ENV['PKG_VERSION'] || TabsOnRails::VERSION
PKG_SUMMARY = "A simple Ruby on Rails plugin for creating and managing Tabs."
PKG_FILES = FileList.new("{lib,rails,tasks,test}/**/*") do |files|
files.include %w(*.{rdoc,rb})
files.include %w(Rakefile)
end
RUBYFORGE_PROJECT = nil
if ENV['SNAPSHOT'].to_i == 1
PKG_VERSION << "." << Time.now.utc.strftime("%Y%m%d%H%M%S")
end
Echoe.new(PKG_NAME, PKG_VERSION) do |p|
p.author = "Simone Carletti"
p.email = "weppos@weppos.net"
p.summary = PKG_SUMMARY
p.description = <<-EOD
TabsOnRails is a simple Ruby on Rails plugin for creating and managing Tabs. \
It provides helpers for creating tabs with a flexible interface.
EOD
p.url = "http://code.simonecarletti.com/tabsonrails"
p.project = RUBYFORGE_PROJECT
p.need_zip = true
p.rcov_options = ["--main << README.rdoc -x Rakefile -x rcov"]
p.rdoc_pattern = /^(lib|CHANGELOG.rdoc|README.rdoc|LICENSE.rdoc)/
p.development_dependencies += ["rake >=0.8",
"echoe >=3.1"]
end
begin
require 'code_statistics'
desc "Show library's code statistics"
task :stats do
CodeStatistics.new(["TabsOnRails", "lib"],
["Tests", "test"]).to_s
end
rescue LoadError
puts "CodeStatistics (Rails) is not available"
end