summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-09-08 21:48:57 -0700
committerTim Smith <tsmith84@gmail.com>2020-09-08 21:48:57 -0700
commit08ab2fa65ffd5f1baf2cef5ca6ddd945cf6b246e (patch)
treea862344891463e2e06d703139c299ff0a2d58b2b
parent306cb33bc807bf9fe573321111fa975c39601652 (diff)
downloadmixlib-shellout-08ab2fa65ffd5f1baf2cef5ca6ddd945cf6b246e.tar.gz
Use __dir__ instead of __FILE__
Makes things a bit easier to read Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--Gemfile6
-rw-r--r--mixlib-shellout-universal-mingw32.gemspec2
-rw-r--r--spec/spec_helper.rb4
3 files changed, 6 insertions, 6 deletions
diff --git a/Gemfile b/Gemfile
index 37987d8..841998c 100644
--- a/Gemfile
+++ b/Gemfile
@@ -3,15 +3,15 @@ source "https://rubygems.org"
gemspec name: "mixlib-shellout"
group :docs do
- gem "yard"
- gem "redcarpet"
gem "github-markup"
+ gem "redcarpet"
+ gem "yard"
end
group :test do
gem "chefstyle", "1.2.0"
- gem "rspec", "~> 3.0"
gem "rake"
+ gem "rspec", "~> 3.0"
end
group :debug do
diff --git a/mixlib-shellout-universal-mingw32.gemspec b/mixlib-shellout-universal-mingw32.gemspec
index 3a3968d..dd41ae4 100644
--- a/mixlib-shellout-universal-mingw32.gemspec
+++ b/mixlib-shellout-universal-mingw32.gemspec
@@ -1,4 +1,4 @@
-gemspec = instance_eval(File.read(File.expand_path("../mixlib-shellout.gemspec", __FILE__)))
+gemspec = instance_eval(File.read(File.expand_path("mixlib-shellout.gemspec", __dir__)))
gemspec.platform = Gem::Platform.new(%w{universal mingw32})
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index fb60fe7..f1d60d2 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -1,5 +1,5 @@
-$:.unshift File.expand_path("../../lib", __FILE__)
-$:.unshift File.expand_path("../..", __FILE__)
+$:.unshift File.expand_path("../lib", __dir__)
+$:.unshift File.expand_path("..", __dir__)
require "mixlib/shellout"
require "tmpdir"