Skip to content

Commit a38e096

Browse files
committed
Merge remote-tracking branch 'upstream/master' into jakarta-update
2 parents 94b64ae + 836609a commit a38e096

30 files changed

+34
-425
lines changed

.github/workflows/maven.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,23 @@ jobs:
1919

2020
strategy:
2121
matrix:
22-
jruby_version: [ '9.4.14.0', '10.0.2.0' ]
22+
jruby_version: [ '9.4.14.0', '10.0.3.0' ]
2323
java_version: [ '8', '11', '17', '21', '25' ]
2424
rack_version: [ '~> 2.2.0' ]
2525
exclude:
26-
- jruby_version: '10.0.2.0'
26+
- jruby_version: '10.0.3.0'
2727
java_version: '8' # JRuby 10 requires Java 21
28-
- jruby_version: '10.0.2.0'
28+
- jruby_version: '10.0.3.0'
2929
java_version: '11' # JRuby 10 requires Java 21
30-
- jruby_version: '10.0.2.0'
30+
- jruby_version: '10.0.3.0'
3131
java_version: '17' # JRuby 10 requires Java 21
3232
fail-fast: false
3333

3434
steps:
35-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
35+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3636

3737
- name: Set up JDK
38-
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
38+
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
3939
with:
4040
java-version: ${{ matrix.java_version }}
4141
distribution: 'temurin'
@@ -59,20 +59,19 @@ jobs:
5959
strategy:
6060
matrix:
6161
appraisal: [
62-
'rails61_rack22',
6362
'rails70_rack22',
6463
'rails71_rack22',
6564
'rails72_rack22',
6665
'rails80_rack22',
6766
]
68-
jruby_version: [ '9.4.14.0', '10.0.2.0' ]
67+
jruby_version: [ '9.4.14.0', '10.0.3.0' ]
6968
java_version: [ '8', '11', '17', '21', '25' ]
7069
exclude:
71-
- jruby_version: '10.0.2.0'
70+
- jruby_version: '10.0.3.0'
7271
java_version: '8' # JRuby 10 requires Java 21
73-
- jruby_version: '10.0.2.0'
72+
- jruby_version: '10.0.3.0'
7473
java_version: '11' # JRuby 10 requires Java 21
75-
- jruby_version: '10.0.2.0'
74+
- jruby_version: '10.0.3.0'
7675
java_version: '17' # JRuby 10 requires Java 21
7776
- appraisal: 'rails80_rack22'
7877
jruby_version: '9.4.14.0' # Rails 8 requires Ruby 3.4 compatibility, which JRuby 9.4 does not support
@@ -83,10 +82,10 @@ jobs:
8382
JRUBY_VERSION: ${{ matrix.jruby_version }}
8483

8584
steps:
86-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
85+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
8786

8887
- name: Set up JDK
89-
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
88+
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
9089
with:
9190
java-version: ${{ matrix.java_version }}
9291
distribution: 'temurin'

Appraisals

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ version_spec = ->(prefix, desc) { "~> #{desc.split(prefix).last.insert(1, ".")}.
33
# Rails version -> rack versions in format
44
# rails#{MAJOR}#{MINOR} => %w[ rack#{MAJOR}#{MINOR} ]
55
{
6-
"rails61" => %w[rack22],
76
"rails70" => %w[rack22],
87
"rails71" => %w[rack22],
98
"rails72" => %w[rack22],

CHANGELOG.md

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

1010
Breaking compatibility changes
1111
- Drop support for JRuby 9.3
12-
- Drop support for Rails < 6.1
12+
- Drop support for Rails < 7.0
1313

1414
Breaking behavioral changes
1515
- Change context listener to throw by default in case of an exception during initialization

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ GEM
2020
rspec-mocks (3.13.7)
2121
diff-lcs (>= 1.2.0, < 2.0)
2222
rspec-support (~> 3.13.0)
23-
rspec-support (3.13.6)
24-
thor (1.4.0)
23+
rspec-support (3.13.7)
24+
thor (1.5.0)
2525

2626
PLATFORMS
2727
universal-java-1.8

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ For more information on Rack, visit http://rack.github.io/.
1313

1414
## Compatibility
1515

16-
| JRuby-Rack Series | Status | Rack | JRuby | Java | Rails | Target Servlet API | Notes |
17-
|------------------------------------------------------------|------------|-----------|------------|------|-----------|---------------------|--------------------------------------------|
18-
| 2.0 (_planned_) | Dev | 2.2 | 9.4 → 10.0 | 8+ | 6.1 → 8.0 | 5.0+ (Jakarta EE 9) | Pre 5.0 servlet APIs non functional. |
19-
| 1.3 (master, _unreleased_) | Dev | 2.2 | 9.4 → 10.0 | 8+ | 6.1 → 8.0 | 4.0 (Java EE 8) | Servlet 2.5 → 3.1 likely to work fine. |
20-
| [1.2](https://github.com/jruby/jruby-rack/tree/1.2-stable) | Maintained | 2.2 | 9.3 → 9.4 | 8+ | 5.0 → 7.2 | 3.0 (Java EE 6) | Servlet 3.1 → 4.0 OK with some containers. |
21-
| [1.1](https://github.com/jruby/jruby-rack/tree/1.1-stable) | EOL | 1.x → 2.2 | 1.6 → 9.4 | 6+ | 2.1 → 5.2 | 2.5 (Java EE 5) | Servlet 3.0 → 4.0 OK with some containers. |
22-
| 1.0 | EOL | 0.9 → 1.x | 1.1 → 1.9 | 5+ | 2.1 → 3.x | 2.5 (Java EE 5) | |
16+
| JRuby-Rack Series | Status | Rack | JRuby | Java | Rails | Target Servlet API | Notes |
17+
|----------------------------------------------------------------|---------------|-----------|------------|------|-----------|---------------------|----------------------------------------------------------------|
18+
| **2.0 (_planned_, _unreleased_)** | Dev | 2.2 | 9.4 → 10.0 | 8+ | 7.0 → 8.0 | 5.0+ (Jakarta EE 9) | ❌ Servlet < 5.0 containers will not work |
19+
| **1.3 (master, _unreleased_)** | Dev | 2.2 | 9.4 → 10.0 | 8+ | 7.0 → 8.0 | 4.0 (Java EE 8) | _Unofficial_: Servlet 2.5 → 3.1 & Rails 6.1 likely working |
20+
| [**1.2**](https://github.com/jruby/jruby-rack/tree/1.2-stable) | Maintained | 2.2 | 9.3 → 9.4 | 8+ | 5.0 → 7.2 | 3.0 (Java EE 6) | _Unofficial_: Servlet 3.1 → 4.0 also OK with most containers |
21+
| [**1.1**](https://github.com/jruby/jruby-rack/tree/1.1-stable) | EOL @ 2024-05 | 1.x → 2.2 | 1.6 → 9.4 | 6+ | 2.1 → 5.2 | 2.5 (Java EE 5) | _Unofficial_: Servlet 3.0 → 4.0 also OK with most containers |
22+
| [**1.0**](https://github.com/jruby/jruby-rack/tree/1.0.10) | EOL @ 2011-11 | 0.9 → 1.x | 1.1 → 1.9 | 5+ | 2.1 → 3.x | 2.5 (Java EE 5) | |
2323

2424
## Getting Started
2525

pom.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<jruby.maven.plugins.version>3.0.6</jruby.maven.plugins.version>
2626
<gem.home>${project.build.directory}/rubygems</gem.home>
2727
<slf4j.version>2.0.17</slf4j.version>
28-
<log4j.version>2.25.2</log4j.version>
28+
<log4j.version>2.25.3</log4j.version>
2929
<spring.version>5.3.39</spring.version>
3030
</properties>
3131

@@ -185,7 +185,7 @@
185185
<plugin>
186186
<groupId>org.apache.maven.plugins</groupId>
187187
<artifactId>maven-compiler-plugin</artifactId>
188-
<version>3.14.1</version>
188+
<version>3.15.0</version>
189189
<configuration>
190190
<release>8</release>
191191
<showDeprecation>true</showDeprecation>
@@ -195,7 +195,7 @@
195195
<plugin>
196196
<groupId>org.apache.maven.plugins</groupId>
197197
<artifactId>maven-resources-plugin</artifactId>
198-
<version>3.3.1</version>
198+
<version>3.4.0</version>
199199
</plugin>
200200
<plugin>
201201
<groupId>org.apache.maven.plugins</groupId>
@@ -273,7 +273,7 @@
273273
<plugin>
274274
<groupId>org.sonatype.central</groupId>
275275
<artifactId>central-publishing-maven-plugin</artifactId>
276-
<version>0.9.0</version>
276+
<version>0.10.0</version>
277277
<extensions>true</extensions>
278278
<configuration>
279279
<publishingServerId>central</publishingServerId>
@@ -283,7 +283,7 @@
283283
<plugin>
284284
<groupId>org.codehaus.mojo</groupId>
285285
<artifactId>versions-maven-plugin</artifactId>
286-
<version>2.19.1</version>
286+
<version>2.21.0</version>
287287
<configuration>
288288
<ignoredVersions>.*-(alpha|beta|M)[-0-9]+</ignoredVersions>
289289
</configuration>
@@ -305,7 +305,7 @@
305305
<plugin>
306306
<groupId>org.apache.maven.plugins</groupId>
307307
<artifactId>maven-source-plugin</artifactId>
308-
<version>3.3.1</version>
308+
<version>3.4.0</version>
309309
<executions>
310310
<execution>
311311
<id>attach-sources</id>

src/spec/ruby/jruby/rack/integration_spec.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,6 @@
203203
end
204204
end
205205

206-
describe 'rails 6.1', lib: :rails61 do
207-
it_should_behave_like 'a rails app'
208-
end
209-
210206
describe 'rails 7.0', lib: :rails70 do
211207
it_should_behave_like 'a rails app'
212208
end

src/spec/ruby/rack/application_spec.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -738,10 +738,10 @@ def method_missing(name, *args, &block)
738738
expect(@rack_config).to receive(:getInitialRuntimes).and_return 3
739739
expect(@rack_config).to receive(:getMaximumRuntimes).and_return 4
740740

741-
@pooling_factory.init(@rack_context)
742741
start = java.lang.System.currentTimeMillis
742+
@pooling_factory.init(@rack_context)
743743
expect(@pooling_factory.getApplication).not_to be nil
744-
expect(java.lang.System.currentTimeMillis - start).to be_within(70).of(app_init_secs * 1000) # getApplication waited ~ sleep time
744+
expect(java.lang.System.currentTimeMillis - start).to be >= app_init_secs * 1000 - 70 # getApplication waited ~ sleep time
745745
end
746746

747747
it "waits acquire timeout till an application is available from the pool (than raises)" do
@@ -760,14 +760,14 @@ def method_missing(name, *args, &block)
760760
@pooling_factory.acquire_timeout = 1.to_java # second
761761
start = java.lang.System.currentTimeMillis
762762
expect(@pooling_factory.getApplication).not_to be nil
763-
expect(java.lang.System.currentTimeMillis - start).to be_within(70).of(app_init_secs * 1000)
763+
expect(java.lang.System.currentTimeMillis - start).to be >= app_init_secs * 1000 - 70
764764

765765
app2 = @pooling_factory.getApplication # now the pool is empty
766766
timeout_secs = 0.1
767767
@pooling_factory.acquire_timeout = (timeout_secs).to_java
768768
start = java.lang.System.currentTimeMillis
769769
expect { @pooling_factory.getApplication }.to raise_error(org.jruby.rack.AcquireTimeoutException)
770-
expect(java.lang.System.currentTimeMillis - start).to be_within(20).of(timeout_secs * 1000)
770+
expect(java.lang.System.currentTimeMillis - start).to be >= timeout_secs * 1000 - 20
771771

772772
@pooling_factory.finishedWithApplication(app2) # gets back to the pool
773773
expect(@pooling_factory.getApplication).to eq app2
@@ -800,13 +800,13 @@ def method_missing(name, *args, &block)
800800

801801
start = java.lang.System.currentTimeMillis
802802
2.times { expect(@pooling_factory.getApplication).not_to be nil }
803-
expect(java.lang.System.currentTimeMillis - start).to be_within(70).of(2 * app_get_secs * 1000)
803+
expect(java.lang.System.currentTimeMillis - start).to be >= 2 * app_init_secs * 1000 - 70
804804

805805
start = java.lang.System.currentTimeMillis
806806
expect {
807807
@pooling_factory.getApplication
808808
}.to raise_error(org.jruby.rack.AcquireTimeoutException)
809-
expect(java.lang.System.currentTimeMillis - start).to be_within(20).of(timeout_secs * 1000)
809+
expect(java.lang.System.currentTimeMillis - start).to be >= timeout_secs * 1000 - 20
810810
end
811811

812812
it "initializes initial runtimes in parallel (with wait set to false)" do

src/spec/stub/rails61/app/controllers/application_controller.rb

Lines changed: 0 additions & 2 deletions
This file was deleted.

src/spec/stub/rails61/app/helpers/application_helper.rb

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)