Skip to content

Commit f9978fe

Browse files
committed
Merge remote-tracking branch 'upstream/master' into jakarta-update
2 parents 66f90fd + 5719f09 commit f9978fe

File tree

15 files changed

+153
-92
lines changed

15 files changed

+153
-92
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@
2626
## 1.2.6 (UNRELEASED)
2727

2828
- Add missing block-only signature for debug logging
29-
- update (bundled) rack to 2.2.19
29+
- update (bundled) rack to 2.2.20
30+
- Ensure rack boot process leaves ENV['GEM_PATH'] and Gem.paths in a consistent state
31+
- Remove undocumented and unsafe jruby.rack.env.gem_path = false option (unusable on Bundler 1.6+)
32+
- Fix unintended Rubygems initialization too early in boot process with JRuby 9.4+
3033

3134
## 1.2.5
3235

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ group :default do
44
if rack_version = ENV['RACK_VERSION']
55
gem 'rack', rack_version
66
else
7-
gem 'rack', '~> 2.2.18'
7+
gem 'rack', '~> 2.2.20'
88
end
99
end
1010

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ GEM
66
rake
77
thor (>= 0.14.0)
88
diff-lcs (1.6.2)
9-
rack (2.2.18)
9+
rack (2.2.20)
1010
rake (13.3.0)
1111
rspec (3.13.1)
1212
rspec-core (~> 3.13.0)
@@ -33,6 +33,6 @@ PLATFORMS
3333

3434
DEPENDENCIES
3535
appraisal
36-
rack (~> 2.2.18)
36+
rack (~> 2.2.20)
3737
rake (~> 13.3)
3838
rspec

README.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# JRuby-Rack
22

