Sha256: 26c5fc9bd52516e8407c4a600bc3f2713c132c49a1bdd350fc1fe004495ef98e

Contents?: true

Size: 1.08 KB

Versions: 30

Compression:

Stored size: 1.08 KB

Contents

# Rakefile for rubypants  -*-ruby-*-
require 'rake/rdoctask'


desc "Run all the tests"
task :default => [:test]

desc "Do predistribution stuff"
task :predist => [:doc]


desc "Run all the tests"
task :test do
  ruby 'test_rubypants.rb'
end

desc "Make an archive as .tar.gz"
task :dist => :test do
  system "darcs dist -d rubypants#{get_darcs_tree_version}"
end


desc "Generate RDoc documentation"
Rake::RDocTask.new(:doc) do |rdoc|
  rdoc.options << '--line-numbers --inline-source --all'
  rdoc.rdoc_files.include 'README'
  rdoc.rdoc_files.include 'rubypants.rb'
end


# Helper to retrieve the "revision number" of the darcs tree.
def get_darcs_tree_version
  return ""  unless File.directory? "_darcs"

  changes = `darcs changes`
  count = 0
  tag = "0.0"
  
  changes.each("\n\n") { |change|
    head, title, desc = change.split("\n", 3)
    
    if title =~ /^  \*/
      # Normal change.
      count += 1
    elsif title =~ /tagged (.*)/
      # Tag.  We look for these.
      tag = $1
      break
    else
      warn "Unparsable change: #{change}"
    end
  }

  "-" + tag + "." + count.to_s
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
typo-5.5 vendor/rubypants/Rakefile
typo-5.4.4 vendor/rubypants/Rakefile
typo-5.4.3 vendor/rubypants/Rakefile
typo-5.4.2 vendor/rubypants/Rakefile
typo-5.4.1 vendor/rubypants/Rakefile
typo-5.4 vendor/rubypants/Rakefile
typo-3.99.0 vendor/rubypants/Rakefile
typo-3.99.3 vendor/rubypants/Rakefile
typo-3.99.1 vendor/rubypants/Rakefile
typo-3.99.2 vendor/rubypants/Rakefile
typo-4.0.0 vendor/rubypants/Rakefile
typo-4.0.2 vendor/rubypants/Rakefile
typo-4.0.1 vendor/rubypants/Rakefile
typo-3.99.4 vendor/rubypants/Rakefile
typo-4.0.3 vendor/rubypants/Rakefile
typo-4.1.1 vendor/rubypants/Rakefile
typo-5.0.1 vendor/rubypants/Rakefile
typo-5.0.2 vendor/rubypants/Rakefile
typo-4.1 vendor/rubypants/Rakefile
typo-5.0.3.98.1 vendor/rubypants/Rakefile