summaryrefslogtreecommitdiff
path: root/chef-universal-mingw32.gemspec
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-07-07 15:31:02 -0700
committerTim Smith <tsmith84@gmail.com>2020-07-07 17:30:49 -0700
commited460911a49716817ded2986e81a5116dfbb795e (patch)
tree05939eafb0047711ff008e89fe84312fbfdc9531 /chef-universal-mingw32.gemspec
parent824d9da7173d0dff9bb2786dcf5584e53e9866eb (diff)
downloadchef-ed460911a49716817ded2986e81a5116dfbb795e.tar.gz
expand_path with __dir__ instead of __FILE__
It's easier to read this at a glance and understand what path we're trying to get. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'chef-universal-mingw32.gemspec')
-rw-r--r--chef-universal-mingw32.gemspec2
1 files changed, 1 insertions, 1 deletions
diff --git a/chef-universal-mingw32.gemspec b/chef-universal-mingw32.gemspec
index 9d77b2526e..3aced09d1b 100644
--- a/chef-universal-mingw32.gemspec
+++ b/chef-universal-mingw32.gemspec
@@ -1,4 +1,4 @@
-gemspec = eval(IO.read(File.expand_path("../chef.gemspec", __FILE__)))
+gemspec = eval(IO.read(File.expand_path('chef.gemspec', __dir__)))
gemspec.platform = Gem::Platform.new(%w{universal mingw32})