Test with sinatra to 4.1.0
This commit is contained in:
parent
4a7ac694e5
commit
519b233695
@ -30,7 +30,7 @@ RSpec.describe "bundle install" do
|
|||||||
|
|
||||||
it "should use gemspecs in the system cache when available" do
|
it "should use gemspecs in the system cache when available" do
|
||||||
gemfile <<-G
|
gemfile <<-G
|
||||||
source "http://localtestserver.gem"
|
source "http://localgemserver.test"
|
||||||
gem 'myrack'
|
gem 'myrack'
|
||||||
G
|
G
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ RSpec.describe "bundler/inline#gemfile" do
|
|||||||
|
|
||||||
script <<-RUBY, artifice: "endpoint"
|
script <<-RUBY, artifice: "endpoint"
|
||||||
gemfile(true) do
|
gemfile(true) do
|
||||||
source "https://notaserver.com"
|
source "https://notaserver.test"
|
||||||
gem "activesupport", :require => true
|
gem "activesupport", :require => true
|
||||||
end
|
end
|
||||||
RUBY
|
RUBY
|
||||||
@ -103,7 +103,7 @@ RSpec.describe "bundler/inline#gemfile" do
|
|||||||
my_ui = MyBundlerUI.new
|
my_ui = MyBundlerUI.new
|
||||||
my_ui.level = "confirm"
|
my_ui.level = "confirm"
|
||||||
gemfile(true, :ui => my_ui) do
|
gemfile(true, :ui => my_ui) do
|
||||||
source "https://notaserver.com"
|
source "https://notaserver.test"
|
||||||
gem "activesupport", :require => true
|
gem "activesupport", :require => true
|
||||||
end
|
end
|
||||||
RUBY
|
RUBY
|
||||||
@ -116,7 +116,7 @@ RSpec.describe "bundler/inline#gemfile" do
|
|||||||
require 'bundler/inline'
|
require 'bundler/inline'
|
||||||
|
|
||||||
gemfile(true, :quiet => true) do
|
gemfile(true, :quiet => true) do
|
||||||
source "https://notaserver.com"
|
source "https://notaserver.test"
|
||||||
gem "activesupport", :require => true
|
gem "activesupport", :require => true
|
||||||
end
|
end
|
||||||
RUBY
|
RUBY
|
||||||
@ -363,7 +363,7 @@ RSpec.describe "bundler/inline#gemfile" do
|
|||||||
|
|
||||||
it "installs inline gems when a Gemfile.lock is present" do
|
it "installs inline gems when a Gemfile.lock is present" do
|
||||||
gemfile <<-G
|
gemfile <<-G
|
||||||
source "https://notaserver.com"
|
source "https://notaserver.test"
|
||||||
gem "rake"
|
gem "rake"
|
||||||
G
|
G
|
||||||
|
|
||||||
@ -397,7 +397,7 @@ RSpec.describe "bundler/inline#gemfile" do
|
|||||||
|
|
||||||
it "does not leak Gemfile.lock versions to the installation output" do
|
it "does not leak Gemfile.lock versions to the installation output" do
|
||||||
gemfile <<-G
|
gemfile <<-G
|
||||||
source "https://notaserver.com"
|
source "https://notaserver.test"
|
||||||
gem "rake"
|
gem "rake"
|
||||||
G
|
G
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ class CompactIndexCredsDiffHost < CompactIndexAPI
|
|||||||
end
|
end
|
||||||
|
|
||||||
get "/gems/:id" do
|
get "/gems/:id" do
|
||||||
redirect "http://diffhost.com/no/creds/#{params[:id]}"
|
redirect "http://diffhost.test/no/creds/#{params[:id]}"
|
||||||
end
|
end
|
||||||
|
|
||||||
get "/no/creds/:id" do
|
get "/no/creds/:id" do
|
||||||
|
@ -24,7 +24,7 @@ class EndpointCredsDiffHost < Endpoint
|
|||||||
end
|
end
|
||||||
|
|
||||||
get "/gems/:id" do
|
get "/gems/:id" do
|
||||||
redirect "http://diffhost.com/no/creds/#{params[:id]}"
|
redirect "http://diffhost.test/no/creds/#{params[:id]}"
|
||||||
end
|
end
|
||||||
|
|
||||||
get "/no/creds/:id" do
|
get "/no/creds/:id" do
|
||||||
|
@ -27,6 +27,7 @@ class Endpoint < Sinatra::Base
|
|||||||
|
|
||||||
set :raise_errors, true
|
set :raise_errors, true
|
||||||
set :show_exceptions, false
|
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!(*)
|
def call!(*)
|
||||||
super.tap do
|
super.tap do
|
||||||
|
@ -8,7 +8,7 @@ gem "base64"
|
|||||||
gem "webrick", "~> 1.8"
|
gem "webrick", "~> 1.8"
|
||||||
gem "rack-test", "~> 2.1"
|
gem "rack-test", "~> 2.1"
|
||||||
gem "compact_index", "~> 0.15.0"
|
gem "compact_index", "~> 0.15.0"
|
||||||
gem "sinatra", "~> 4.0"
|
gem "sinatra", "~> 4.1"
|
||||||
gem "rake", "~> 13.1"
|
gem "rake", "~> 13.1"
|
||||||
gem "builder", "~> 3.2"
|
gem "builder", "~> 3.2"
|
||||||
gem "rb_sys"
|
gem "rb_sys"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user