summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Rakefile2
-rwxr-xr-xbin/ronn12
2 files changed, 13 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index b301023cf3..99fde68dc9 100644
--- a/Rakefile
+++ b/Rakefile
@@ -196,7 +196,7 @@ namespace :man do
index << [ronn, File.basename(roff)]
file roff => ["man", ronn] do
- sh "#{Gem.ruby} -S ronn --roff --pipe #{ronn} > #{roff}"
+ sh "bin/ronn --roff --pipe #{ronn} > #{roff}"
end
file "#{roff}.txt" => roff do
diff --git a/bin/ronn b/bin/ronn
new file mode 100755
index 0000000000..4501d03af3
--- /dev/null
+++ b/bin/ronn
@@ -0,0 +1,12 @@
+#!/usr/bin/env ruby
+# frozen_string_literal: true
+
+load File.expand_path("../with_rubygems", __FILE__) if ENV["RGV"]
+
+require_relative "../spec/support/rubygems_ext"
+
+begin
+ Spec::Rubygems.gem_load("ronn", "ronn")
+rescue Gem::LoadError => e
+ warn "We couln't activate ronn (#{e.requirement}). Run `gem install ronn:'#{e.requirement}'`"
+end