Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

supports ruby 1.9+ #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

joshskeen
Copy link

Old versions of ruby (pre 1.9) added the current directory to the $LOAD_PATH, however new versions of ruby (1.9+) do not. Starting with modern ruby versions 1.9 and greater (including OSX Mavericks, which uses ruby 2.0 for /usr/bin/ruby), the scripts will no longer work correctly, due to this issue.
This pull request fixes that problem, by using the require_relative method to load the helpers.rb file.

Ruby 1.9+ is now REQUIRED with this change. If we want to support versions prior to ruby 1.9, we can also add this. If so, how old a version would we like to support?

@joshskeen
Copy link
Author

Actually, the ruby core team has retired ruby 1.8, so dropping support for pre-1.9 is probably the right thing to do!
https://www.ruby-lang.org/en/news/2013/06/30/we-retire-1-8-7/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant