diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-08-08 14:58:51 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-08-10 12:05:11 +0200 |
commit | 1bf9f10484f8aa5e6efb8be3e9152c9a482d9359 (patch) | |
tree | 41b0fc34250f49286092f5cec153c9773971b24f | |
parent | b7d4556cde2df5ff0184988741e5d31dd3f3fbc3 (diff) | |
download | bundler-1bf9f10484f8aa5e6efb8be3e9152c9a482d9359.tar.gz |
Make sure we run the correct ronn with a binstubcommit_docs_to_source_control
-rw-r--r-- | Rakefile | 2 | ||||
-rwxr-xr-x | bin/ronn | 12 |
2 files changed, 13 insertions, 1 deletions
@@ -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 |