Skip to content

Commit a535631

Browse files
committed
Merge remote-tracking branch 'upstream/master' into gocd-master
# Conflicts: # .github/workflows/maven.yml # Gemfile.lock # History.md # gemfiles/rails50.gemfile.lock # gemfiles/rails52.gemfile.lock # gemfiles/rails60.gemfile.lock # gemfiles/rails61.gemfile.lock # gemfiles/rails70.gemfile.lock # gemfiles/rails71.gemfile.lock # gemfiles/rails72.gemfile.lock # pom.xml # src/main/ruby/jruby/rack/version.rb # src/spec/ruby/jruby/rack/integration_spec.rb
2 parents 5db9a63 + 2e5551f commit a535631

File tree

235 files changed

+856
-5025
lines changed

Some content is hidden

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

235 files changed

+856
-5025
lines changed

.github/workflows/maven.yml

Lines changed: 17 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ name: Java CI
22

33
on:
44
push:
5-
branches: [ "master", "*release*", "*stable*" ]
5+
branches: [ "master", "*-stable" ]
66
pull_request:
7-
branches: [ "master", "*release*", "*stable*" ]
7+
branches: [ "master", "*-stable" ]
88

99
env:
1010
# Default versions for canonical release build
11-
DEFAULT_JAVA_VERSION: '8'
12-
DEFAULT_JRUBY_VERSION: '9.4.12.1' # Should match pom.xml <jruby.version> property (AND a version inside the test matrix)
11+
DEFAULT_JAVA_VERSION: '11'
12+
DEFAULT_JRUBY_VERSION: '9.4.13.0' # Should match pom.xml <jruby.version> property (AND a version inside the test matrix)
1313

1414
jobs:
1515
build:
@@ -18,14 +18,12 @@ jobs:
1818

1919
strategy:
2020
matrix:
21-
jruby_version: [ '9.3.15.0', '9.4.12.1' ] # , '10.0.0.1'
22-
java_version: [ '8', '11', '17', '21' ]
21+
jruby_version: [ '9.4.13.0', '10.0.1.0' ]
22+
java_version: [ '11', '17', '21' ]
2323
exclude:
24-
- jruby_version: '10.0.0.1'
25-
java_version: '8' # JRuby 10 requires Java 21
26-
- jruby_version: '10.0.0.1'
24+
- jruby_version: '10.0.1.0'
2725
java_version: '11' # JRuby 10 requires Java 21
28-
- jruby_version: '10.0.0.1'
26+
- jruby_version: '10.0.1.0'
2927
java_version: '17' # JRuby 10 requires Java 21
3028
fail-fast: false
3129

@@ -54,21 +52,15 @@ jobs:
5452

5553
strategy:
5654
matrix:
57-
jruby_version: [ '9.3.15.0', '9.4.12.1' ] # , '10.0.0.1'
58-
java_version: [ '8', '11', '17', '21' ]
59-
appraisal: [ 'rails50', 'rails52', 'rails60', 'rails61', 'rails70', 'rails71', 'rails72' ]
55+
jruby_version: [ '9.4.13.0', '10.0.1.0' ]
56+
java_version: [ '11', '17', '21' ]
57+
appraisal: [ 'rails50', 'rails52', 'rails60', 'rails61', 'rails70', 'rails71', 'rails72', 'rails80' ]
6058
exclude:
61-
- jruby_version: '9.3.15.0'
62-
appraisal: 'rails70' # Requires Ruby 2.7 compatibility, which JRuby 9.3 does not support
63-
- jruby_version: '9.3.15.0'
64-
appraisal: 'rails71' # Requires Ruby 2.7 compatibility, which JRuby 9.3 does not support
65-
- jruby_version: '9.3.15.0'
66-
appraisal: 'rails72' # Requires Ruby 3.1 compatibility, which JRuby 9.3 does not support
67-
- jruby_version: '10.0.0.1'
68-
java_version: '8' # JRuby 10 requires Java 21
69-
- jruby_version: '10.0.0.1'
59+
- jruby_version: '9.4.13.0'
60+
appraisal: 'rails80' # Requires Ruby 3.4 compatibility, which JRuby 9.4 does not support
61+
- jruby_version: '10.0.1.0'
7062
java_version: '11' # JRuby 10 requires Java 21
71-
- jruby_version: '10.0.0.1'
63+
- jruby_version: '10.0.1.0'
7264
java_version: '17' # JRuby 10 requires Java 21
7365
fail-fast: false
7466

@@ -87,11 +79,11 @@ jobs:
8779
cache: maven
8880

8981
- name: Setup JRuby
90-
uses: ruby/setup-ruby@a4effe49ee8ee5b8b5091268c473a4628afb5651 # v1.245.0
82+
uses: ruby/setup-ruby@a9bfc2ecf3dd40734a9418f89a7e9d484c32b990 # v1.248.0
9183
with:
9284
ruby-version: jruby-${{ matrix.jruby_version }}
9385
bundler-cache: 'false' # Need to install later so we can vary from Gemfile.lock as required for JRuby version compatibility
94-
bundler: ${{ startsWith(matrix.jruby_version, '9.3') && '2.3.27' || 'Gemfile.lock' }}
86+
bundler: 'Gemfile.lock'
9587

9688
- name: Run appraisal for ${{ matrix.appraisal }}
9789
run: bundle install && bundle exec rake spec

Appraisals

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,7 @@ end
2525
appraise "rails72" do
2626
gem "rails", "~> 7.2.0"
2727
end
28+
29+
appraise "rails80" do
30+
gem "rails", "~> 8.0.0"
31+
end

Gemfile.lock

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@ GEM
2121
diff-lcs (>= 1.2.0, < 2.0)
2222
rspec-support (~> 3.13.0)
2323
rspec-support (3.13.4)
24-
thor (1.3.2)
24+
thor (1.4.0)
2525

