Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fail man tasks without ronn

  • Loading branch information...
commit 2af8c7526c819e36180ca975006a1b3ea64db9b8 1 parent 072a120
André Arko indirect authored
Showing with 15 additions and 5 deletions.
  1. +15 −5 Rakefile
20 Rakefile
View
@@ -5,9 +5,6 @@ require 'rubygems'
require 'shellwords'
require 'benchmark'
-task :build => ["man:clean", "man:build"]
-task :release => ["man:clean", "man:build"]
-
def safe_task(&block)
yield
true
@@ -176,6 +173,15 @@ begin
end
end
+rescue LoadError
+ task :spec do
+ abort "Run `rake spec:deps` to be able to run the specs"
+ end
+end
+
+begin
+ require 'ronn'
+
namespace :man do
directory "lib/bundler/man"
@@ -204,11 +210,15 @@ begin
end
rescue LoadError
- task :spec do
- abort "Run `rake spec:deps` to be able to run the specs"
+ namespace :man do
+ task(:build) { abort "Install the ronn gem to be able to release!" }
+ task(:clean) { abort "Install the ronn gem to be able to release!" }
end
end
+task :build => ["man:clean", "man:build"]
+task :release => ["man:clean", "man:build"]
+
namespace :vendor do
desc "Build the vendor dir"
task :build => :clean do
Please sign in to comment.
Something went wrong with that request. Please try again.