diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-03-11 13:34:03 -0600 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2016-03-11 16:47:43 -0800 |
commit | 30ca4f01a609cac448fa778972c68ad6a807f24f (patch) | |
tree | 8f7059c7d37b6b2762f512f513e72b85cc79cf48 | |
parent | 01b9afb937830377b82e11b8d16e998f0b2d11f4 (diff) | |
download | bundler-30ca4f01a609cac448fa778972c68ad6a807f24f.tar.gz |
[Fetcher] Switch from bundler.rubygems.org to index.rubygems.org
-rw-r--r-- | lib/bundler/fetcher/base.rb | 2 | ||||
-rw-r--r-- | spec/bundler/fetcher/base_spec.rb | 4 |
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 |