From 0e2b03cda815b9ac7d4b8a1885af1e74f0a78a6a Mon Sep 17 00:00:00 2001 From: Daniel Berger Date: Mon, 15 Jun 2020 16:57:24 -0400 Subject: [PATCH 1/2] Remove miq-kernel / require_relative since it now works as desired in core Ruby. --- lib/gems/pending/util/extensions/miq-kernel.rb | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 lib/gems/pending/util/extensions/miq-kernel.rb diff --git a/lib/gems/pending/util/extensions/miq-kernel.rb b/lib/gems/pending/util/extensions/miq-kernel.rb deleted file mode 100644 index bc4c9434d..000000000 --- a/lib/gems/pending/util/extensions/miq-kernel.rb +++ /dev/null @@ -1,7 +0,0 @@ -module Kernel - # Replaces Kernel's require_relative to allow it to be used in irb and eval - # See: http://bugs.ruby-lang.org/issues/4487 - def require_relative(path) - require File.join(File.dirname(caller[0]), path.to_str) - end -end From 8a7169817905e4c92b5ee1d910a1cad47e7350d6 Mon Sep 17 00:00:00 2001 From: Daniel Berger Date: Mon, 15 Jun 2020 17:08:26 -0400 Subject: [PATCH 2/2] Remove miq-kernel specs. --- spec/util/extensions/miq-kernel_spec.rb | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 spec/util/extensions/miq-kernel_spec.rb diff --git a/spec/util/extensions/miq-kernel_spec.rb b/spec/util/extensions/miq-kernel_spec.rb deleted file mode 100644 index 3005befa0..000000000 --- a/spec/util/extensions/miq-kernel_spec.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'util/extensions/miq-kernel' - -describe Kernel do - it ".require_relative" do - expect(Kernel.respond_to?(:require_relative)).to be_truthy - end -end