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

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

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

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