diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-04-03 19:03:36 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-07-05 09:25:43 +0200 |
commit | ca5e0bd3cfcaf0bb1e3f775a308a9927bde1c468 (patch) | |
tree | 425c62e81f0beed214f2a30b3ca2013c6d244f10 | |
parent | c688337e24f24bc36b64f4cdb21a54e5e55eb27d (diff) | |
download | bundler-ca5e0bd3cfcaf0bb1e3f775a308a9927bde1c468.tar.gz |
Cleanup constant only used once
-rw-r--r-- | Rakefile | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -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" |