Skip to content

Commit

Permalink
Merge pull request #65 from ifad/chore/prefer-require-relative
Browse files Browse the repository at this point in the history
Prefer `require_relative` for internal requires
  • Loading branch information
tagliala authored Sep 20, 2024
2 parents a9a6417 + 58f4dd8 commit f180357
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions lib/hawk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
require 'active_support/core_ext/hash/deep_merge'
require 'active_support/core_ext/object/blank'

require 'hawk/version'
require_relative 'hawk/version'

require 'hawk/error'
require 'hawk/http'
require 'hawk/model'
require_relative 'hawk/error'
require_relative 'hawk/http'
require_relative 'hawk/model'
4 changes: 2 additions & 2 deletions lib/hawk/http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ module Hawk
require 'typhoeus'
require 'multi_json'

require 'hawk/http/caching'
require 'hawk/http/instrumentation'
require_relative 'http/caching'
require_relative 'http/instrumentation'

##
# Represent an HTTP connector, to be linked to a {Model}.
Expand Down

0 comments on commit f180357

Please sign in to comment.