Rakefile in term_utils-0.4.0 vs Rakefile in term_utils-0.5.0
- old
+ new
@@ -8,10 +8,11 @@
GEM = "#{GEM_NAME}-#{GEM_VERSION}.gem"
task :default => :help
+desc "Print help."
task :help do
puts <<-EOS
usage: rake <target>...
Available targets:
@@ -27,12 +28,14 @@
rake gem
gem push #{GEM}
EOS
end
+desc "Create gem."
task :gem => GEM
+desc "Generate documentation."
task :doc => %w[.doc]
file ".doc" do
sh "yardoc"
sh "touch .doc"
@@ -40,16 +43,19 @@
file GEM => %w[.doc] do
sh "gem build #{GEM_NAME}"
end
+desc "Install gem."
task :install => :gem do
sh "gem install #{GEM}"
end
+desc "Uninstall gem."
task :uninstall do
sh "gem uninstall #{GEM_NAME} --version #{GEM_VERSION}"
end
+desc "Remove documentation and gem."
task :clean do
sh "rm -rf .doc doc #{GEM}"
end