Skip to content

Commit

Permalink
build: use require_relative instead of load path shenanigans (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjrice authored Apr 11, 2024
1 parent 9851708 commit 9831d3e
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 9831d3e

Please sign in to comment.