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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2159648060ce06f6471789289d994ed2ea0969262eeb0a05636366bd7e7054e6
4
- data.tar.gz: a2558622849c1b4ea62f4e31abdc215fcd2ada9d7861cb5d8a68b4055c967efe
3
+ metadata.gz: 3bcf16ccfae94d36851adb3d1ccf9f0cec2784e69a67a4f3dfa5212488213084
4
+ data.tar.gz: 98fde912b9f55b168def3daf36f740a2ea353c6deb7e3a10ad36bcc0b368144b
5
5
  SHA512:
6
- metadata.gz: fc4875679123ec837aec8f0bc5637d482b19b3c3dcf18adb1fa944739f2d02c07c900d662ffb806b8055825efa829648fd261fc0540639be98afd5e56dd5a0c0
7
- data.tar.gz: 8ce86c189fdcb7f37b0f3e98fdff71cfceb534dae65d87077275d8c0bbac48b92748d80847d125d74c17d44455c7e17d7b46e3d4ac4032ab0ef4f817e5edc4ed
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 | 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 → 9.4 | 8+ | 5.0 → 7.2 | 3.0 (Java EE 6) | Servlet 3.1 → 4.0 OK with some containers. |
19
- | [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. |
20
- | 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 | 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 (requires 'bundler/setup' before loading the script)
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
- jruby -S rake clean gem SKIP_SPECS=true
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
- ## Releasing
354
+ ## Testing
354
355
 
355
- * Make sure auth is configured for "central" repository ID in your `.m2/settings.xml`
356
- * Update the version in `src/main/ruby/jruby/rack/version.rb` to the release version
357
- * `./mvnw release:prepare`
358
- * `./mvnw release:perform` (possibly with `-DuseReleaseProfile=false` due to Javadoc doclint failures for now)
359
- * `rake clean gem SKIP_SPECS=true` and push the gem
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
- ## Adding testing for new Rails versions
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
- ```bundle exec appraisal generate```
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**'s IRC channel.
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
@@ -8,6 +8,6 @@
8
8
 
9
9
  module JRuby
10
10
  module Rack
11
- VERSION = '1.2.6'
11
+ VERSION = '1.2.8'
12
12
  end
13
13
  end
Binary file
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.6.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.6
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: 2025-10-15 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.6.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: 3.6.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: []
Binary file