genki (owner)

Revisions

gist: 95381 Download_button fork
public
Public Clone URL: git://gist.github.com/95381.git
Embed All Files: show embed
lib/merb-core.rb #
1
2
3
4
5
6
7
8
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