(rubocop) Fix Style/ExpandPathArguments

This commit is contained in:
Tim Sharpe 2019-02-03 11:10:52 +11:00
parent d95c6946b8
commit c7c8e48e2f
3 changed files with 3 additions and 3 deletions

View file

@ -11,7 +11,7 @@ $stdout.sync = true
$stderr.sync = true
# Change to the directory of this file.
Dir.chdir(File.expand_path('../', __FILE__))
Dir.chdir(File.expand_path(__dir__))
# This installs the tasks that help with gem creation and
# publishing.

View file

@ -1,7 +1,7 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
$LOAD_PATH.unshift(File.expand_path('../../lib', __FILE__))
$LOAD_PATH.unshift(File.expand_path('../lib', __dir__))
require 'vmfloaty'

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
$LOAD_PATH.push File.expand_path('../lib', __FILE__)
$LOAD_PATH.push File.expand_path('lib', __dir__)
require 'vmfloaty/version'
Gem::Specification.new do |s|