Skip to content

Commit

Permalink
Test with sinatra to 4.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez authored and hsbt committed Nov 18, 2024
1 parent 4a7ac69 commit 519b233
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion spec/bundler/install/gemspecs_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

it "should use gemspecs in the system cache when available" do
gemfile <<-G
source "http://localtestserver.gem"
source "http://localgemserver.test"
gem 'myrack'
G

Expand Down
10 changes: 5 additions & 5 deletions spec/bundler/runtime/inline_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def script(code, options = {})

script <<-RUBY, artifice: "endpoint"
gemfile(true) do
source "https://notaserver.com"
source "https://notaserver.test"
gem "activesupport", :require => true
end
RUBY
Expand All @@ -103,7 +103,7 @@ def confirm(msg, newline = nil)
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
Expand All @@ -116,7 +116,7 @@ def confirm(msg, newline = nil)
require 'bundler/inline'
gemfile(true, :quiet => true) do
source "https://notaserver.com"
source "https://notaserver.test"
gem "activesupport", :require => true
end
RUBY
Expand Down Expand Up @@ -363,7 +363,7 @@ def confirm(msg, newline = nil)

it "installs inline gems when a Gemfile.lock is present" do
gemfile <<-G
source "https://notaserver.com"
source "https://notaserver.test"
gem "rake"
G

Expand Down Expand Up @@ -397,7 +397,7 @@ def confirm(msg, newline = nil)

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def protected!
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
Expand Down
2 changes: 1 addition & 1 deletion spec/bundler/support/artifice/endpoint_creds_diff_host.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def protected!
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
Expand Down
1 change: 1 addition & 0 deletions spec/bundler/support/artifice/helpers/endpoint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def self.all_requests

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
Expand Down
2 changes: 1 addition & 1 deletion tool/bundler/test_gems.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
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"
Expand Down

0 comments on commit 519b233

Please sign in to comment.