openbsd-ports/devel/ruby-isolate/patches/patch-lib_isolate_entry_rb
jeremy 12822b1f75 Update ruby-isolate to 3.2.1, which eliminates the warnings it started
emitting after the rubygems 1.8 update.

Add a patch to fix use with gems with C extensions, using the
--user-install option.

Add a patch to not hide underlying error message when attempting to
activate a gem.
2011-11-17 15:39:15 +00:00

27 lines
1.0 KiB
Plaintext

$OpenBSD: patch-lib_isolate_entry_rb,v 1.1 2011/11/17 15:39:15 jeremy Exp $
Add user-install option so that you don't need to have root access
to use isolate with gems with C extensions.
--- lib/isolate/entry.rb.orig Mon Nov 14 19:51:12 2011
+++ lib/isolate/entry.rb Mon Nov 14 19:52:10 2011
@@ -67,9 +67,7 @@ module Isolate
def activate
fire :activating, :activated do
- spec = self.specification
- raise Gem::LoadError, "Couldn't resolve: #{self}" unless spec
- spec.activate
+ Gem::Specification.find_by_name(name, requirement).activate
end
end
@@ -86,6 +84,7 @@ module Isolate
Gem::DependencyInstaller.new(:development => false,
:generate_rdoc => false,
:generate_ri => false,
+ :user_install => true,
:install_dir => @sandbox.path)
Gem::Command.build_args = Array(options[:args]) if options[:args]