2626
PLATFORMS
27-
universal-java-1.8
2827
universal-java-11
2928
universal-java-17
3029
universal-java-21
@@ -35,6 +34,3 @@ DEPENDENCIES
3534
rack (~> 2.2)
3635
rake (~> 13.3)
3736
rspec
38-
39-
BUNDLED WITH
40-
2.6.3

History.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,26 @@
1+
## 1.3.0 (UNRELEASED)
2+
3+
- Require Java 11 or later
4+
- Support Javax Servlet API 4.0 (JEE 8)
5+
- Adds basic compatibility with JRuby 10.0
6+
- Drop support for JRuby 9.3
7+
- Drop unnecessary `jruby.compat.version` and `RackConfig.getCompatVersion()` API
8+
- Drop JMS support
9+
- Drop deprecated `RackLogger` string (level) constants
10+
- Drop `jruby.rack.jruby.version` and `jruby.rack.rack.release` keys from rack `env` Hhsh
11+
- Change context listener to throw, in case of an exception during initialization, by default
12+
- Change rails context listener to assume a thread-safe application by default
13+
- update (bundled) rack to 2.2.17
14+
- Fix Rails 7.1 CSRF protection when working with `JavaServletStore` sessions
15+
116
## 1.2.4 (UNRELEASED)
217

3-
- update (bundled) rack to 2.2.16
18+
- update (bundled) rack to 2.2.17
19+
- Fix Rails 7.1 CSRF protection when working with `JavaServletStore` sessions
420

521
## 1.2.3
622

7-
- avoid warnings due usage of `File.exists?`
23+
- avoid warnings due to usage of `File.exists?`
824
- Fix Rails 7.1 compatibility by ensuring active_support is required before railtie
925
- Workaround logger require issues with concurrent-ruby 1.3.5 and older Rails versions
1026
- Workaround NameError frozen string literal issues with JRuby 9.3 and Rails 5.2/6.0

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ JRuby-Rack supports Rails as well as any Rack-compatible Ruby web framework.
66

77
For more information on Rack, visit http://rack.github.io/.
88

9-
**This README (master) targets JRuby-Rack 1.2. Please use the
10-
[1.1-stable](https://github.com/jruby/jruby-rack/tree/1.1-stable) branch for
11-
current stable 1.1.x releases.**
9+
**This README (master) targets JRuby-Rack 1.3. Please use the [1.2-stable](https://github.com/jruby/jruby-rack/tree/1.2-stable) or
10+
[1.1-stable](https://github.com/jruby/jruby-rack/tree/1.1-stable) branches for
11+
current stable releases.**
1212

1313
[![Gem Version](https://badge.fury.io/rb/jruby-rack.png)][8]
1414
[![Build Status](https://github.com/jruby/jruby-rack/actions/workflows/maven.yml/badge.svg)][9]
@@ -34,12 +34,16 @@ dependencies {
3434

3535
## Compatibility
3636

37+
JRuby-Rack 1.3.x
38+
- aims to be compatible with JRuby 9.4 -> 10.0 and Java 11+
39+
- supports any container compatible with Java Servlet 4.0 API
40+
3741
JRuby-Rack 1.2.x
38-
- aims to be compatible with JRuby >= 9.3 and its supported JDK versions
42+
- compatible with JRuby 9.3 -> 9.4 and their supported JDK versions
3943
- supports any container compatible with Java Servlet 3.0 API
4044

4145
JRuby-Rack 1.1.x
42-
- aims to be compatible with JRuby >= 1.6.4 (used successfully through JRuby 9.4.x)
46+
- aims to be compatible with JRuby >= 1.6.4 (used successfully through JRuby 9.4)
4347
- supports any container compatible with Java Servlet 2.5 API (JEE 5)
4448

4549

Rakefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ module JRubyJars
143143
end
144144
require jruby_rack_jar_path if defined?(JRUBY_VERSION)
145145
end
146-
require 'jruby/rack/version' # @deprecated to be removed in 1.2
147146
}
148147
end
149148
end

examples/servers/Apache-Tomcat-6-0-14.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ filter_adds_html = true
3535
filter_verifies_resource = false
3636
ignore_environment = true
3737
initial_runtimes =
38-
jms_connection_factory =
39-
jms_jndi_properties =
4038
logger = org.jruby.rack.logging.ServletContextLogger@7a14b43d
4139
logger_class_name = servlet_context
4240
logger_name = jruby.rack

examples/servers/Apache-Tomcat-7-0-2.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ filter_adds_html = true
3535
filter_verifies_resource = false
3636
ignore_environment = true
3737
initial_runtimes =
38-
jms_connection_factory =
39-
jms_jndi_properties =
4038
logger = org.jruby.rack.logging.ServletContextLogger@398a3257
4139
logger_class_name = servlet_context
4240
logger_name = jruby.rack

examples/servers/GlassFish-v3.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ filter_adds_html = true
3737
filter_verifies_resource = false
3838
ignore_environment = true
3939
initial_runtimes =
40-
jms_connection_factory =
41-
jms_jndi_properties =
4240
logger = org.jruby.rack.logging.ServletContextLogger@46ee45a5
4341
logger_class_name = servlet_context
4442
logger_name = jruby.rack

examples/servers/JBoss-Web-2-1-3-GA.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ filter_adds_html = true
3737
filter_verifies_resource = false
3838
ignore_environment = true
3939
initial_runtimes =
40-
jms_connection_factory =
41-
jms_jndi_properties =
4240
logger = org.jruby.rack.logging.ServletContextLogger@1a20433b
4341
logger_class_name = servlet_context
4442
logger_name = jruby.rack

0 commit comments

Comments
 (0)