From e17fbbfb30da394d6abbb91da4a963ff8913ad47 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 1 Mar 2026 20:23:36 +0200 Subject: fix dry-run crash when parent directory does not exist yet, add rake and rcm fallback to examples --- examples/plain_ruby/config.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'examples/plain_ruby/config.rb') diff --git a/examples/plain_ruby/config.rb b/examples/plain_ruby/config.rb index f49bd01..c730c05 100755 --- a/examples/plain_ruby/config.rb +++ b/examples/plain_ruby/config.rb @@ -8,7 +8,11 @@ # # Requires rcm to be installed as a gem, or adjust the path below: # require_relative '../../lib/dsl' -require 'rcm' +begin + require 'rcm' +rescue LoadError + require_relative '../../lib/dsl' +end configure do # Write a simple text file with static content. -- cgit v1.2.3