gem install error in gitlab-ci yaml template for Ruby
Summary
gem install
error comes to occur with the included .gitlab-ci.yaml
template for Ruby after around 2018-12-23.
cf. !24079 (merged)
Relevant logs and/or screenshots
Rubygems and Ruby Docker image version
$ docker run --rm -it ruby:2.5 gem --version
3.0.1
(rubygem 3.0.1 was released on 2018-12-22)
$ docker image list ruby:2.5
REPOSITORY TAG IMAGE ID CREATED SIZE
ruby 2.5 6fc6e4e7a8ee 3 days ago 872MB
Output of checks
This bug happens on GitLab.com.
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:env:info
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production
)
Results of GitLab application Check
Expand for output related to the GitLab application check
ERROR: While executing gem ... (OptionParser::InvalidOption) invalid option: --no-ri
Possible fixes
Replace --no-ri --no-rdoc
options with --no-document
for gem install
command.