Skip to content

Instantly share code, notes, and snippets.

@ender672
Created Feb 11, 2010
Embed
What would you like to do?
From 9f498d662e0b1cd1ddfdb985928fb6b2a4d50dcf Mon Sep 17 00:00:00 2001
From: ender672 <tle@holymonkey.com>
Date: Thu, 11 Feb 2010 14:29:12 -0800
Subject: [PATCH] Remove a hack for bin wrappers that caused an error with unicorn
---
lib/bundler/runtime.rb | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
diff --git a/lib/bundler/runtime.rb b/lib/bundler/runtime.rb
index 32356ed..69abd34 100644
--- a/lib/bundler/runtime.rb
+++ b/lib/bundler/runtime.rb
@@ -243,14 +243,6 @@ module Bundler
# === Following hacks are to improve on the generated bin wrappers ===
- # Yeah, talk about a hack
- source_index_class = (class << Gem::SourceIndex ; self ; end)
- source_index_class.send(:define_method, :from_gems_in) do |*args|
- source_index = Gem::SourceIndex.new
- source_index.add_specs *specs
- source_index
- end
-
# OMG more hacks
gem_class = (class << Gem ; self ; end)
gem_class.send(:define_method, :bin_path) do |name, *args|
--
1.6.3.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment