summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHomu <homu@barosl.com>2016-03-12 06:40:13 +0900
committerHomu <homu@barosl.com>2016-03-12 06:40:13 +0900
commit9ed4cbc4ae90f726836089530da3069db99b5a41 (patch)
tree29f0212430c9a1a12f5cb4d5401ec0f0fe9a97c1
parent91b5ba65368e5b65bb36efe01be5dc5f4a595d86 (diff)
parent0904c9a11a4e540065ba5110ac93b02e70654c4a (diff)
downloadbundler-9ed4cbc4ae90f726836089530da3069db99b5a41.tar.gz
Auto merge of #4358 - bundler:seg-index-rubygems-org, r=indirect
[Fetcher] Switch from bundler.rubygems.org to index.rubygems.org @dwradcliffe @indirect by my understanding, this is what we need to do to get the new index behind fastly?
-rw-r--r--lib/bundler/fetcher/base.rb2
-rw-r--r--spec/bundler/fetcher/base_spec.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/bundler/fetcher/base.rb b/lib/bundler/fetcher/base.rb
index f7210bd03d..6714ea2cd7 100644
--- a/lib/bundler/fetcher/base.rb
+++ b/lib/bundler/fetcher/base.rb
@@ -21,7 +21,7 @@ module Bundler
@fetch_uri ||= begin
if remote_uri.host == "rubygems.org"
uri = remote_uri.dup
- uri.host = "bundler.rubygems.org"
+ uri.host = "index.rubygems.org"
uri
else
remote_uri
diff --git a/spec/bundler/fetcher/base_spec.rb b/spec/bundler/fetcher/base_spec.rb
index 5a8c7647b9..bd1c03660c 100644
--- a/spec/bundler/fetcher/base_spec.rb
+++ b/spec/bundler/fetcher/base_spec.rb
@@ -42,9 +42,9 @@ describe Bundler::Fetcher::Base do
before { allow(subject).to receive(:remote_uri).and_return(remote_uri_obj) }
context "when the remote uri's host is rubygems.org" do
- it "should create a copy of the remote uri with bundler.rubygems.org as the host" do
+ it "should create a copy of the remote uri with index.rubygems.org as the host" do
fetched_uri = subject.fetch_uri
- expect(fetched_uri.host).to eq("bundler.rubygems.org")
+ expect(fetched_uri.host).to eq("index.rubygems.org")
expect(fetched_uri).to_not be(remote_uri_obj)
end
end