summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-04-30 11:23:43 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-05-03 11:35:13 +0200
commit5832fac581e770380300bd1a1b94144e29fe6a3c (patch)
treef028525b4f6c89a38e6fa765915967b8aede94b1
parent9c79badabab0c1669168956e5e5e642a66e84d2e (diff)
downloadbundler-5832fac581e770380300bd1a1b94144e29fe6a3c.tar.gz
Remove unnecessary constant
-rw-r--r--Rakefile12
1 files changed, 5 insertions, 7 deletions
diff --git a/Rakefile b/Rakefile
index bc571db13d..72396b1ac2 100644
--- a/Rakefile
+++ b/Rakefile
@@ -3,12 +3,6 @@
$:.unshift File.expand_path("../lib", __FILE__)
require "benchmark"
-RUBYGEMS_REPO = if `git -C "#{File.expand_path("..")}" remote --verbose 2> #{IO::NULL}` =~ /rubygems/i
- File.expand_path("..")
-else
- File.expand_path("tmp/rubygems")
-end
-
# Benchmark task execution
module Rake
class Task
@@ -122,7 +116,11 @@ namespace :spec do
end
task "setup_co" do
- ENV["RGV"] = RUBYGEMS_REPO
+ ENV["RGV"] = if `git -C "#{File.expand_path("..")}" remote --verbose 2> #{IO::NULL}` =~ /rubygems/i
+ File.expand_path("..")
+ else
+ File.expand_path("tmp/rubygems")
+ end
end
task "co" => "setup_co"