Replace gem --no-ri and --no-rdoc with --no-document

The --no-ri and --no-rdoc option is removed in later versions.

Change-Id: I199e980fe13d4932e7d3f9f484ea3dc25e58f01c
This commit is contained in:
Tobias Urdin 2020-09-01 17:57:17 +02:00
parent b3002e3ac5
commit ddb24d6a06
7 changed files with 12 additions and 12 deletions

View File

@ -64,7 +64,7 @@ print_header 'Install Bundler'
mkdir -p .bundled_gems mkdir -p .bundled_gems
export GEM_HOME=`pwd`/.bundled_gems export GEM_HOME=`pwd`/.bundled_gems
ruby <<EOF ruby <<EOF
cmd = 'gem install --no-user-install bundler --no-rdoc --no-ri --verbose' cmd = 'gem install --no-user-install bundler --no-document --verbose'
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.3.0') then if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.3.0') then
cmd += ' -v 1.17.3' cmd += ' -v 1.17.3'
end end

View File

@ -2,7 +2,7 @@
set -ex set -ex
GEM_INSTALL_CMD="gem install --no-user-install --minimal-dep --verbose --no-ri --no-rdoc" GEM_INSTALL_CMD="gem install --no-user-install --minimal-dep --verbose --no-document"
if [ -n "${GEM_HOME}" ]; then if [ -n "${GEM_HOME}" ]; then
GEM_BIN_DIR=${GEM_HOME}/bin/ GEM_BIN_DIR=${GEM_HOME}/bin/

View File

@ -36,7 +36,7 @@
shell: shell:
cmd: | cmd: |
ruby <<EOF ruby <<EOF
cmd = 'gem install bundler --no-rdoc --no-ri --verbose --no-user-install' cmd = 'gem install bundler --no-document --verbose --no-user-install'
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.3.0') then if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.3.0') then
cmd += ' -v 1.17.3' cmd += ' -v 1.17.3'
end end

View File

@ -51,7 +51,7 @@
export GEM_BIN_DIR=$GEM_HOME/bin export GEM_BIN_DIR=$GEM_HOME/bin
if [ -f Gemfile ]; then if [ -f Gemfile ]; then
ruby <<EOF ruby <<EOF
cmd = 'gem install bundler --no-rdoc --no-ri --verbose --no-user-install --bindir=${GEM_BIN_DIR}' cmd = 'gem install bundler --no-document --verbose --no-user-install --bindir=${GEM_BIN_DIR}'
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.3.0') then if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.3.0') then
cmd += ' -v 1.17.3' cmd += ' -v 1.17.3'
end end

View File

@ -22,7 +22,7 @@
export GEM_BIN_DIR=$GEM_HOME/bin export GEM_BIN_DIR=$GEM_HOME/bin
if [ -f Gemfile ]; then if [ -f Gemfile ]; then
ruby <<EOF ruby <<EOF
cmd = 'gem install bundler --no-rdoc --no-ri --verbose --no-user-install --bindir=${GEM_BIN_DIR}' cmd = 'gem install bundler --no-document --verbose --no-user-install --bindir=${GEM_BIN_DIR}'
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.3.0') then if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.3.0') then
cmd += ' -v 1.17.3' cmd += ' -v 1.17.3'
end end
@ -34,11 +34,11 @@
$GEM_BIN_DIR/bundle exec rake metadata_lint 2>&1 $GEM_BIN_DIR/bundle exec rake metadata_lint 2>&1
fi fi
else else
gem install rake -n ./.bundled_gems/ --no-ri --no-rdoc --no-user-install gem install rake -n ./.bundled_gems/ --no-document --no-user-install
gem install puppet-lint -n ./.bundled_gems/ --no-ri --no-rdoc --no-user-install gem install puppet-lint -n ./.bundled_gems/ --no-document --no-user-install
gem install metadata-json-lint -n ./.bundled_gems/ --no-ri --no-rdoc --no-user-install gem install metadata-json-lint -n ./.bundled_gems/ --no-document --no-user-install
gem install puppetlabs_spec_helper -n ./.bundled_gems/ --no-ri --no-rdoc --no-user-install gem install puppetlabs_spec_helper -n ./.bundled_gems/ --no-document --no-user-install
gem install puppet -n ./.bundled_gems/ --no-ri --no-rdoc --no-user-install gem install puppet -n ./.bundled_gems/ --no-document --no-user-install
./.bundled_gems/rake lint 2>&1 ./.bundled_gems/rake lint 2>&1
if [ -f metadata.json ]; then if [ -f metadata.json ]; then
./.bundled_gems/metadata-json-lint ./.bundled_gems/metadata-json-lint

View File

@ -7,7 +7,7 @@
export GEM_HOME=`pwd`/.bundled_gems export GEM_HOME=`pwd`/.bundled_gems
export GEM_BIN_DIR=$GEM_HOME/bin export GEM_BIN_DIR=$GEM_HOME/bin
ruby <<EOF ruby <<EOF
cmd = 'gem install bundler --no-rdoc --no-ri --verbose --no-user-install --bindir=${GEM_BIN_DIR}' cmd = 'gem install bundler --no-document --verbose --no-user-install --bindir=${GEM_BIN_DIR}'
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.3.0') then if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.3.0') then
cmd += ' -v 1.17.3' cmd += ' -v 1.17.3'
end end

View File

@ -19,7 +19,7 @@
export GEM_HOME=`pwd`/.bundled_gems export GEM_HOME=`pwd`/.bundled_gems
export GEM_BIN_DIR=$GEM_HOME/bin export GEM_BIN_DIR=$GEM_HOME/bin
ruby <<EOF ruby <<EOF
cmd = 'gem install bundler --no-rdoc --no-ri --verbose --no-user-install --bindir=${GEM_BIN_DIR}' cmd = 'gem install bundler --no-document --verbose --no-user-install --bindir=${GEM_BIN_DIR}'
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.3.0') then if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.3.0') then
cmd += ' -v 1.17.3' cmd += ' -v 1.17.3'
end end