Skip to content

Commit

Permalink
add descriptions to the rakefile
Browse files Browse the repository at this point in the history
  • Loading branch information
technoweenie committed Oct 22, 2010
1 parent b59711c commit f6997e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Rakefile
Expand Up @@ -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!"
Expand All @@ -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)
Expand Down Expand Up @@ -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?
Expand Down

0 comments on commit f6997e6

Please sign in to comment.