Well, spec.activate exists since rubygems 1.8. Maybe this?
diff --git a/lib/bundler/runtime.rb b/lib/bundler/runtime.rb
index 52e3dc6..8683cf7 100644
--- a/lib/bundler/runtime.rb
+++ b/lib/bundler/runtime.rb
@@ -31,9 +31,13 @@ module Bundler
raise e
end
- Bundler.rubygems.mark_loaded(spec)
- load_paths = spec.load_paths.reject {|path| $LOAD_PATH.include?(path)}
- $LOAD_PATH.unshift(*load_paths)
+ if spec.respond_to?(:activate)
+ spec.activate
+ else
+ Bundler.rubygems.mark_loaded(spec)
+ load_paths = spec.load_paths.reject {|path|
$LOAD_PATH.include?(path)}
+ $LOAD_PATH.unshift(*load_paths)
+ end
end
lock
Thank you for considering.
Kind Regards,
Emanuel