We ran into the same issue today, with Puppet 5.5.6 on Ubuntu 16.04 and 18.04:
Error: Could not update: Execution of '/usr/bin/gem install -v 2.7.7 --no-rdoc --no-ri rubygems-update' returned 1: ERROR: While executing gem ... (OptionParser::InvalidOption)
It looks like --no-document has been around long enough that we should be able to just switch to it in all supported streams (5.5, 6.0, and master). I'll get this scheduled so it will go out in the upcoming set of releases.
Puppet now uses the `--no-document` option instead of the deprecated `--no-rdoc --no-ri` options when installing gems, allowing compatibility with `rubygems` >= 3.0.0. [PUP-9395]
Puppet now uses the `--no-document` option instead of the deprecated `--no-rdoc --no-ri` options when installing gems, allowing compatibility with `rubygems` >= 3.0.0. [PUP-9395]
documented for 6.4.2 and 5.5.14, waiting for confirmation on 6.0.9--jean
Puppet now uses the `-- This release fixes an issue where you couldno-document` option instead of longer specify multiple logging destinations on the deprecated command line with the `--no-rdoc --no-rilogdest` options option. This feature was temporarily broken when installing gems, allowing compatibility with we added the ability to specify a logging destination in `rubygemspuppet.conf` >= 3.0.0. [PUP-93959565]
documented for 6(https://tickets.4puppetlabs.2 and 5.5.14, waiting for confirmation on 6.0.9com/browse/PUP--jean9565)
Ah, I see, thank you Thomas Kishel! That helps; it was not clear whether this was even in Tuesday's release. Because the notes are covered in another ticket, I'll change the DOCS tab to reflect that.
Ah, I see, thank you [~tom.kishel]! That helps; it was not clear whether this was even in Tuesday's release. Because the notes are covered in another ticket, I'll change the DOCS tab to reflect that.
Thomas Kishel, I'm sorry about that! When I learned that this was not going into Tuesday's release, I pasted in the drafted release note, but I grabbed the wrong one. I'll see if I can recover the correct one.
- This release fixes an issue where you could no longer specify multiple logging destinations on Puppet now uses the command line with the `--logdestno-document` option. This feature was temporarily broken to exclude documentation when we added installing gems, instead of the ability to specify a logging destination in deprecated `puppet.conf--no-rdoc`. [PUP and `-9565](https://tickets-no-ri` options.puppetlabs This change allows compatibility with `rubygems` 3.com/browse/PUP-9565)0 and greater.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jruby.ext.openssl.SecurityHelper (file:/tmp/jruby-8145/jruby10086072876742673271jopenssl.jar) to field java.security.MessageDigest.provider
WARNING: Please consider reporting this to the maintainers of org.jruby.ext.openssl.SecurityHelper
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
ERROR: While executing gem ... (OptionParser::InvalidOption)