From f0b5582dc600c535526c15a1694806d1f4e09826 Mon Sep 17 00:00:00 2001 From: David Rice Date: Thu, 11 Apr 2024 13:20:44 +0100 Subject: [PATCH] build: use require_relative instead of load path shenanigans --- lib/atco.rb | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/lib/atco.rb b/lib/atco.rb index c363f53..4405688 100644 --- a/lib/atco.rb +++ b/lib/atco.rb @@ -1,14 +1,11 @@ # frozen_string_literal: true -$LOAD_PATH.unshift(File.dirname(__FILE__)) unless - $LOAD_PATH.include?(File.dirname(__FILE__)) || $LOAD_PATH.include?(__dir__) - require 'open3' require 'tempfile' -require 'atco/location' -require 'atco/journey' -require 'atco/stop' -require 'atco/version' +require_relative 'atco/location' +require_relative 'atco/journey' +require_relative 'atco/stop' +require_relative 'atco/version' module Atco class << self