The most recent release of JRuby installed on the containers is 1.7.19, released 9 months ago. JRuby 9k is missing, but has been out for 3 months. The current stable version of JRuby 9k (jruby-9.0.3.0) cannot currently install gems on CircleCI.
I have sent questions to support related to this, but haven’t really received any clear answers.
It looks like it has been fixed in the latest 9.0.4.0 and should be fixed for sure once 9.0.4.0 is released. We will include this version once it has been released in our image. In the meantime you can workaround this by adding the following to your circle.yml file.
machine:
ruby:
version: jruby-9.0.4.0
Can you five this a try and let me know if it works for you?