Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
guard against missing ronn during release
Browse files Browse the repository at this point in the history
  • Loading branch information
indirect committed Apr 30, 2015
1 parent b0a32a6 commit a9b4aa6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -291,12 +291,15 @@ begin
task :clean do
rm_rf "lib/bundler/man"
end

task(:require) { }
end

rescue LoadError
namespace :man do
task(:build) { warn "Install the ronn gem to be able to release!" }
task(:clean) { warn "Install the ronn gem to be able to release!" }
task(:require) { abort "Install the ronn gem to be able to release!" }
task(:build) { warn "Install the ronn gem to build the help pages" }
task(:clean) { }
end
end

Expand All @@ -308,6 +311,6 @@ end

require 'bundler/gem_tasks'
task :build => ["man:clean", "man:build"]
task :release => ["man:clean", "man:build"]
task :release => ["man:require", "man:clean", "man:build"]

task :default => :spec

0 comments on commit a9b4aa6

Please sign in to comment.