summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Rakefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Rakefile b/Rakefile
index d7bb417b60..9d4e18b179 100644
--- a/Rakefile
+++ b/Rakefile
@@ -51,6 +51,11 @@ namespace :spec do
end.join(" ")
sh "gem #{gem_install_command}"
+ # Fix incorrect default etc gem specification file list on ruby 2.6.2.
+ if RUBY_VERSION == "2.6.2"
+ sh "gem install etc:1.0.1 --default"
+ end
+
# Download and install gems used inside tests
$LOAD_PATH.unshift("./spec")
require "support/rubygems_ext"
@@ -71,11 +76,6 @@ namespace :spec do
# Install the gems with a consistent version of RubyGems
sh "gem update --system 3.0.3"
- # Fix incorrect default etc gem specification file list on ruby 2.6.2.
- if RUBY_VERSION == "2.6.2"
- sh "gem install etc:1.0.1 --default"
- end
-
$LOAD_PATH.unshift("./spec")
require "support/rubygems_ext"
Spec::Rubygems::DEPS["codeclimate-test-reporter"] = "~> 0.6.0" if RUBY_VERSION >= "2.2.0"