Skip to content

Commit

Permalink
build: use require_relative instead of load path shenanigans
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjrice committed Apr 11, 2024
1 parent 7fc42ed commit f0b5582
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions lib/atco.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit f0b5582

Please sign in to comment.