chruby icon indicating copy to clipboard operation
chruby copied to clipboard

tests are not always able to download ruby

Open x-yuri opened this issue 9 years ago • 4 comments

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, like 2.0.0-p353 for squeeze. So, why don't we turn system_version into array? Turning test_ruby_patchlevel into array must be a hassle, ~~but you might consider switching to 247... er, which is not available for jessie, so doesn't sound right.~~ But then again, we can download whatever patchlevel available, and set test_ruby_patchlevel=$(ls test/opt/rubies | sed -E 's/.*p([0-9]+)/\1/'), can't we?

x-yuri avatar Jun 04 '15 21:06 x-yuri

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.

postmodern avatar Jun 20 '15 23:06 postmodern

So, why do we decide which version to use before knowing it's there? Why don't we download whatever ruby version available?

x-yuri avatar Jun 22 '15 08:06 x-yuri

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.

postmodern avatar Jun 22 '15 17:06 postmodern

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.

deivid-rodriguez avatar Jul 09 '15 21:07 deivid-rodriguez