Sha256: 9863e40acc1ea46a7865296bf8dfe403cf87617b8b77e40c4e4c3642e020d862
Contents?: true
Size: 1.33 KB
Versions: 1
Compression:
Stored size: 1.33 KB
Contents
require 'rubygems' require 'rake' require 'rake/clean' require 'rake/gempackagetask' require 'rake/rdoctask' require 'rake/testtask' PKG_NAME = 'chrysalis' PKG_VERSION = '0.1.0' PKG_FILES = FileList[ '[A-Z]*', 'lib/**/*' ] spec = Gem::Specification.new do |s| s.name = PKG_NAME s.version = PKG_VERSION s.files = PKG_FILES s.add_dependency('rake', '>= 0.7.3') s.add_dependency('gratr', '>= 0.4.3') s.author = "Jared Hanson" s.email = "jaredhanson@gmail.com" s.homepage = "http://chrysalis.rubyforge.org/" s.rubyforge_project = "chrysalis" s.summary = "Simple dependency management with Ruby and Rake." end Rake::GemPackageTask.new(spec) do |pkg| pkg.gem_spec = spec end Rake::RDocTask.new do |rdoc| rdoc.rdoc_dir = 'doc' rdoc.rdoc_files.include('README') rdoc.rdoc_files.include('lib/chrysalis.rb') rdoc.rdoc_files.include('lib/chrysalis/**/*.rb') end desc "Preview the rdoc HTML files in web browser" task :preview_rdoc do sh "heel -r doc" + (RUBY_PLATFORM.match(/mswin/) ? " 2>&1" : "") end task :preview_rdoc => :rdoc desc "Publish the rdoc HTML files to RubyForge" task :publish_rdoc do sh "scp -r doc/* jaredhanson@rubyforge.org:/var/www/gforge-projects/chrysalis/api" end task :publish_rdoc => :rdoc Rake::TestTask.new do |test| test.libs << "test" test.test_files = FileList['test/test_suite.rb'] end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
chrysalis-0.1.0 | Rakefile |