jruby-rack 1.2.7 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 24de58d357962944b8e2dd77cf34c3af33e5e5f93a68ebf4f75c86666795a9a1
4
- data.tar.gz: 3e19c76e147b46be50552f6df538588e023ea1fb2556c964633c16320493e84b
3
+ metadata.gz: 3bcf16ccfae94d36851adb3d1ccf9f0cec2784e69a67a4f3dfa5212488213084
4
+ data.tar.gz: 98fde912b9f55b168def3daf36f740a2ea353c6deb7e3a10ad36bcc0b368144b
5
5
  SHA512:
6
- metadata.gz: 78c1c3a405e8858a390963ab7311a81ce31e3265936949b4900cd5d91b35f6b11f79b214ed46a7ce0951f9ae4f0492bfeef2379e1dedd48077038e943c70c2ba
7
- data.tar.gz: e0462a4181218c7cbec0ffbb9d4dae3d0bf0fc0de80b8e971fa991056c281976afaa33a6ec873583d582b585a7dcfce8a7c79f2095d2cb445cf5598c13dbac8a
6
+ metadata.gz: aa91dc347011e4cb54163655e3a9ef7b5c9924f0d9eb0c76d1204f0cfc01b71b4211422b529b6bbd370f4198298ef42a1e2668d7cb12542ce37aacd7fff87fc3
7
+ data.tar.gz: cc968a1cd0ab939e0d63a8ada0e87baab643087a93727127306b80939f3817505800769395077c6ba1120ea19d5f98b78db0d855959cc1aa330484656046d869
data/CHANGELOG.md CHANGED
@@ -1,4 +1,11 @@
1
- ## 1.2.7 (UNRELEASED)
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
2
9
 
3
10
  - Ensure compatibility with JRuby 10.0 and 10.1 (#419, #423)
4
11
  - Ensure compatibility with Rails 8.0 (#419)
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 | Status | Rack | JRuby | Java | Rails | Target Servlet API | Notes |
17
- |----------------------------------------------------------------|---------------|-----------|------------|------|-----------|--------------------|----------------------------------------------------------------|
18
- | [**1.2**](https://github.com/jruby/jruby-rack/tree/1.2-stable) | Maintained | 2.2 | 9.3 → 10.1 | 8+ | 5.0 → 8.0 | 3.0 (Java EE 6) | ✅ _Unofficial_: Servlet 3.1 → 4.0 also OK with most containers |
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 (Java EE 5) | ✅ _Unofficial_: Servlet 3.0 → 4.0 also OK with most containers |
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) | |
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
 
@@ -294,7 +294,7 @@ Use `rack.version` to specify the Rack gem version to be loaded before rackup :
294
294
  Or the equivalent of doing `bundle exec rackup ...` if you're using Bundler :
295
295
 
296
296
  ```ruby
297
- # rack.version: bundler (requires 'bundler/setup' before loading the script)
297
+ # rack.version: bundler (require 'bundler'; Bundler.setup; before loading the script)
298
298
  ```
299
299
 
300
300
  ## Logging
@@ -343,7 +343,7 @@ the generated jar should be located at `target/jruby-rack-*.jar`
343
343
  Alternatively use Rake, e.g. to build the gem (skipping specs) :
344
344
 
345
345
  ```shell
346
- jruby -S rake clean gem SKIP_SPECS=true
346
+ rake clean gem SKIP_SPECS=true
347
347
  ```
348
348
 
349
349
  You can **not** use JRuby-Rack with Bundler directly from the git (or http) URL
@@ -351,25 +351,47 @@ You can **not** use JRuby-Rack with Bundler directly from the git (or http) URL
351
351
  is compiled and generated on-demand during the build (it would require us to
352
352
  package and push the .jar every time a commit changes a source file).
353
353
 
354
- ## Releasing
354
+ ## Testing
355
355
 
356
- 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.
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.
357
358
 
358
- * Make sure auth is configured for "central" repository ID in your `.m2/settings.xml`
359
- * Update the versions in `pom.xml` and `src/main/ruby/jruby/rack/version.rb` to the release version
360
- * Commit the version update locally
361
- * Run `./mvnw deploy -Prelease` to build, sign, and push all artifacts to Maven Central staging
362
- * Confirm the release completes publishing at `https://central.sonatype.org`
363
- * `rake clean gem SKIP_SPECS=true` and push the gem
364
- * Tag the release version in git
365
- * 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`)
366
- * Push all commits and tags to GitHub
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
+ ```
367
389
 
368
- ## Adding testing for new Rails versions
390
+ ### Adding testing for new Rails versions
369
391
 
370
392
  * Add the new version to `.github/workflows/maven.yml` under the `matrix` section
371
393
  * Add a new configuration to the `Appraisals` file, then
372
- ```bundle exec appraisal generate```
394
+ ```bundle exec appraisal generate```
373
395
  * Generate a new stub Rails application for the new version
374
396
  ```shell
375
397
  VERSION=rails72
@@ -377,12 +399,27 @@ Releasing must be done by users authorized to push to the `org.jruby` group ID o
377
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
378
400
  ```
379
401
  * Manual changes to make to support testing
380
- * 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
381
418
 
382
419
  ## Support
383
420
 
384
421
  Please use [github][3] to file bugs, patches and/or pull requests.
385
- More information at the [wiki][4] or ask us at **#jruby**'s IRC channel.
422
+ More information at the [wiki][4] or ask us on our Matrix room at **#jruby:matrix.org**.
386
423
 
387
424
  [1]: https://github.com/jruby/warbler
388
425
  [2]: https://central.sonatype.com/artifact/org.jruby.rack/jruby-rack
@@ -8,6 +8,6 @@
8
8
 
9
9
  module JRuby
10
10
  module Rack
11
- VERSION = '1.2.7'
11
+ VERSION = '1.2.8'
12
12
  end
13
13
  end
data/lib/jruby-rack.rb CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  module JRubyJars
3
3
  def self.jruby_rack_jar_path
4
- File.expand_path("../jruby-rack-1.2.7.jar", __FILE__)
4
+ File.expand_path("../jruby-rack-1.2.8.jar", __FILE__)
5
5
  end
6
6
  require jruby_rack_jar_path if defined?(JRUBY_VERSION)
7
7
  end
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.7
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: 2026-05-19 00:00:00.000000000 Z
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.7.jar
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: 4.0.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: []