What is the best practice if I want to require a relative file in Ruby and I want it to work in both 1.8.x and >=1.9.2?
I see a few options:
If you were building a gem, you would not want to pollute the load path.
But, In the case of a standalone application it is very convenient to just add the current directory to the load path as you do in the first 2 examples.
My vote goes to the first option on the list.
I would love to see some solid Ruby best practices literature.