davetron5000 / gli

Make awesome command-line applications the easy way
http://davetron5000.github.io/gli
Apache License 2.0
1.26k stars 102 forks source link

require File.join([File.dirname(__FILE__) VS require_relative #186

Closed Blackbaud-NapoleonKernessant closed 10 years ago

Blackbaud-NapoleonKernessant commented 10 years ago

I just wanted to know if there was a reason you are using 'require File.join([File.dirname(FILE)' in the gemspec file that gets create instead of require_relative. I can see that they are both doing the same thing when I replace the code. I just think require_relative is a little easier to read and it takes up less space. Example require_relative 'lib/watirmark-gli-generator/new.rb' Vs require File.join([File.dirname(FILE),'lib','watirmark-gli-generator','new.rb'])

davetron5000 commented 10 years ago

require_relative is no available in 1.8 and I've been trying to keep GLI working for that version (even though it's no longer supported). No deeper reason :)

Blackbaud-NapoleonKernessant commented 10 years ago

make sense. Thanks for the quick response.