Sha256: d31bf1f1d40a379de9f2af9b155f312013c03394c7b655db1b3402494bd9dfcb

Contents?: true

Size: 863 Bytes

Versions: 3

Compression:

Stored size: 863 Bytes

Contents

# Rakefile for term_utils

require 'rubygems'

GEM_SPEC = Gem::Specification::load("term_utils.gemspec")
GEM_NAME = GEM_SPEC.name
GEM_VERSION = GEM_SPEC.version

GEM = "#{GEM_NAME}-#{GEM_VERSION}.gem"

task :default => :help

task :help do
  puts <<-EOS
usage: rake <target>...

Available targets:
  doc           Build doc.
  gem           Build gem.
  clean         Remove doc and gem.
  install       Install gem.
  uninstall     Uninstall gem.

To deploy a gem:
  rm .doc
  rake doc
  rake gem
  gem push #{GEM}
EOS
end

task :gem => GEM

task :doc => %w[.doc]

file ".doc" do
  sh "yardoc"
  sh "touch .doc"
end

file GEM => %w[.doc] do
  sh "gem build #{GEM_NAME}"
end

task :install => :gem do
  sh "gem install #{GEM}"
end

task :uninstall do
  sh "gem uninstall #{GEM_NAME} --version #{GEM_VERSION}"
end

task :clean do
  sh "rm -rf .doc doc #{GEM}"
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
term_utils-0.4.0 Rakefile
term_utils-0.3.2 Rakefile
term_utils-0.3.1 Rakefile