diff --git a/.gitignore b/.gitignore index 3da35b17e..3fad9b672 100644 --- a/.gitignore +++ b/.gitignore @@ -13,7 +13,6 @@ **/.terraform/ **/inspec.lock **/terraform.tfstate -bin/ build/ certs/gem-private_key.pem coverage/ @@ -26,4 +25,5 @@ terraform.tfstate.d/ test/terraform/Plug Ins/Plug In Directory/ tmp/ vendor/ -/.bundle \ No newline at end of file +/.bundle + diff --git a/bin/list-undocumented-objects.sh b/bin/list-undocumented-objects.sh new file mode 100755 index 000000000..e4cd1839d --- /dev/null +++ b/bin/list-undocumented-objects.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +set -e +bundle exec yard stats --list-undoc + diff --git a/bin/switch-ruby-version.sh b/bin/switch-ruby-version.sh new file mode 100755 index 000000000..07a796b89 --- /dev/null +++ b/bin/switch-ruby-version.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +set -e +source /usr/local/share/chruby/chruby.sh +chruby $1 +if [ -e .bundle/config ] +then + rm .bundle/config +fi +bundle config --local gemfile $1/Gemfile + diff --git a/bin/update-development-gems.sh b/bin/update-development-gems.sh new file mode 100755 index 000000000..a9c4169be --- /dev/null +++ b/bin/update-development-gems.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +set -e +source /usr/local/share/chruby/chruby.sh +echo ruby-2.6 +chruby ruby-2.6 +set -x +gem update --system +gem install --version="~> 2.0" bundler +gem install debride fasterer rcodetools fastri reek + diff --git a/bin/update-gemfile-locks.sh b/bin/update-gemfile-locks.sh new file mode 100755 index 000000000..7eaa5d02d --- /dev/null +++ b/bin/update-gemfile-locks.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +set -e +source /usr/local/share/chruby/chruby.sh +set +x +for RUBY in ruby-2.6 ruby-2.5 ruby-2.4 ruby-2.3 +do + chruby "$RUBY" + ruby --version + set -x + if [ -e "$RUBY"/Gemfile.lock ] + then + bundle update --gemfile "$RUBY"/Gemfile + else + bundle install --gemfile "$RUBY"/Gemfile + fi + set +x +done +