Skip to content

Commit c77c9c3

Browse files
committed
Merge remote-tracking branch 'upstream/master' into gocd-master
2 parents e27f895 + 5719f09 commit c77c9c3

File tree

18 files changed

+265
-101
lines changed

18 files changed

+265
-101
lines changed

.github/dependabot.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ updates:
77
groups:
88
actions-deps:
99
patterns: [ "*" ]
10+
11+
# Master branch
1012
- package-ecosystem: maven
1113
directory: "/"
1214
schedule:
@@ -28,6 +30,7 @@ updates:
2830
- package-ecosystem: bundler
2931
directories:
3032
- "/"
33+
- "/examples/*"
3134
schedule:
3235
interval: monthly
3336
allow:
@@ -38,3 +41,52 @@ updates:
3841
ignore:
3942
- dependency-name: "rack"
4043
update-types: [ "version-update:semver-major" ]
44+
- dependency-name: "rails"
45+
update-types: [ "version-update:semver-minor" ]
46+
- dependency-name: "jruby-jars"
47+
update-types: [ "version-update:semver-major" ]
48+
49+
# Maintabled stable branches
50+
- package-ecosystem: maven
51+
target-branch: "1.2-stable"
52+
commit-message:
53+
prefix: "1.2.x: "
54+
directory: "/"
55+
schedule:
56+
interval: monthly
57+
groups:
58+
maven-deps:
59+
dependency-type: "production"
60+
maven-dev-deps:
61+
dependency-type: "development"
62+
ignore:
63+
- dependency-name: "org.jruby*"
64+
update-types: [ "version-update:semver-major", "version-update:semver-minor" ]
65+
- dependency-name: "jakarta*"
66+
update-types: [ "version-update:semver-major" ]
67+
- dependency-name: "javax*"
68+
update-types: [ "version-update:semver-major", "version-update:semver-minor" ]
69+
- dependency-name: "org.springframework*"
70+
update-types: [ "version-update:semver-major" ]
71+
- package-ecosystem: bundler
72+
target-branch: "1.2-stable"
73+
commit-message:
74+
prefix: "1.2.x: "
75+
directories:
76+
- "/"
77+
- "/examples/*"
78+
schedule:
79+
interval: monthly
80+
allow:
81+
- dependency-type: all
82+
groups:
83+
ruby-deps:
84+
patterns: [ "*" ]
85+
ignore:
86+
- dependency-name: "rack"
87+
update-types: [ "version-update:semver-major" ]
88+
- dependency-name: "rails"
89+
update-types: [ "version-update:semver-minor" ]
90+
- dependency-name: "jruby-jars"
91+
update-types: [ "version-update:semver-major" ]
92+

History.md renamed to CHANGELOG.md

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

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

2730
## 1.2.5
2831

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: 3 additions & 3 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)
@@ -20,7 +20,7 @@ GEM
2020
rspec-mocks (3.13.5)
2121
diff-lcs (>= 1.2.0, < 2.0)
2222
rspec-support (~> 3.13.0)
23-
rspec-support (3.13.5)
23+
rspec-support (3.13.6)
2424
thor (1.4.0)
2525

2626
PLATFORMS
@@ -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.
@@ -248,7 +250,13 @@ as context init parameters in web.xml or as VM-wide system properties.
248250
this option to en empty string (or 'false') it acts as if the ENV hash was
249251
cleared out (similar to the now removed `jruby.rack.ignore.env` option).
250252
- `jruby.runtime.env.rubyopt`: Set to true to cause ENV['RUBYOPT']
251-
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).
253+
to be retained even when using `jruby.runtime.env` to override the environment.
254+
- `jruby.rack.env.gem_path`: If set to `true` (the default) jruby-rack will
255+
ensure ENV['GEM_PATH'] is altered to include the `gem.path` above. If you set it to a
256+
value, this value will be used as GEM_PATH, overriding the environment and
257+
ignoring `gem.path` etc. By setting this option to en empty string the ENV['GEM_PATH'] will
258+
not be modified by jruby-rack at all and will retain its original values implied by
259+
the process environment and `jruby.runtime.env` setting.
252260
- `jruby.rack.logging`: Specify the logging device to use. Defaults to
253261
`servlet_context`. See below.
254262
- `jruby.rack.request.size.initial.bytes`: Initial size for request body memory
@@ -373,9 +381,7 @@ package and push the .jar every time a commit changes a source file).
373381
Please use [github][3] to file bugs, patches and/or pull requests.
374382
More information at the [wiki][4] or ask us at **#jruby**'s IRC channel.
375383

