summaryrefslogtreecommitdiff
path: root/lib/rubygems/ext/ext_conf_builder.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-06-04 10:21:14 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-07-31 07:47:02 +0800
commit0817d95714bc73cef7a4eb6cdfc50a1c5ea4a6c1 (patch)
treeacecf94c5190048e2ac943a2b6241574f15d5431 /lib/rubygems/ext/ext_conf_builder.rb
parent3cc814bdf629c457cc3899675c4cb1418594d47e (diff)
[rubygems/rubygems] Enable `Layout/EmptyLinesAroundAccessModifier`
https://github.com/rubygems/rubygems/commit/41b1cebc33
Diffstat (limited to 'lib/rubygems/ext/ext_conf_builder.rb')
-rw-r--r--lib/rubygems/ext/ext_conf_builder.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rubygems/ext/ext_conf_builder.rb b/lib/rubygems/ext/ext_conf_builder.rb
index 9068f9a5df..97681fa1ac 100644
--- a/lib/rubygems/ext/ext_conf_builder.rb
+++ b/lib/rubygems/ext/ext_conf_builder.rb
@@ -88,6 +88,7 @@ class Gem::Ext::ExtConfBuilder < Gem::Ext::Builder
end
private
+
def self.get_relative_path(path)
path[0..Dir.pwd.length - 1] = '.' if path.start_with?(Dir.pwd)
path