Skip to content

Instantly share code, notes, and snippets.

@mpapis
Created December 30, 2015 06:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mpapis/bac6163f8855e12f7833 to your computer and use it in GitHub Desktop.
Save mpapis/bac6163f8855e12f7833 to your computer and use it in GitHub Desktop.
diff --git a/lib/bundler-unload.rb b/lib/bundler-unload.rb
index ff86037..c433c7b 100644
--- a/lib/bundler-unload.rb
+++ b/lib/bundler-unload.rb
@@ -28,6 +28,15 @@ module Bundler
Gem::Specification.all = specs
end
end
+
+ class MoreFuture
+ def plain_specs
+ Gem::Specification.stubs
+ end
+ def plain_specs=(specs)
+ Gem::Specification.all = specs
+ end
+ end
end
class << self
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment