summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-08-08 14:58:51 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-08-10 12:05:11 +0200
commit1bf9f10484f8aa5e6efb8be3e9152c9a482d9359 (patch)
tree41b0fc34250f49286092f5cec153c9773971b24f
parentb7d4556cde2df5ff0184988741e5d31dd3f3fbc3 (diff)
downloadbundler-commit_docs_to_source_control.tar.gz
Make sure we run the correct ronn with a binstubcommit_docs_to_source_control
-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