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-07-05 14:13:29 +0200
commit6d266c2ed6ec39a8892a1f17096c9526c9d5f2d8 (patch)
treec1e16179d3304306ae22a549d42bf3b791403793
parent823887ed2401be0732ba969bd2992f150803ed22 (diff)
downloadbundler-6d266c2ed6ec39a8892a1f17096c9526c9d5f2d8.tar.gz
Remove unnecessary constant
-rw-r--r--Rakefile12
1 files changed, 5 insertions, 7 deletions
diff --git a/Rakefile b/Rakefile
index 80e84c47c5..c7bd64baab 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
@@ -117,7 +111,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"