diff options
author | Azul <azul@riseup.net> | 2017-10-11 15:46:48 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2017-10-11 15:46:48 +0200 |
commit | 726c035b7b7fac636982ac6e4c28e199d4c8cc8a (patch) | |
tree | 2c01c589fc160e9b7d48e3e9e1f85f17a9c3b175 /bin/nickserver | |
parent | fac140a8ff76e98c275194845125d4c97f4ba07b (diff) |
style: more rubocop fixes
Diffstat (limited to 'bin/nickserver')
-rwxr-xr-x | bin/nickserver | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/nickserver b/bin/nickserver index 4706d8b..0890def 100755 --- a/bin/nickserver +++ b/bin/nickserver @@ -5,7 +5,8 @@ # def load_local_gem(dir_path = '../..') - base_directory = File.expand_path(dir_path, File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__) + actual_file = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__ + base_directory = File.expand_path(dir_path, actual_file) unless $LOAD_PATH.include? "#{base_directory}/lib" if File.exist?("#{base_directory}/Gemfile.lock") ENV['BUNDLE_GEMFILE'] ||= "#{base_directory}/Gemfile" |