jruby-rack 1.2.6 → 1.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/README.md +64 -20
- data/lib/jruby/rack/version.rb +1 -1
- data/lib/jruby-rack-1.2.8.jar +0 -0
- data/lib/jruby-rack.rb +1 -1
- metadata +4 -4
- data/lib/jruby-rack-1.2.6.jar +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3bcf16ccfae94d36851adb3d1ccf9f0cec2784e69a67a4f3dfa5212488213084
|
|
4
|
+
data.tar.gz: 98fde912b9f55b168def3daf36f740a2ea353c6deb7e3a10ad36bcc0b368144b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aa91dc347011e4cb54163655e3a9ef7b5c9924f0d9eb0c76d1204f0cfc01b71b4211422b529b6bbd370f4198298ef42a1e2668d7cb12542ce37aacd7fff87fc3
|
|
7
|
+
data.tar.gz: cc968a1cd0ab939e0d63a8ada0e87baab643087a93727127306b80939f3817505800769395077c6ba1120ea19d5f98b78db0d855959cc1aa330484656046d869
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## 1.2.8
|
|
2
|
+
|
|
3
|
+
- Improve isolation and bundler version/CLI boot issues with more opinionated boot process (#461)
|
|
4
|
+
- Fix possible infinite loop in Response#isClientAbortException (#449, #450)
|
|
5
|
+
- Fix startup logging of captured errors when config properties cannot be dumped
|
|
6
|
+
- Update (bundled) rack to 2.2.24
|
|
7
|
+
|
|
8
|
+
## 1.2.7
|
|
9
|
+
|
|
10
|
+
- Ensure compatibility with JRuby 10.0 and 10.1 (#419, #423)
|
|
11
|
+
- Ensure compatibility with Rails 8.0 (#419)
|
|
12
|
+
- Fix ability to include and forward to JSPs under Rails (#370)
|
|
13
|
+
- Update (bundled) rack to 2.2.23 (#417)
|
|
14
|
+
|
|
1
15
|
## 1.2.6
|
|
2
16
|
|
|
3
17
|
- Add missing block-only signature for debug logging
|
data/README.md
CHANGED
|
@@ -13,11 +13,11 @@ For more information on Rack, visit http://rack.github.io/.
|
|
|
13
13
|
|
|
14
14
|
## Compatibility
|
|
15
15
|
|
|
16
|
-
| JRuby-Rack Series
|
|
17
|
-
|
|
18
|
-
| [1.2](https://github.com/jruby/jruby-rack/tree/1.2-stable) |
|
|
19
|
-
| [1.1](https://github.com/jruby/jruby-rack/tree/1.1-stable) | EOL
|
|
20
|
-
| 1.0
|
|
16
|
+
| JRuby-Rack Series | Status | Rack | JRuby | Java | Rails | Servlet API (min → mostly supported) | Notes |
|
|
17
|
+
|----------------------------------------------------------------|---------------|-----------|------------|------|-----------|--------------------------------------|-------|
|
|
18
|
+
| [**1.2**](https://github.com/jruby/jruby-rack/tree/1.2-stable) | EOL @ 2026-09 | 2.2 | 9.3 → 10.1 | 8+ | 5.0 → 8.0 | 3.0 → 4.0 (Java EE 6 → 7) | |
|
|
19
|
+
| [**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 → 4.0 (Java EE 5 → 7) | |
|
|
20
|
+
| [**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) | |
|
|
21
21
|
|
|
22
22
|
## Getting Started
|
|
23
23
|
|
|
@@ -125,7 +125,7 @@ can embed it directly in the `web.xml` as follows (using Sinatra as an example):
|
|
|
125
125
|
</context-param>
|
|
126
126
|
```
|
|
127
127
|
|
|
128
|
-
Be sure to escape angle-brackets for XML
|
|
128
|
+
Be sure to escape angle-brackets for XML!
|
|
129
129
|
|
|
130
130
|
|
|
131
131
|
## Servlet Filter
|
|
@@ -209,8 +209,6 @@ as context init parameters in web.xml or as VM-wide system properties.
|
|
|
209
209
|
sub-path of the main servlet context root.
|
|
210
210
|
- `gem.path`: Relative path to the bundled gem repository. Defaults to
|
|
211
211
|
`/WEB-INF/gems`.
|
|
212
|
-
- `jruby.compat.version`: Set to "1.8" or "1.9" to make JRuby run a specific
|
|
213
|
-
version of Ruby (same as the --1.8 / --1.9 command line flags).
|
|
214
212
|
- `jruby.min.runtimes`: For non-threadsafe Rails applications using a runtime
|
|
215
213
|
pool, specify an integer minimum number of runtimes to hold in the pool.
|
|
216
214
|
- `jruby.max.runtimes`: For non-threadsafe Rails applications, an integer
|
|
@@ -296,7 +294,7 @@ Use `rack.version` to specify the Rack gem version to be loaded before rackup :
|
|
|
296
294
|
Or the equivalent of doing `bundle exec rackup ...` if you're using Bundler :
|
|
297
295
|
|
|
298
296
|
```ruby
|
|
299
|
-
# rack.version: bundler (
|
|
297
|
+
# rack.version: bundler (require 'bundler'; Bundler.setup; before loading the script)
|
|
300
298
|
```
|
|
301
299
|
|
|
302
300
|
## Logging
|
|
@@ -319,6 +317,9 @@ logging system, configure `jruby.rack.logging` as follows:
|
|
|
319
317
|
For those loggers that require a specific named logger, set it with the
|
|
320
318
|
`jruby.rack.logging.name` option, by default "jruby.rack" name will be used.
|
|
321
319
|
|
|
320
|
+
## Examples
|
|
321
|
+
|
|
322
|
+
Some example demo applications are available at [./examples](./examples).
|
|
322
323
|
|
|
323
324
|
## Building
|
|
324
325
|
|
|
@@ -342,7 +343,7 @@ the generated jar should be located at `target/jruby-rack-*.jar`
|
|
|
342
343
|
Alternatively use Rake, e.g. to build the gem (skipping specs) :
|
|
343
344
|
|
|
344
345
|
```shell
|
|
345
|
-
|
|
346
|
+
rake clean gem SKIP_SPECS=true
|
|
346
347
|
```
|
|
347
348
|
|
|
348
349
|
You can **not** use JRuby-Rack with Bundler directly from the git (or http) URL
|
|
@@ -350,19 +351,47 @@ You can **not** use JRuby-Rack with Bundler directly from the git (or http) URL
|
|
|
350
351
|
is compiled and generated on-demand during the build (it would require us to
|
|
351
352
|
package and push the .jar every time a commit changes a source file).
|
|
352
353
|
|
|
353
|
-
##
|
|
354
|
+
## Testing
|
|
354
355
|
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
356
|
+
JRuby-Rack is always compiled against the version defined by `jruby.compat.version` in `pom.xml`. By default, tests
|
|
357
|
+
will be run with this default version.
|
|
358
|
+
|
|
359
|
+
Run tests against a specific JRuby version:
|
|
360
|
+
|
|
361
|
+
```shell
|
|
362
|
+
./mvnw test -Djruby.test.version=10.1.1.0
|
|
363
|
+
```
|
|
364
|
+
|
|
365
|
+
Or via JRuby/Rake with the local JRuby version implied by your path:
|
|
366
|
+
```shell
|
|
367
|
+
bundle install
|
|
368
|
+
rake spec
|
|
369
|
+
```
|
|
370
|
+
|
|
371
|
+
Filter for specific specs:
|
|
372
|
+
|
|
373
|
+
```shell
|
|
374
|
+
SPEC=src/spec/ruby/rack/application_spec.rb ./mvnw test
|
|
375
|
+
# or
|
|
376
|
+
SPEC=src/spec/ruby/rack/application_spec.rb rake spec
|
|
377
|
+
```
|
|
378
|
+
|
|
379
|
+
### Run appraisals alongside different real Rails/Rack versions
|
|
380
|
+
|
|
381
|
+
JRuby-Rack defaults to run specs with a Rails stub. You can run the specs against a real Rails version using the Gemfiles
|
|
382
|
+
managed by the `Appraisals` gem.
|
|
383
|
+
|
|
384
|
+
```shell
|
|
385
|
+
export BUNDLE_GEMFILE=gemfiles/rails72_rack22.gemfile
|
|
386
|
+
bundle install
|
|
387
|
+
bundle exec rake spec
|
|
388
|
+
```
|
|
360
389
|
|
|
361
|
-
|
|
390
|
+
### Adding testing for new Rails versions
|
|
362
391
|
|
|
363
392
|
* Add the new version to `.github/workflows/maven.yml` under the `matrix` section
|
|
364
393
|
* Add a new configuration to the `Appraisals` file, then
|
|
365
|
-
|
|
394
|
+
```bundle exec appraisal generate```
|
|
366
395
|
* Generate a new stub Rails application for the new version
|
|
367
396
|
```shell
|
|
368
397
|
VERSION=rails72
|
|
@@ -370,12 +399,27 @@ package and push the .jar every time a commit changes a source file).
|
|
|
370
399
|
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
|
|
371
400
|
```
|
|
372
401
|
* Manual changes to make to support testing
|
|
373
|
-
* In `config/production.rb` comment out the default `config.logger` value so jruby-rack applies its own `RailsLogger`.
|
|
402
|
+
* In `config/production.rb` comment out the default `config.logger` value so jruby-rack applies its own `RailsLogger`.
|
|
403
|
+
|
|
404
|
+
## Releasing
|
|
405
|
+
|
|
406
|
+
Releasing must be done by users authorized to push to the `org.jruby` group ID on https://central.sonatype.org and to push the `jruby-rack` gem to https://rubygems.org.
|
|
407
|
+
|
|
408
|
+
* Make sure auth is configured for "central" repository ID in your `.m2/settings.xml`
|
|
409
|
+
* Update the versions in `pom.xml` and `src/main/ruby/jruby/rack/version.rb` to the release version
|
|
410
|
+
* Commit the version update locally
|
|
411
|
+
* Run `./mvnw deploy -Prelease` to build, sign, and push all artifacts to Maven Central staging
|
|
412
|
+
* NOTE: the release will automatically publish once validated by Maven Central
|
|
413
|
+
* Confirm the release completes publishing at `https://central.sonatype.org`
|
|
414
|
+
* `rake clean gem SKIP_SPECS=true` and push the gem
|
|
415
|
+
* Tag the release version in git
|
|
416
|
+
* Update the versions again to the next dev version (`-SNAPSHOT` for the Maven artifact in `pom.xml` and `.SNAPSHOT` for the gem in `version.rb`)
|
|
417
|
+
* Push all commits and tags to GitHub
|
|
374
418
|
|
|
375
419
|
## Support
|
|
376
420
|
|
|
377
421
|
Please use [github][3] to file bugs, patches and/or pull requests.
|
|
378
|
-
More information at the [wiki][4] or ask us at **#jruby
|
|
422
|
+
More information at the [wiki][4] or ask us on our Matrix room at **#jruby:matrix.org**.
|
|
379
423
|
|
|
380
424
|
[1]: https://github.com/jruby/warbler
|
|
381
425
|
[2]: https://central.sonatype.com/artifact/org.jruby.rack/jruby-rack
|
data/lib/jruby/rack/version.rb
CHANGED
|
Binary file
|
data/lib/jruby-rack.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jruby-rack
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nick Sieger
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
- JRuby contributors
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2026-08-31 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: JRuby-Rack is a combined Java and Ruby library that adapts the Java Servlet
|
|
15
15
|
API to Rack. For JRuby only.
|
|
@@ -22,7 +22,7 @@ files:
|
|
|
22
22
|
- CHANGELOG.md
|
|
23
23
|
- LICENSE.txt
|
|
24
24
|
- README.md
|
|
25
|
-
- lib/jruby-rack-1.2.
|
|
25
|
+
- lib/jruby-rack-1.2.8.jar
|
|
26
26
|
- lib/jruby-rack.rb
|
|
27
27
|
- lib/jruby/rack/version.rb
|
|
28
28
|
homepage: http://jruby.org
|
|
@@ -43,7 +43,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
43
43
|
- !ruby/object:Gem::Version
|
|
44
44
|
version: '0'
|
|
45
45
|
requirements: []
|
|
46
|
-
rubygems_version: 3.
|
|
46
|
+
rubygems_version: 3.7.2
|
|
47
47
|
specification_version: 4
|
|
48
48
|
summary: Rack adapter for JRuby and Servlet Containers
|
|
49
49
|
test_files: []
|
data/lib/jruby-rack-1.2.6.jar
DELETED
|
Binary file
|