If intermediate .rubies/ dir doesn't exist, create it.

move to pre_install()

remove errant +x permission
Merge pull request #32 from havenwood/create_rubies_dir

If intermediate .rubies/ dir doesn't exist, create it during JRuby and MagLev installs.
Add option to skip installation when overriding install dir.

Add option --no-skip-override (-o) to avoid reinstalling Ruby if already present.
Add supporting tests.
Rename `--skip-override` to `--no-reinstall`.

Still need to address overriding test inaccuracy.
Improve testing of Ruby presence to prevent reinstallation.

Now, to check if a specific ruby with a specific version is installed in a
specific directory, we actually try to run the executable from that directory
and match the output version with the one specified by the user or expanded
by the installer.

Note that, in this case, if you provide `--no-reinstall` but specify a
different version or a different Ruby flavor, installation still takes place.
I'm not sure if this is a desirable effect, but for the moment let's just state
the fact that it can be done. Relaxing this condition should just be a matter of
removing a conditional expression.

To support this variation, related tests now installs a fake ruby executable in
the temporary install directory that output a baked version number. Again,
given the above consideration, the test suite for this feature might not be
complete, since there's no test against different version/flavor and same
installation directory.

Finally, I renamed all instances of `overriding` to `reinstall`.
Allow curl to follow redirects.

This is needed, for instance, to actually download a copy of Rubinius and not
GitHub's redirect page output which completely breaks RBX installations.
Stay tidy.
Merge pull request #36 from stefanozanella/follow_redirect

Allow curl to follow redirects.
Merge remote-tracking branch 'upstream/master' into skip_override_option
Don't be TOO smart.

Just refuse to install Ruby if another ruby executable is found in destination
directory.
Add option to skip package syncing and updating.

Add option --no-update and relative test.
Move package manager update into install_deps function.
Add early return in install_deps if $NO_UPDATE is set.
Removed the update_package_manager step.
Merge branch 'master' of https://github.com/postmodern/ruby-install into no_update_option
Add option to skip installing deps before building Ruby.

Add option --skip-install-deps and relative tests.
Return early from `install_deps` if SKIP_DEPS is set.
Merge pull request #35 from stefanozanella/skip_override_option

Add option to skip installation when overriding installation directory.
Tab indent source code.
Style.
Style.
Simplified.
Merge branch 'master' of https://github.com/postmodern/ruby-install into skip_deps_option

Conflicts:
	share/ruby-install/ruby-install.sh
	test/parse_options_test.sh