Skip to content

Commit

Permalink
improved a few rake tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew King committed Feb 1, 2012
1 parent 0363e64 commit 7f2f635
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Rakefile
Expand Up @@ -4,18 +4,26 @@ CLEAN << FileList["*.gem"]
CLEAN << FileList["doc/*"]
CLEAN << ".yardoc"

$version = File.read("VERSION").chomp

desc "run yardoc"
task :doc do
sh "yard"
end

desc "run tests"
task :test do
sh "rspec #{FileList["test/*.rb"]}"
end

task :package => :doc do
task :gem do
sh "gem build spire_io.gemspec"
end

desc "generate docs and build a gem"
task :package => [:doc, :gem]

desc "build and install the gem"
task :install => :package do
sh "gem install spire_io-*.gem"
sh "gem install spire_io-#{$version}.gem"
end

0 comments on commit 7f2f635

Please sign in to comment.