summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2015-04-29 20:50:04 -0700
committerAndre Arko <andre@arko.net>2015-04-30 00:38:22 -0700
commit481d1d7377f1f8fbee060456f8599ea129804b35 (patch)
treee2ae4996603fbdb85fbd4b8224397569e4b4cb32
parent0a33372f62cbb06a3c6e8df8582c565ebc699853 (diff)
downloadbundler-481d1d7377f1f8fbee060456f8599ea129804b35.tar.gz
guard against missing ronn during release
-rw-r--r--Rakefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Rakefile b/Rakefile
index d4d08da058..114f0020e1 100644
--- a/Rakefile
+++ b/Rakefile
@@ -234,12 +234,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
@@ -251,6 +254,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