lib/bundler/rubygems_ext.rb in bundler-1.6.0 vs lib/bundler/rubygems_ext.rb in bundler-1.6.1

- old
+ new

@@ -43,9 +43,18 @@ File.join(full_gem_path, require_path) end end end + if method_defined?(:extension_dir) + alias_method :rg_extension_dir, :extension_dir + def extension_dir + @extension_dir ||= source.respond_to?(:extension_dir_name) ? + File.expand_path(File.join(extensions_dir, source.extension_dir_name)) : + rg_extension_dir + end + end + # RubyGems 1.8+ used only. remove_method :gem_dir if instance_methods(false).include?(:gem_dir) def gem_dir full_gem_path end