summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-03-17 15:35:46 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-03-28 17:40:22 +0100
commit1eaba3a97cc3bc5a7435a38a1b029fc9d52b088d (patch)
tree6fb00062a9aa40197e593fedb3e29f24e2fe7708 /Rakefile
parent2167156db020fbe6ce74759cbf62ad1ceb651fb7 (diff)
downloadbundler-1eaba3a97cc3bc5a7435a38a1b029fc9d52b088d.tar.gz
Remove NULL_DEVICE
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index 0a4d9c8900..a4dc782c68 100644
--- a/Rakefile
+++ b/Rakefile
@@ -3,8 +3,7 @@
$:.unshift File.expand_path("../lib", __FILE__)
require "benchmark"
-NULL_DEVICE = (Gem.win_platform? ? "NUL" : "/dev/null")
-RUBYGEMS_REPO = if `git -C "#{File.expand_path("..")}" remote --verbose 2> #{NULL_DEVICE}` =~ /rubygems/i
+RUBYGEMS_REPO = if `git -C "#{File.expand_path("..")}" remote --verbose 2> #{IO::NULL}` =~ /rubygems/i
File.expand_path("..")
else
File.expand_path("tmp/rubygems")