sparklemotion/nokogiri — pull request #1072 by knu (2014-04-03 10:28:38+00:00)
Title: Refactor cross rubies (Act 2)

[This is a redone version of sparklemotion/nokogiri#1071 which was accidentally closed by mistake.]

This fixes the following problems with the current cross-build scripts, `Rakefile` and `build_all`.

- Invocations of `rake-compiler cross-ruby` will fail due to version mismatch
- Ruby 1.9.3 cannot be cross-built with make -j2, which is the default MAKE command of rake-compiler-dev-box.
- Duplicates and hardcoded ruby versions and arch/platform names should really be reduced.
- Maintaining the list of cross-rubies should be made easier.
- Properly escape strings using Regexp.quote and Array#shelljoin.

With this PR merged, `./build_all` should pass without a problem on a rake-compiler-dev-box environment except one problem which should be addressed in luislavena/mini_portile#30.

This branch is (re)based on sparklemotion/nokogiri#1062.

/cc @larskanis, @flavorjones