vmware-archive / AndroidIntelliJStarter

An IntelliJ template project for android developers, pre-configured to work with Robolectric, Roboguice, an other common, useful Android libraries.
MIT License
125 stars 39 forks source link

supports ruby 1.9+ #8

Open joshskeen opened 10 years ago

joshskeen commented 10 years ago

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 commented 10 years ago

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/