diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2019-05-20 18:05:36 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2019-05-20 18:05:36 -0700 |
commit | 9dbdb769bfd963f82eb4bfea53c83501d0193766 (patch) | |
tree | daba4babc4ba8eb73bd765783dc8a53a7abff6be /lib/chef/monkey_patches | |
parent | 248344cfe776b66a8da563c985e34d9c99967791 (diff) | |
download | chef-9dbdb769bfd963f82eb4bfea53c83501d0193766.tar.gz |
This hits the ones that are most frequently required.lcg/require-idempotency
Stops the kernel from scanning through all the activated gems every time in order
to resolve names into pathnames.
See rubygems/rubygems#2762
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/monkey_patches')
-rw-r--r-- | lib/chef/monkey_patches/net_http.rb | 2 | ||||
-rw-r--r-- | lib/chef/monkey_patches/win32/registry.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/monkey_patches/net_http.rb b/lib/chef/monkey_patches/net_http.rb index 775568639b..e1a65a369c 100644 --- a/lib/chef/monkey_patches/net_http.rb +++ b/lib/chef/monkey_patches/net_http.rb @@ -9,7 +9,7 @@ unless defined?(Net::HTTPClientException) Net::HTTPClientException = Net::HTTPServerException end -require "net/http" +require "net/http" unless defined?(Net::HTTP) module Net class HTTPError include ChefNetHTTPExceptionExtensions diff --git a/lib/chef/monkey_patches/win32/registry.rb b/lib/chef/monkey_patches/win32/registry.rb index 38dd220727..c4f369d17c 100644 --- a/lib/chef/monkey_patches/win32/registry.rb +++ b/lib/chef/monkey_patches/win32/registry.rb @@ -17,7 +17,7 @@ require_relative "../../win32/api/registry" require_relative "../../win32/unicode" -require "win32/registry" +require "win32/registry" unless defined?(Win32::Registry) module Win32 class Registry |