376-
[1]: https://github.com/jruby/warbler#warbler--
384+
[1]: https://github.com/jruby/warbler
377385
[2]: https://central.sonatype.com/artifact/org.jruby.rack/jruby-rack
378386
[3]: https://github.com/jruby/jruby-rack/issues
379387
[4]: https://github.com/jruby/jruby-rack/wiki
380-
[5]: http://badge.fury.io/rb/jruby-rack
381-
[6]: https://github.com/jruby/jruby-rack/actions/workflows/maven.yml

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ end
156156
desc "Build the jruby-rack-#{GEM_VERSION}.gem"
157157
task :gem => [target_jar, target_jruby_rack, target_jruby_rack_version] do
158158
Rake::Task['spec'].invoke unless ENV['SKIP_SPECS'] == 'true'
159-
cp FileList["History.md", "LICENSE.txt", "README.md"], "target/gem"
159+
cp FileList["CHANGELOG.md", "LICENSE.txt", "README.md"], "target/gem"
160160
cp target_jar, "target/gem/lib"
161161
if (jars = FileList["target/gem/lib/*.jar"].to_a).size > 1
162162
abort "Too many jars! #{jars.map{|j| File.basename(j)}.inspect}\nRun a clean build `rake clean` first"

examples/camping/Gemfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
source 'https://rubygems.org'
22

3-
gem 'rack', '~> 2.2.18'
3+
ruby '~> 3.1.0'
4+
5+
gem 'rack', '~> 2.2.20'
46
gem 'rackup'
57
gem 'camping', '< 3'
68
gem 'markaby'

examples/camping/Gemfile.lock

Lines changed: 7 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,9 +41,12 @@ 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

48+
RUBY VERSION
49+
ruby 3.1.7p0 (jruby 9.4.14.0)
50+
4851
BUNDLED WITH
4952
2.6.9

examples/rails7/Gemfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
source "https://rubygems.org"
1+
source 'https://rubygems.org'
22

3-
gem "rails", "~> 7.2.2", ">= 7.2.2.2"
4-
gem "rack", "~> 2.2.0"
3+
ruby '~> 3.1.0'
4+
5+
gem 'rails', '~> 7.2.2', '>= 7.2.2.2'
6+
gem 'rack', '~> 2.2.20'
57
gem "sprockets-rails"
68

79
group :development do
10+
gem 'warbler', github: 'jruby/warbler', branch: 'master'
811
gem 'jruby-jars', '< 10'
912
end

examples/rails7/Gemfile.lock

