Sha256: aa14ef7112db5e68def076eec6553c709d82fcf1d91617e00069ec6dc34a26d7
Contents?: true
Size: 1.68 KB
Versions: 1
Compression:
Stored size: 1.68 KB
Contents
require "rake" require "rake/rdoctask" require "rake/testtask" begin require 'jeweler' Jeweler::Tasks.new do |gemspec| gemspec.name = "shorturl" gemspec.summary = "Shortens URLs using services such as RubyURL, urlTea, and TinyURL" gemspec.description = "Shortens URLs using services such as RubyURL, urlTea, and TinyURL" gemspec.email = "robby@planetargon.com" gemspec.homepage = "http://github.com/robbyrussell/shorturl" gemspec.authors = ["Robby Russell"] gemspec.rdoc_options = [ "--title", "ShortURL Documentation", "--main", "README", "-S", "-N", "--all"] end rescue LoadError puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com" end task :default => [ :test, :doc ] desc "Run the tests" Rake::TestTask.new("test") { |t| t.pattern = "test/**/ts_*.rb" t.verbose = true } desc "Write the documentation" Rake::RDocTask.new("doc") { |rdoc| rdoc.rdoc_dir = "doc" rdoc.title = "ShortURL Documentation" # rdoc.options << "--line-numbers --inline-source" rdoc.rdoc_files.include("README") rdoc.rdoc_files.include("TODO") rdoc.rdoc_files.include("MIT-LICENSE") rdoc.rdoc_files.include("ChangeLog") rdoc.rdoc_files.include("lib/*.rb") rdoc.rdoc_files.exclude("test/*") } desc "Upload documentation to RubyForge" task :upload_doc do sh "scp -r doc/* robbyrussell@rubyforge.org:/var/www/gforge-projects/shorturl" end desc "Statistics for the code" task :stats do begin require "code_statistics" CodeStatistics.new(["Code", "lib"], ["Units", "test"]).to_s rescue LoadError puts "Couldn't load code_statistics (install rails)" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
caleb-shorturl-0.8.9 | Rakefile |