summaryrefslogtreecommitdiff
path: root/examples/gem
diff options
context:
space:
mode:
Diffstat (limited to 'examples/gem')
-rwxr-xr-xexamples/gem/config.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/gem/config.rb b/examples/gem/config.rb
index c4bbc23..e6d30d1 100755
--- a/examples/gem/config.rb
+++ b/examples/gem/config.rb
@@ -2,7 +2,11 @@
# Example: Using RCM as a gem inside a Bundler-managed project, without Rake.
#
# rcm is declared in the Gemfile and loaded via bundler.
-require 'rcm'
+begin
+ require 'rcm'
+rescue LoadError
+ require_relative '../../lib/dsl'
+end
configure do
# Only run on the host named 'earth'