summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2018-09-09 21:39:51 -0300
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2018-10-26 15:36:14 -0300
commitab325bde24853207450904b06a55b4a9766fdbf0 (patch)
tree05d011d5f25f870f46528c15489a5f4add72c974 /Rakefile
parentfbb9c2dada3d98ce7932f9767ea3b2bdbba04eef (diff)
downloadbundler-ab325bde24853207450904b06a55b4a9766fdbf0.tar.gz
Remove unnecessary stuff from specs
Since we no longer test against rubygems versions that old.
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile15
1 files changed, 4 insertions, 11 deletions
diff --git a/Rakefile b/Rakefile
index 625e6630bf..5d6edbcbef 100644
--- a/Rakefile
+++ b/Rakefile
@@ -51,17 +51,10 @@ namespace :spec do
deps.delete("rdiscount")
end
- if Gem::VERSION < "2.0.0"
- deps.sort_by {|name, _| name }.map do |name, version|
- gem_install_command = "install --no-ri --no-rdoc --conservative #{name} -v '#{version}'"
- sh %(#{Gem.ruby} -S gem #{gem_install_command})
- end
- else
- gem_install_command = "install --no-document --conservative " + deps.sort_by {|name, _| name }.map do |name, version|
- "'#{name}:#{version}'"
- end.join(" ")
- sh %(#{Gem.ruby} -S gem #{gem_install_command})
- end
+ gem_install_command = "install --no-document --conservative " + deps.sort_by {|name, _| name }.map do |name, version|
+ "'#{name}:#{version}'"
+ end.join(" ")
+ sh %(#{Gem.ruby} -S gem #{gem_install_command})
# Download and install gems used inside tests
$LOAD_PATH.unshift("./spec")