This commit is contained in:
David Rodríguez 2024-11-18 19:46:55 +01:00 коммит произвёл Hiroshi SHIBATA
Родитель 4a7ac694e5
Коммит 519b233695
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: F9CF13417264FAC2
6 изменённых файлов: 10 добавлений и 9 удалений

Просмотреть файл

@ -30,7 +30,7 @@ RSpec.describe "bundle install" do
it "should use gemspecs in the system cache when available" do
gemfile <<-G
source "http://localtestserver.gem"
source "http://localgemserver.test"
gem 'myrack'
G

Просмотреть файл

@ -81,7 +81,7 @@ RSpec.describe "bundler/inline#gemfile" do
script <<-RUBY, artifice: "endpoint"
gemfile(true) do
source "https://notaserver.com"
source "https://notaserver.test"
gem "activesupport", :require => true
end
RUBY
@ -103,7 +103,7 @@ RSpec.describe "bundler/inline#gemfile" do
my_ui = MyBundlerUI.new
my_ui.level = "confirm"
gemfile(true, :ui => my_ui) do
source "https://notaserver.com"
source "https://notaserver.test"
gem "activesupport", :require => true
end
RUBY
@ -116,7 +116,7 @@ RSpec.describe "bundler/inline#gemfile" do
require 'bundler/inline'
gemfile(true, :quiet => true) do
source "https://notaserver.com"
source "https://notaserver.test"
gem "activesupport", :require => true
end
RUBY
@ -363,7 +363,7 @@ RSpec.describe "bundler/inline#gemfile" do
it "installs inline gems when a Gemfile.lock is present" do
gemfile <<-G
source "https://notaserver.com"
source "https://notaserver.test"
gem "rake"
G
@ -397,7 +397,7 @@ RSpec.describe "bundler/inline#gemfile" do
it "does not leak Gemfile.lock versions to the installation output" do
gemfile <<-G
source "https://notaserver.com"
source "https://notaserver.test"
gem "rake"
G

Просмотреть файл

@ -24,7 +24,7 @@ class CompactIndexCredsDiffHost < CompactIndexAPI
end
get "/gems/:id" do
redirect "http://diffhost.com/no/creds/#{params[:id]}"
redirect "http://diffhost.test/no/creds/#{params[:id]}"
end
get "/no/creds/:id" do

Просмотреть файл

@ -24,7 +24,7 @@ class EndpointCredsDiffHost < Endpoint
end
get "/gems/:id" do
redirect "http://diffhost.com/no/creds/#{params[:id]}"
redirect "http://diffhost.test/no/creds/#{params[:id]}"
end
get "/no/creds/:id" do

Просмотреть файл

@ -27,6 +27,7 @@ class Endpoint < Sinatra::Base
set :raise_errors, true
set :show_exceptions, false
set :host_authorization, permitted_hosts: [".example.org", ".local", ".repo", ".repo1", ".repo2", ".repo3", ".repo4", ".rubygems.org", ".security", ".source", ".test", "127.0.0.1"]
def call!(*)
super.tap do

Просмотреть файл

@ -8,7 +8,7 @@ gem "base64"
gem "webrick", "~> 1.8"
gem "rack-test", "~> 2.1"
gem "compact_index", "~> 0.15.0"
gem "sinatra", "~> 4.0"
gem "sinatra", "~> 4.1"
gem "rake", "~> 13.1"
gem "builder", "~> 3.2"
gem "rb_sys"