Skip to content
Browse files

add descriptions to the rakefile

  • Loading branch information...
1 parent b59711c commit f6997e6e844f21cc9360062da18c694112fe906e @technoweenie technoweenie committed Oct 22, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 Rakefile
View
4 Rakefile
@@ -87,6 +87,7 @@ end
#
#############################################################################
+desc "Create tag v#{version} and build and push #{gem_file} to Rubygems"
task :release => :build do
unless `git branch` =~ /^\* master$/
puts "You must be on the master branch to release!"
@@ -99,12 +100,14 @@ task :release => :build do
sh "gem push pkg/#{name}-#{version}.gem"
end
+desc "Build #{gem_file} into the pkg directory"
task :build => :gemspec do
sh "mkdir -p pkg"
sh "gem build #{gemspec_file}"
sh "mv #{gem_file} pkg"
end
+desc "Generate #{gemspec_file}"
task :gemspec => :validate do
# read spec file and split out manifest section
spec = File.read(gemspec_file)
@@ -133,6 +136,7 @@ task :gemspec => :validate do
puts "Updated #{gemspec_file}"
end
+desc "Validate #{gemspec_file}"
task :validate do
libfiles = Dir['lib/*'] - ["lib/#{name}.rb", "lib/#{name}"]
unless libfiles.empty?

0 comments on commit f6997e6

Please sign in to comment.
Something went wrong with that request. Please try again.