Skip to content

Commit 09e609e

Browse files
committed
Merge remote-tracking branch 'upstream/master' into jakarta-update
# Conflicts: # src/spec/ruby/jruby/rack/integration_spec.rb
2 parents 5649c60 + 83a0ab9 commit 09e609e

File tree

211 files changed

+3101
-1449
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

211 files changed

+3101
-1449
lines changed

.github/workflows/maven.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
env:
1010
# Default versions for canonical release build
1111
DEFAULT_JAVA_VERSION: '8'
12-
DEFAULT_JRUBY_VERSION: '9.4.13.0' # Should match pom.xml <jruby.version> property (AND a version inside the test matrix)
12+
DEFAULT_JRUBY_VERSION: '9.4.14.0' # Should match pom.xml <jruby.version> property (AND a version inside the test matrix)
1313
DEFAULT_RACK_VERSION: '~> 2.2.0' # Should match Gemfile (AND a version inside the test matrix)
1414

1515
jobs:
@@ -19,7 +19,7 @@ jobs:
1919

2020
strategy:
2121
matrix:
22-
jruby_version: [ '9.4.13.0', '10.0.2.0' ]
22+
jruby_version: [ '9.4.14.0', '10.0.2.0' ]
2323
java_version: [ '8', '11', '17', '21' ]
2424
rack_version: [ '~> 2.2.0' ]
2525
exclude:
@@ -59,16 +59,13 @@ jobs:
5959
strategy:
6060
matrix:
6161
appraisal: [
62-
'rails50_rack22',
63-
'rails52_rack22',
64-
'rails60_rack22',
6562
'rails61_rack22',
6663
'rails70_rack22',
6764
'rails71_rack22',
6865
'rails72_rack22',
6966
'rails80_rack22',
7067
]
71-
jruby_version: [ '9.4.13.0', '10.0.2.0' ]
68+
jruby_version: [ '9.4.14.0', '10.0.2.0' ]
7269
java_version: [ '8', '11', '17', '21' ]
7370
exclude:
7471
- jruby_version: '10.0.2.0'
@@ -78,7 +75,7 @@ jobs:
7875
- jruby_version: '10.0.2.0'
7976
java_version: '17' # JRuby 10 requires Java 21
8077
- appraisal: 'rails80_rack22'
81-
jruby_version: '9.4.13.0' # Rails 8 requires Ruby 3.4 compatibility, which JRuby 9.4 does not support
78+
jruby_version: '9.4.14.0' # Rails 8 requires Ruby 3.4 compatibility, which JRuby 9.4 does not support
8279
fail-fast: false
8380

8481
env:
@@ -96,7 +93,7 @@ jobs:
9693
cache: maven
9794

9895
- name: Setup JRuby
99-
uses: ruby/setup-ruby@829114fc20da43a41d27359103ec7a63020954d4 # v1.255.0
96+
uses: ruby/setup-ruby@v1
10097
with:
10198
ruby-version: jruby-${{ matrix.jruby_version }}
10299
bundler-cache: 'false' # Need to install later so we can vary from Gemfile.lock as required for JRuby version compatibility

Appraisals

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +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-
"rails50" => %w[rack22],
7-
"rails52" => %w[rack22],
8-
"rails60" => %w[rack22],
96
"rails61" => %w[rack22],
107
"rails70" => %w[rack22],
118
"rails71" => %w[rack22],

History.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- Support Javax Servlet API 4.0 (JEE 8)
88
- Adds basic compatibility with JRuby 10.0
99
- Drop support for JRuby 9.3
10+
- Drop support for Rails < 6.1
1011
- Drop unnecessary `jruby.compat.version` and `RackConfig.getCompatVersion()` API
1112
- Drop JMS support
1213
- Drop deprecated `RackLogger` string (level) constants
@@ -22,6 +23,12 @@
2223
- Change context listener to throw, in case of an exception during initialization, by default
2324
- Change rails context listener to assume a thread-safe application by default
2425

26+
## 1.2.5 (UNRELEASED)
27+
28+
- Fix use of jruby-rack under Java 8 (#324)
29+
- Fix deprecated usages of JRuby runtime
30+
- Fix deprecated usages of Rack API
31+
2532
## 1.2.4
2633

2734
- update (bundled) rack to 2.2.17

README.md

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

1414
| JRuby-Rack Series | Status | Rack | JRuby | Java | Rails | Target Servlet API | Notes |
1515
|------------------------------------------------------------|------------|-----------|------------|------|-----------|---------------------|--------------------------------------------|
16-
| 2.0 (_planned_) | Dev | 2.2 | 9.4 → 10.0 | 8+ | 5.0 → 8.0 | 5.0+ (Jakarta EE 9) | Pre 5.0 servlet APIs non functional. |
17-
| 1.3 (master, _unreleased_) | Dev | 2.2 | 9.4 → 10.0 | 8+ | 5.0 → 8.0 | 4.0 (Java EE 8) | Servlet 2.5 → 3.1 likely to work fine. |
16+
| 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. |
17+
| 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. |
1818
| [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. |
1919
| [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. |
2020
| 1.0 | EOL | 0.9 → 1.x | 1.1 → 1.9 | 5+ | 2.1 → 3.x | 2.5 (Java EE 5) | |
@@ -335,6 +335,20 @@ package and push the .jar every time a commit changes a source file).
335335
* `./mvnw release:perform` (possibly with `-DuseReleaseProfile=false` due to Javadoc doclint failures for now)
336336
* `rake clean gem SKIP_SPECS=true` and push the gem
337337

338+
## Adding testing for new Rails versions
339+
340+
* Add the new version to `.github/workflows/maven.yml` under the `matrix` section
341+
* Add a new configuration to the `Appraisals` file, then
342+
```bundle exec appraisal generate```
343+
* Generate a new stub Rails application for the new version
344+
```shell
345+
VERSION=rails72
346+
cd src/spec/stub
347+
rm -rf $VERSION && BUNDLE_GEMFILE=~/Projects/community/jruby-rack/gemfiles/${VERSION}_rack22.gemfile bundle exec rails new $VERSION --minimal --skip-git --skip-docker --skip-active-model --skip-active-record --skip-test --skip-system-test --skip-dev-gems --skip-bundle --skip-keeps --skip-asset-pipeline --skip-ci --skip-brakeman --skip-rubocop
348+
```
349+
* Manual changes to make to support testing
350+
* In `config/production.rb` comment out the default `config.logger` value so jruby-rack applies its own `RailsLogger`.
351+
338352
## Support
339353

340354
Please use [github][3] to file bugs, patches and/or pull requests.

examples/Kirkfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
rack "rails3/config.ru" do
1+
rack "rails7/config.ru" do
22
listen 9090
33
end
44

examples/camping/Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ GEM
1818
camping (2.1.532)
1919
mab (>= 0.0.3)
2020
rack (>= 1.0)
21-
jruby-jars (9.4.13.0)
21+
jruby-jars (9.4.14.0)
2222
jruby-rack (1.2.3)
2323
mab (0.0.3)
2424
markaby (0.9.4)

examples/rails3/.gitignore

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

examples/rails3/Gemfile

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

examples/rails3/Gemfile.lock

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

0 commit comments

Comments
 (0)