Lines changed: 50 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
GIT
2+
remote: https://github.com/jruby/warbler.git
3+
revision: 523237b6d931efcd6f13a79692f6aa46ad997443
4+
branch: master
5+
specs:
6+
warbler (2.0.5)
7+
jruby-jars (>= 9.0.0)
8+
jruby-rack (>= 1.1.1, < 1.3)
9+
ostruct (= 0.6.2)
10+
rake (>= 13.0.3)
11+
rexml (~> 3.0)
12+
rubyzip (>= 3.0.0)
13+
114
GEM
215
remote: https://rubygems.org/
316
specs:
@@ -74,28 +87,35 @@ GEM
7487
tzinfo (~> 2.0, >= 2.0.5)
7588
base64 (0.3.0)
7689
benchmark (0.4.1)
77-
bigdecimal (3.2.3-java)
90+
bigdecimal (3.3.0)
91+
bigdecimal (3.3.0-java)
7892
builder (3.3.0)
93+
cgi (0.5.0)
7994
cgi (0.5.0-java)
8095
concurrent-ruby (1.3.5)
8196
connection_pool (2.5.4)
8297
crass (1.0.6)
98+
date (3.4.1)
8399
date (3.4.1-java)
84100
drb (2.2.3)
101+
erb (4.0.4)
102+
cgi (>= 0.3.3)
85103
erb (4.0.4-java)
86104
cgi (>= 0.3.3)
87105
erubi (1.13.1)
88-
globalid (1.2.1)
106+
globalid (1.3.0)
89107
activesupport (>= 6.1)
90108
i18n (1.14.7)
91109
concurrent-ruby (~> 1.0)
110+
io-console (0.8.1)
92111
io-console (0.8.1-java)
93112
irb (1.15.2)
94113
pp (>= 0.6.0)
95114
rdoc (>= 4.0.0)
96115
reline (>= 0.4.2)
97116
jar-dependencies (0.5.5)
98117
jruby-jars (9.4.14.0)
118+
jruby-rack (1.2.5)
99119
logger (1.7.0)
100120
loofah (2.24.1)
101121
crass (~> 1.0.2)
@@ -105,10 +125,10 @@ GEM
105125
net-imap
106126
net-pop
107127
net-smtp
108-
marcel (1.0.4)
128+
marcel (1.1.0)
109129
mini_mime (1.1.5)
110130
minitest (5.25.5)
111-
net-imap (0.5.10)
131+
net-imap (0.5.12)
112132
date
113133
net-protocol
114134
net-pop (0.1.2)
@@ -117,17 +137,25 @@ GEM
117137
timeout
118138
net-smtp (0.5.1)
119139
net-protocol
140+
nio4r (2.7.4)
120141
nio4r (2.7.4-java)
121-
nokogiri (1.18.9-java)
142+
nokogiri (1.18.10-java)
143+
racc (~> 1.4)
144+
nokogiri (1.18.10-x86_64-linux-gnu)
122145
racc (~> 1.4)
123-
pp (0.6.2)
146+
ostruct (0.6.2)
147+
pp (0.6.3)
124148
prettyprint
125149
prettyprint (0.2.0)
150+
psych (5.2.6)
151+
date
152+
stringio
126153
psych (5.2.6-java)
127154
date
128155
jar-dependencies (>= 0.1.7)
156+
racc (1.8.1)
129157
racc (1.8.1-java)
130-
rack (2.2.18)
158+
rack (2.2.20)
131159
rack-session (1.0.2)
132160
rack (< 3)
133161
rack-test (2.2.0)
@@ -165,11 +193,14 @@ GEM
165193
thor (~> 1.0, >= 1.2.2)
166194
zeitwerk (~> 2.6)
167195
rake (13.3.0)
168-
rdoc (6.14.2)
196+
rdoc (6.15.0)
169197
erb
170198
psych (>= 4.0.0)
199+
tsort
171200
reline (0.6.2)
172201
io-console (~> 0.5)
202+
rexml (3.4.4)
203+
rubyzip (3.1.1)
173204
securerandom (0.4.1)
174205
sprockets (4.2.2)
175206
concurrent-ruby (~> 1.0)
@@ -179,12 +210,17 @@ GEM
179210
actionpack (>= 6.1)
180211
activesupport (>= 6.1)
181212
sprockets (>= 3.0.0)
213+
stringio (3.1.7)
182214
thor (1.4.0)
183215
timeout (0.4.3)
216+
tsort (0.2.0)
184217
tzinfo (2.0.6)
185218
concurrent-ruby (~> 1.0)
186219
useragent (0.16.11)
187220
webrick (1.9.1)
221+
websocket-driver (0.8.0)
222+
base64
223+
websocket-extensions (>= 0.1.0)
188224
websocket-driver (0.8.0-java)
189225
base64
190226
websocket-extensions (>= 0.1.0)
@@ -193,12 +229,17 @@ GEM
193229

194230
PLATFORMS
195231
universal-java-21
232+
x86_64-linux
196233

197234
DEPENDENCIES
198235
jruby-jars (< 10)
199-
rack (~> 2.2.0)
236+
rack (~> 2.2.20)
200237
rails (~> 7.2.2, >= 7.2.2.2)
201238
sprockets-rails
239+
warbler!
240+
241+
RUBY VERSION
242+
ruby 3.1.7p0 (jruby 9.4.14.0)
202243

203244
BUNDLED WITH
204245
2.6.9

0 commit comments

Comments
 (0)