Add guard for non-JRuby Ruby versions