summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 21b11b9e59..e8ca39590d 100644
--- a/Rakefile
+++ b/Rakefile
@@ -75,6 +75,13 @@ namespace :spec do
# Install the gems with a consistent version of RubyGems
sh "gem update --system 2.6.13"
+ # Fix incorrect default gem specifications on ruby 2.6.1. Can be removed
+ # when 2.6.2 is released and we start testing against it
+ if RUBY_VERSION == "2.6.1"
+ sh "gem install etc:1.0.1 --default"
+ sh "gem install bundler:1.17.2 --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"