diff options
author | Andre Arko <andre@arko.net> | 2014-01-11 18:03:08 -0800 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2014-01-11 18:03:10 -0800 |
commit | 0671915071a2d94cebfa573b787ac188b1f11ab5 (patch) | |
tree | 0867e7f57ed795fbb9d4c3e6055d6dc003162f00 /Rakefile | |
parent | 7024b3bea904232abc449ff8538de141d0baea5d (diff) | |
download | bundler-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-- | Rakefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |