Skip to content

Commit 1fb312c

Browse files
Merge pull request #8260 from rubygems/deivid-rodriguez/update-sinatra
Test with sinatra to 4.1.0
2 parents c46bf73 + 2d91507 commit 1fb312c

File tree

7 files changed

+20
-15
lines changed

7 files changed

+20
-15
lines changed

bundler/spec/install/gemspecs_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
it "should use gemspecs in the system cache when available" do
3232
gemfile <<-G
33-
source "http://localtestserver.gem"
33+
source "http://localgemserver.test"
3434
gem 'myrack'
3535
G
3636

bundler/spec/runtime/inline_spec.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def script(code, options = {})
8181

8282
script <<-RUBY, artifice: "endpoint"
8383
gemfile(true) do
84-
source "https://notaserver.com"
84+
source "https://notaserver.test"
8585
gem "activesupport", :require => true
8686
end
8787
RUBY
@@ -103,7 +103,7 @@ def confirm(msg, newline = nil)
103103
my_ui = MyBundlerUI.new
104104
my_ui.level = "confirm"
105105
gemfile(true, :ui => my_ui) do
106-
source "https://notaserver.com"
106+
source "https://notaserver.test"
107107
gem "activesupport", :require => true
108108
end
109109
RUBY
@@ -116,7 +116,7 @@ def confirm(msg, newline = nil)
116116
require 'bundler/inline'
117117
118118
gemfile(true, :quiet => true) do
119-
source "https://notaserver.com"
119+
source "https://notaserver.test"
120120
gem "activesupport", :require => true
121121
end
122122
RUBY
@@ -363,7 +363,7 @@ def confirm(msg, newline = nil)
363363

364364
it "installs inline gems when a Gemfile.lock is present" do
365365
gemfile <<-G
366-
source "https://notaserver.com"
366+
source "https://notaserver.test"
367367
gem "rake"
368368
G
369369

@@ -397,7 +397,7 @@ def confirm(msg, newline = nil)
397397

398398
it "does not leak Gemfile.lock versions to the installation output" do
399399
gemfile <<-G
400-
source "https://notaserver.com"
400+
source "https://notaserver.test"
401401
gem "rake"
402402
G
403403

bundler/spec/support/artifice/compact_index_creds_diff_host.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def protected!
2424
end
2525

2626
get "/gems/:id" do
27-
redirect "http://diffhost.com/no/creds/#{params[:id]}"
27+
redirect "http://diffhost.test/no/creds/#{params[:id]}"
2828
end
2929

3030
get "/no/creds/:id" do

bundler/spec/support/artifice/endpoint_creds_diff_host.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def protected!
2424
end
2525

2626
get "/gems/:id" do
27-
redirect "http://diffhost.com/no/creds/#{params[:id]}"
27+
redirect "http://diffhost.test/no/creds/#{params[:id]}"
2828
end
2929

3030
get "/no/creds/:id" do

bundler/spec/support/artifice/helpers/endpoint.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def self.all_requests
2727

2828
set :raise_errors, true
2929
set :show_exceptions, false
30+
set :host_authorization, permitted_hosts: [".example.org", ".local", ".repo", ".repo1", ".repo2", ".repo3", ".repo4", ".rubygems.org", ".security", ".source", ".test", "127.0.0.1"]
3031

3132
def call!(*)
3233
super.tap do

tool/bundler/test_gems.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
gem "webrick", "~> 1.8"
99
gem "rack-test", "~> 2.1"
1010
gem "compact_index", "~> 0.15.0"
11-
gem "sinatra", "~> 4.0"
11+
gem "sinatra", "~> 4.1"
1212
gem "rake", "~> 13.1"
1313
gem "builder", "~> 3.2"
1414
gem "rb_sys"

tool/bundler/test_gems.rb.lock

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ GEM
44
base64 (0.2.0)
55
builder (3.3.0)
66
compact_index (0.15.0)
7+
logger (1.6.1)
78
mustermann (3.0.3)
89
ruby2_keywords (~> 0.0.1)
910
rack (3.1.8)
10-
rack-protection (4.0.0)
11+
rack-protection (4.1.0)
1112
base64 (>= 0.1.0)
13+
logger (>= 1.6.0)
1214
rack (>= 3.0.0, < 4)
1315
rack-session (2.0.0)
1416
rack (>= 3.0.0)
@@ -22,10 +24,11 @@ GEM
2224
ruby2_keywords (0.0.5)
2325
rubygems-generate_index (1.1.3)
2426
compact_index (~> 0.15.0)
25-
sinatra (4.0.0)
27+
sinatra (4.1.0)
28+
logger (>= 1.6.0)
2629
mustermann (~> 3.0)
2730
rack (>= 3.0.0, < 4)
28-
rack-protection (= 4.0.0)
31+
rack-protection (= 4.1.0)
2932
rack-session (>= 2.0.0, < 3)
3033
tilt (~> 2.0)
3134
tilt (2.4.0)
@@ -49,24 +52,25 @@ DEPENDENCIES
4952
rake (~> 13.1)
5053
rb_sys
5154
rubygems-generate_index (~> 1.1)
52-
sinatra (~> 4.0)
55+
sinatra (~> 4.1)
5356
webrick (~> 1.8)
5457

5558
CHECKSUMS
5659
base64 (0.2.0) sha256=0f25e9b21a02a0cc0cea8ef92b2041035d39350946e8789c562b2d1a3da01507
5760
builder (3.3.0) sha256=497918d2f9dca528fdca4b88d84e4ef4387256d984b8154e9d5d3fe5a9c8835f
5861
compact_index (0.15.0) sha256=5c6c404afca8928a7d9f4dde9524f6e1610db17e675330803055db282da84a8b
62+
logger (1.6.1) sha256=3ad9587ed3940bf7897ea64a673971415523f4f7d6b22c5e3af5219705669653
5963
mustermann (3.0.3) sha256=d1f8e9ba2ddaed47150ddf81f6a7ea046826b64c672fbc92d83bce6b70657e88
6064
rack (3.1.8) sha256=d3fbcbca43dc2b43c9c6d7dfbac01667ae58643c42cea10013d0da970218a1b1
61-
rack-protection (4.0.0) sha256=d0db6185caa46a8c0d134c2c6b4803f4f392a67b2984da311409cb505f67bbf6
65+
rack-protection (4.1.0) sha256=c32350d08b28f53df08c9e7c770900fa863593826e9f4f3cdd02ec685902ac30
6266
rack-session (2.0.0) sha256=db04b2063e180369192a9046b4559af311990af38c6a93d4c600cee4eb6d4e81
6367
rack-test (2.1.0) sha256=0c61fc61904049d691922ea4bb99e28004ed3f43aa5cfd495024cc345f125dfb
6468
rackup (2.1.0) sha256=6ecb884a581990332e45ee17bdfdc14ccbee46c2f710ae1566019907869a6c4d
6569
rake (13.2.1) sha256=46cb38dae65d7d74b6020a4ac9d48afed8eb8149c040eccf0523bec91907059d
6670
rb_sys (0.9.102) sha256=6ed736cc0d0bc236327e233f349ba16913231051df1c886c471ed268ce0e623b
6771
ruby2_keywords (0.0.5) sha256=ffd13740c573b7301cf7a2e61fc857b2a8e3d3aff32545d6f8300d8bae10e3ef
6872
rubygems-generate_index (1.1.3) sha256=3571424322666598e9586a906485e1543b617f87644913eaf137d986a3393f5c
69-
sinatra (4.0.0) sha256=54f6687b1daf2cfda6cef3f5dc90f47a8d05563cae7753e77cb01f4d3615497d
73+
sinatra (4.1.0) sha256=27d3217f6d83d49c8a9326ae8b688c253ecce2d39582cff24660b0e34b3e9df7
7074
tilt (2.4.0) sha256=df74f29a451daed26591a85e8e0cebb198892cb75b6573394303acda273fba4d
7175
webrick (1.8.2) sha256=431746a349199546ff9dd272cae10849c865f938216e41c402a6489248f12f21
7276

0 commit comments

Comments
 (0)