diff --git a/Dockerfile b/Dockerfile index 494e97ad..c3b07c9d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -88,17 +88,10 @@ RUN npm config set package-lock false \ ############################# ENV PATH="/node_modules/.bin:${PATH}" -#################### -# Run GEM installs # -#################### -RUN gem install rubocop:0.74.0 rubocop-rails rubocop-github:0.13.0 - -# Need to fix the version as it installs 'rubocop:0.85.1' as a dep, and forces the default -# We then need to promote the correct version, uninstall, and fix deps -RUN sh -c 'INCORRECT_VERSION=$(gem list rhc -e rubocop | grep rubocop | awk "{print $2}" | cut -d"(" -f2 | cut -d"," -f1); \ - gem install --default rubocop:0.74.0; \ - yes | gem uninstall rubocop:$INCORRECT_VERSION -a -x -I; \ - gem install rubocop:0.74.0' +############################## +# Installs ruby dependencies # +############################## +RUN bundle install ######################################### # Install Powershell + PSScriptAnalyzer # diff --git a/dependencies/Gemfile b/dependencies/Gemfile new file mode 100644 index 00000000..525cef06 --- /dev/null +++ b/dependencies/Gemfile @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +source "https://rubygems.org" + +git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } + + +gem "rubocop", "~> 0.77.0" +gem "rubocop-rails", "~> 2.5" +gem "rubocop-github", "~> 0.14.0" diff --git a/dependencies/Gemfile.lock b/dependencies/Gemfile.lock new file mode 100644 index 00000000..f98938fc --- /dev/null +++ b/dependencies/Gemfile.lock @@ -0,0 +1,50 @@ +GEM + remote: https://rubygems.org/ + specs: + activesupport (6.0.3.2) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (>= 0.7, < 2) + minitest (~> 5.1) + tzinfo (~> 1.1) + zeitwerk (~> 2.2, >= 2.2.2) + ast (2.4.1) + concurrent-ruby (1.1.6) + i18n (1.8.3) + concurrent-ruby (~> 1.0) + jaro_winkler (1.5.4) + minitest (5.14.1) + parallel (1.19.2) + parser (2.7.1.4) + ast (~> 2.4.1) + rack (2.2.3) + rainbow (3.0.0) + rubocop (0.77.0) + jaro_winkler (~> 1.5.1) + parallel (~> 1.10) + parser (>= 2.6) + rainbow (>= 2.2.2, < 4.0) + ruby-progressbar (~> 1.7) + unicode-display_width (>= 1.4.0, < 1.7) + rubocop-github (0.14.0) + rubocop (~> 0.59) + rubocop-rails (2.5.2) + activesupport + rack (>= 1.1) + rubocop (>= 0.72.0) + ruby-progressbar (1.10.1) + thread_safe (0.3.6) + tzinfo (1.2.7) + thread_safe (~> 0.1) + unicode-display_width (1.6.1) + zeitwerk (2.4.0) + +PLATFORMS + ruby + +DEPENDENCIES + rubocop (~> 0.77.0) + rubocop-github (~> 0.14.0) + rubocop-rails (~> 2.5) + +BUNDLED WITH + 2.1.4