Skip to content

Commit

Permalink
Merge pull request #350 from tagliala/chore/prefer-require-relative
Browse files Browse the repository at this point in the history
Prefer require_relative for internal requires
  • Loading branch information
JacobEvelyn authored Sep 25, 2024
2 parents ac1231e + c8c11f6 commit ef52a1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

**Gem enhancements:**

- Changed internal `require`s to `require_relative` to make code less dependent on the load path [[#350](https://github.com/panorama-ed/memo_wise/pull/350)]

_No breaking changes!_

**Project enhancements:**
Expand Down
4 changes: 2 additions & 2 deletions lib/memo_wise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

require "set" # Ruby < 3.2 does not load `set` by default.

require "memo_wise/internal_api"
require "memo_wise/version"
require_relative "memo_wise/internal_api"
require_relative "memo_wise/version"

# MemoWise is the wise choice for memoization in Ruby.
#
Expand Down

0 comments on commit ef52a1a

Please sign in to comment.