3-
[![Gem Version](https://badge.fury.io/rb/jruby-rack.png)][5]
4-
[![Build Status](https://github.com/jruby/jruby-rack/actions/workflows/maven.yml/badge.svg)][6]
5-
3+
[![Gem Version](https://img.shields.io/gem/v/jruby-rack)](https://rubygems.org/gems/jruby-rack)
4+
[![Jar Version](https://img.shields.io/maven-central/v/org.jruby.rack/jruby-rack)](https://central.sonatype.com/artifact/org.jruby.rack/jruby-rack)
5+
[![master Build Status](https://github.com/jruby/jruby-rack/actions/workflows/maven.yml/badge.svg)](https://github.com/jruby/jruby-rack/actions/workflows/maven.yml?query=branch%3Amaster) (master)
6+
[![1.2.x Build Status](https://github.com/jruby/jruby-rack/actions/workflows/maven.yml/badge.svg?branch=1.2-stable)](https://github.com/jruby/jruby-rack/actions/workflows/maven.yml?query=branch%3A1.2-stable) (1.2.x)
7+
68
JRuby-Rack is a lightweight adapter for the Java Servlet environment that allows
79
any (Ruby) Rack-based application to run unmodified in a Java Servlet container.
810
JRuby-Rack supports Rails as well as any Rack-compatible Ruby web framework.
@@ -231,7 +233,13 @@ as context init parameters in web.xml or as VM-wide system properties.
231233
this option to en empty string (or 'false') it acts as if the ENV hash was
232234
cleared out (similar to the now removed `jruby.rack.ignore.env` option).
233235
- `jruby.runtime.env.rubyopt`: Set to true to cause ENV['RUBYOPT']
234-
to be retained even when using `jruby.runtime.env` to override environemnt (similar to how the removed `jruby.rack.ignore.env` option behaved by default).
236+
to be retained even when using `jruby.runtime.env` to override the environment.
237+
- `jruby.rack.env.gem_path`: If set to `true` (the default) jruby-rack will
238+
ensure ENV['GEM_PATH'] is altered to include the `gem.path` above. If you set it to a
239+
value, this value will be used as GEM_PATH, overriding the environment and
240+
ignoring `gem.path` etc. By setting this option to en empty string the ENV['GEM_PATH'] will
241+
not be modified by jruby-rack at all and will retain its original values implied by
242+
the process environment and `jruby.runtime.env` setting.
235243
- `jruby.rack.logging`: Specify the logging device to use. Defaults to
236244
`servlet_context`. See below.
237245
- `jruby.rack.request.size.initial.bytes`: Initial size for request body memory
@@ -356,9 +364,7 @@ package and push the .jar every time a commit changes a source file).
356364
Please use [github][3] to file bugs, patches and/or pull requests.
357365
More information at the [wiki][4] or ask us at **#jruby**'s IRC channel.
358366

359-
[1]: https://github.com/jruby/warbler#warbler--
367+
[1]: https://github.com/jruby/warbler
360368
[2]: https://central.sonatype.com/artifact/org.jruby.rack/jruby-rack
361369
[3]: https://github.com/jruby/jruby-rack/issues
362370
[4]: https://github.com/jruby/jruby-rack/wiki
363-
[5]: http://badge.fury.io/rb/jruby-rack
364-
[6]: https://github.com/jruby/jruby-rack/actions/workflows/maven.yml

examples/camping/Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ source 'https://rubygems.org'
22

33
ruby '~> 3.1.0'
44

5-
gem 'rack', '~> 2.2.18'
5+
gem 'rack', '~> 2.2.20'
66
gem 'rackup'
77
gem 'camping', '< 3'
88
gem 'markaby'

examples/camping/Gemfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ GEM
2424
markaby (0.9.4)
2525
builder
2626
ostruct (0.6.2)
27-
rack (2.2.18)
27+
rack (2.2.20)
2828
rackup (1.0.1)
2929
rack (< 3)
3030
webrick
3131
rake (13.3.0)
32-
rexml (3.4.3)
33-
rubyzip (3.1.0)
32+
rexml (3.4.4)
33+
rubyzip (3.1.1)
3434
webrick (1.9.1)
3535

3636
PLATFORMS
@@ -41,7 +41,7 @@ DEPENDENCIES
4141
camping (< 3)
4242
jruby-jars (< 10)
4343
markaby
44-
rack (~> 2.2.18)
44+
rack (~> 2.2.20)
4545
rackup
4646
warbler!
4747

examples/rails7/Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ source 'https://rubygems.org'
33
ruby '~> 3.1.0'
44

55
gem 'rails', '~> 7.2.2', '>= 7.2.2.2'
6-
gem 'rack', '~> 2.2.18'
6+
gem 'rack', '~> 2.2.20'
77
gem "sprockets-rails"
88

99
group :development do

examples/rails7/Gemfile.lock

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,21 +87,27 @@ GEM
8787
tzinfo (~> 2.0, >= 2.0.5)
8888
base64 (0.3.0)
8989
benchmark (0.4.1)
90-
bigdecimal (3.2.3-java)
90+
bigdecimal (3.3.0)
91+
bigdecimal (3.3.0-java)
9192
builder (3.3.0)
93+
cgi (0.5.0)
9294
cgi (0.5.0-java)
9395
concurrent-ruby (1.3.5)
9496
connection_pool (2.5.4)
9597
crass (1.0.6)
98+
date (3.4.1)
9699
date (3.4.1-java)
97100
drb (2.2.3)
101+
erb (4.0.4)
102+
cgi (>= 0.3.3)
98103
erb (4.0.4-java)
99104
cgi (>= 0.3.3)
100105
erubi (1.13.1)
101-
globalid (1.2.1)
106+
globalid (1.3.0)
102107
activesupport (>= 6.1)
103108
i18n (1.14.7)
104109
concurrent-ruby (~> 1.0)
110+
io-console (0.8.1)
105111
io-console (0.8.1-java)
106112
irb (1.15.2)
107113
pp (>= 0.6.0)
@@ -119,10 +125,10 @@ GEM
119125
net-imap
120126
net-pop
121127
net-smtp
122-
marcel (1.0.4)
128+
marcel (1.1.0)
123129
mini_mime (1.1.5)
124130
minitest (5.25.5)
125-
net-imap (0.5.10)
131+
net-imap (0.5.12)
126132
date
127133
net-protocol
128134
net-pop (0.1.2)
@@ -131,18 +137,25 @@ GEM
131137
timeout
132138
net-smtp (0.5.1)
133139
net-protocol
140+
nio4r (2.7.4)
134141
nio4r (2.7.4-java)
135-
nokogiri (1.18.9-java)
142+
nokogiri (1.18.10-java)
143+
racc (~> 1.4)
144+
nokogiri (1.18.10-x86_64-linux-gnu)
136145
racc (~> 1.4)
137146
ostruct (0.6.2)
138-
pp (0.6.2)
147+
pp (0.6.3)
139148
prettyprint
140149
prettyprint (0.2.0)
150+
psych (5.2.6)
151+
date
152+
stringio
141153
psych (5.2.6-java)
142154
date
143155
jar-dependencies (>= 0.1.7)
156+
racc (1.8.1)
144157
racc (1.8.1-java)
145-
rack (2.2.18)
158+
rack (2.2.20)
146159
rack-session (1.0.2)
147160
rack (< 3)
148161
rack-test (2.2.0)
@@ -180,9 +193,10 @@ GEM
180193
thor (~> 1.0, >= 1.2.2)
181194
zeitwerk (~> 2.6)
182195
rake (13.3.0)
183-
rdoc (6.14.2)
196+
rdoc (6.15.0)
184197
erb
185198
psych (>= 4.0.0)
199+
tsort
186200
reline (0.6.2)
187201
io-console (~> 0.5)
188202
rexml (3.4.4)
@@ -196,12 +210,17 @@ GEM
196210
actionpack (>= 6.1)
197211
activesupport (>= 6.1)
198212
sprockets (>= 3.0.0)
213+
stringio (3.1.7)
199214
thor (1.4.0)
200215
timeout (0.4.3)
216+
tsort (0.2.0)
201217
tzinfo (2.0.6)
202218
concurrent-ruby (~> 1.0)
203219
useragent (0.16.11)
204220
webrick (1.9.1)
221+
websocket-driver (0.8.0)
222+
base64
223+
websocket-extensions (>= 0.1.0)
205224
websocket-driver (0.8.0-java)
206225
base64
207226
websocket-extensions (>= 0.1.0)
@@ -210,10 +229,11 @@ GEM
210229

211230
PLATFORMS
212231
universal-java-21
232+
x86_64-linux
213233

214234
DEPENDENCIES
215235
jruby-jars (< 10)
216-
rack (~> 2.2.18)
236+
rack (~> 2.2.20)
217237
rails (~> 7.2.2, >= 7.2.2.2)
218238
sprockets-rails
219239
warbler!

examples/sinatra/Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ruby '~> 3.1.0'
44

55
gem 'sinatra'
66
gem 'webrick'
7-
gem 'rack', '~> 2.2.0'
7+
gem 'rack', '~> 2.2.20'
88

99
group :development do
1010
gem 'warbler', github: 'jruby/warbler', branch: 'master'

examples/sinatra/Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ GEM
2020
mustermann (3.0.4)
2121
ruby2_keywords (~> 0.0.1)
2222
ostruct (0.6.2)
23-
rack (2.2.18)
23+
rack (2.2.20)
2424
rack-protection (3.2.0)
2525
base64 (>= 0.1.0)
2626
rack (~> 2.2, >= 2.2.4)
@@ -42,7 +42,7 @@ PLATFORMS
4242

4343
DEPENDENCIES
4444
jruby-jars (< 10)
45-
rack (~> 2.2.0)
45+
rack (~> 2.2.20)
4646
sinatra
4747
warbler!
4848
webrick

0 commit comments

Comments
 (0)