Blame SOURCES/bundler-add-support-for-binary-extensions-in-dedicated-folde.patch

204dbc
From ce83a370930cde5ca2d6bc1c92f1d29603e44145 Mon Sep 17 00:00:00 2001
204dbc
From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <vondruch@redhat.com>
204dbc
Date: Thu, 19 Jan 2012 10:31:15 +0100
204dbc
Subject: [PATCH] Add support for binary extensions in dedicated folder.
204dbc

204dbc
---
204dbc
 lib/bundler/rubygems_ext.rb |    5 ++++-
204dbc
 1 files changed, 4 insertions(+), 1 deletions(-)
204dbc

204dbc
diff --git a/lib/bundler/rubygems_ext.rb b/lib/bundler/rubygems_ext.rb
204dbc
index a68fb0a..89796d3 100644
204dbc
--- a/lib/bundler/rubygems_ext.rb
204dbc
+++ b/lib/bundler/rubygems_ext.rb
204dbc
@@ -31,13 +31,16 @@ module Gem
204dbc
     end
204dbc
 
204dbc
     def load_paths
204dbc
-      require_paths.map do |require_path|
204dbc
+      paths = require_paths.map do |require_path|
204dbc
         if require_path.include?(full_gem_path)
204dbc
           require_path
204dbc
         else
204dbc
           File.join(full_gem_path, require_path)
204dbc
         end
204dbc
       end
204dbc
+
204dbc
+      paths << File.join(ext_dir, require_paths.first) unless extensions.empty?
204dbc
+      paths
204dbc
     end
204dbc
 
204dbc
     # RubyGems 1.8+ used only.
204dbc
-- 
204dbc
1.7.7.5
204dbc