summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2014-01-11 18:03:08 -0800
committerAndre Arko <andre@arko.net>2014-01-11 18:03:10 -0800
commit0671915071a2d94cebfa573b787ac188b1f11ab5 (patch)
tree0867e7f57ed795fbb9d4c3e6055d6dc003162f00 /Rakefile
parent7024b3bea904232abc449ff8538de141d0baea5d (diff)
downloadbundler-0671915071a2d94cebfa573b787ac188b1f11ab5.tar.gz
downgrade rubygems on 1.8
works around the regression in loading extensions on 1.8 introduced by Rubygems 2.2. See also https://github.com/rubygems/rubygems/issues/784
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 7e8b9fca59..ef8f779bda 100644
--- a/Rakefile
+++ b/Rakefile
@@ -44,6 +44,10 @@ namespace :spec do
system("sudo sed -i '/secure_path/d' /etc/sudoers")
# Install groff for the ronn gem
system("sudo apt-get install groff -y")
+ # Downgrade Rubygems on 1.8 to avoid https://github.com/rubygems/rubygems/issues/784
+ if RUBY_VERSION < '1.9'
+ system("gem update --system 2.1.11")
+ end
# Install the other gem deps, etc.
Rake::Task["spec:deps"].invoke
end