Open x-yuri opened 9 years ago
So we used some code from RVM to detect the arch, OS, distro, and then download the precompiled ruby for said platform. Unfortunately, rvm-binary doesn't always have the most complete coverage.
So, why do we decide which version to use before knowing it's there? Why don't we download whatever ruby
version available?
The tests depend on knowing a specific version. Usually, rvm-binary has decent coverage for recent ruby versions. If you're platform isn't supported, open an issue with them and they'll look into it.
I just run into the same problem. Using Linux Mint
and there's no binaries for it. In that case, defaulting to ubuntu
works fine I think.
First, there doesn't always exist dir for some particular distribution release, like
debian-7,8
(which I need now). And there doesn't always exist ruby for that particular release, like2.0.0-p353
forsqueeze
. So, why don't we turnsystem_version
into array? Turningtest_ruby_patchlevel
into array must be a hassle,but you might consider switching toBut then again, we can download whatever patchlevel available, and set247
... er, which is not available forjessie
, so doesn't sound right.test_ruby_patchlevel=$(ls test/opt/rubies | sed -E 's/.*p([0-9]+)/\1/')
, can't we?