vendor/bundler_gem/gems/bundler-1.1.0/lib/bundler/rubygems_integration.rb
# This backports base_dir which replaces installation path
# Rubygems 1.8+
This backports base_dir which replaces installation path
Rubygems 1.8+
This backports base_dir which replaces installation path Rubygems 1 . 8 +
def backport_base_dir
      Gem::Specification.send(:define_method, :base_dir) do
        return Gem.dir unless loaded_from
        File.dirname File.dirname loaded_from
      end
    end
def backport_base_dir Gem :: Specification . send ( :define_method , :base_dir ) do return Gem . dir unless loaded_from File . dirname File . dirname loaded_from end end
This backports base_dir which replaces installation path
Rubygems 1.8+
This backports base_dir which replaces installation path Rubygems 1 . 8 +