summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-04-03 19:03:36 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-07-05 09:25:43 +0200
commitca5e0bd3cfcaf0bb1e3f775a308a9927bde1c468 (patch)
tree425c62e81f0beed214f2a30b3ca2013c6d244f10 /Rakefile
parentc688337e24f24bc36b64f4cdb21a54e5e55eb27d (diff)
downloadbundler-ca5e0bd3cfcaf0bb1e3f775a308a9927bde1c468.tar.gz
Cleanup constant only used once
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile12
1 files changed, 5 insertions, 7 deletions
diff --git a/Rakefile b/Rakefile
index ffd59872d0..170dec5e4e 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
-
def development_dependencies
@development_dependencies ||= Gem::Specification.load("bundler.gemspec").development_dependencies
end
@@ -139,7 +133,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"