summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-06-08 21:30:30 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-06-08 21:30:30 +0200
commit80217bfe0b8b7de30ce21f993fcf74c3f2737ea1 (patch)
treea4eeed192aa7c740cc4ae0f4d25b66ddef8d3152 /lib
parentca28a04668f4e820153cb94423370255900cb165 (diff)
downloadbundler-80217bfe0b8b7de30ce21f993fcf74c3f2737ea1.tar.gz
Migrate two more requires to be relative
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler.rb2
-rw-r--r--lib/bundler/vendored_thor.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb
index d8f9462c6d..735750f59d 100644
--- a/lib/bundler.rb
+++ b/lib/bundler.rb
@@ -564,7 +564,7 @@ EOF
private
def eval_yaml_gemspec(path, contents)
- Kernel.send(:require, "bundler/psyched_yaml")
+ require_relative "bundler/psyched_yaml"
# If the YAML is invalid, Syck raises an ArgumentError, and Psych
# raises a Psych::SyntaxError. See psyched_yaml.rb for more info.
diff --git a/lib/bundler/vendored_thor.rb b/lib/bundler/vendored_thor.rb
index b0b7e7be84..0666cfc9b9 100644
--- a/lib/bundler/vendored_thor.rb
+++ b/lib/bundler/vendored_thor.rb
@@ -2,7 +2,7 @@
module Bundler
def self.require_thor_actions
- Kernel.send(:require, "bundler/vendor/thor/lib/thor/actions")
+ require_relative "vendor/thor/lib/thor/actions"
end
end
require_relative "vendor/thor/lib/thor"