Skip to content

Instantly share code, notes, and snippets.

@genki
Created April 14, 2009 19:38
Show Gist options
  • Save genki/95380 to your computer and use it in GitHub Desktop.
Save genki/95380 to your computer and use it in GitHub Desktop.
if File.directory?(gems_dir = File.join(root, "gems")) && !$BUNDLE
$BUNDLE = true; Gem.clear_paths; Gem.path.unshift(gems_dir)
# Warn if local merb-core is available but not loaded.
if File.expand_path($0).index(root) != 0 &&
(local_mc = Dir[File.join(gems_dir, "specifications", "merb-core-*.gemspec")].last)
puts "Warning: please use bin/#{File.basename($0)} to load #{File.basename(local_mc, ".gemspec")} from ./gems" end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment