jruby-rack 1.2.4 → 1.2.6
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/{History.md → CHANGELOG.md} +14 -0
- data/README.md +166 -138
- data/lib/jruby/rack/version.rb +1 -1
- data/lib/jruby-rack-1.2.6.jar +0 -0
- data/lib/jruby-rack.rb +1 -1
- metadata +7 -5
- data/lib/jruby-rack-1.2.4.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: 2159648060ce06f6471789289d994ed2ea0969262eeb0a05636366bd7e7054e6
|
|
4
|
+
data.tar.gz: a2558622849c1b4ea62f4e31abdc215fcd2ada9d7861cb5d8a68b4055c967efe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fc4875679123ec837aec8f0bc5637d482b19b3c3dcf18adb1fa944739f2d02c07c900d662ffb806b8055825efa829648fd261fc0540639be98afd5e56dd5a0c0
|
|
7
|
+
data.tar.gz: 8ce86c189fdcb7f37b0f3e98fdff71cfceb534dae65d87077275d8c0bbac48b92748d80847d125d74c17d44455c7e17d7b46e3d4ac4032ab0ef4f817e5edc4ed
|
data/{History.md → CHANGELOG.md}
RENAMED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## 1.2.6
|
|
2
|
+
|
|
3
|
+
- Add missing block-only signature for debug logging
|
|
4
|
+
- update (bundled) rack to 2.2.20
|
|
5
|
+
- Ensure rack boot process leaves ENV['GEM_PATH'] and Gem.paths in a consistent state
|
|
6
|
+
- Remove undocumented and unsafe jruby.rack.env.gem_path = false option (unusable on Bundler 1.6+)
|
|
7
|
+
- Fix unintended Rubygems initialization too early in boot process with JRuby 9.4+
|
|
8
|
+
|
|
9
|
+
## 1.2.5
|
|
10
|
+
|
|
11
|
+
- Fix use of jruby-rack under Java 8 (#324)
|
|
12
|
+
- Fix deprecated usages of JRuby runtime
|
|
13
|
+
- Fix deprecated usages of Rack API
|
|
14
|
+
|
|
1
15
|
## 1.2.4
|
|
2
16
|
|
|
3
17
|
- update (bundled) rack to 2.2.17
|
data/README.md
CHANGED
|
@@ -1,28 +1,23 @@
|
|
|
1
1
|
# JRuby-Rack
|
|
2
2
|
|
|
3
|
+
[](https://rubygems.org/gems/jruby-rack)
|
|
4
|
+
[](https://central.sonatype.com/artifact/org.jruby.rack/jruby-rack)
|
|
5
|
+
[](https://github.com/jruby/jruby-rack/actions/workflows/maven.yml?query=branch%3Amaster) (master)
|
|
6
|
+
[](https://github.com/jruby/jruby-rack/actions/workflows/maven.yml?query=branch%3A1.2-stable) (1.2.x)
|
|
7
|
+
|
|
3
8
|
JRuby-Rack is a lightweight adapter for the Java Servlet environment that allows
|
|
4
9
|
any (Ruby) Rack-based application to run unmodified in a Java Servlet container.
|
|
5
10
|
JRuby-Rack supports Rails as well as any Rack-compatible Ruby web framework.
|
|
6
11
|
|
|
7
12
|
For more information on Rack, visit http://rack.github.io/.
|
|
8
13
|
|
|
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.**
|
|
12
|
-
|
|
13
|
-
[][8]
|
|
14
|
-
[][9]
|
|
15
|
-
|
|
16
14
|
## Compatibility
|
|
17
15
|
|
|
18
|
-
JRuby-Rack
|
|
19
|
-
|
|
20
|
-
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
- aims to be compatible with JRuby >= 1.6.4 (used successfully through JRuby 9.4.x)
|
|
24
|
-
- supports any container compatible with Java Servlet 2.5 API (JEE 5)
|
|
25
|
-
|
|
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) | |
|
|
26
21
|
|
|
27
22
|
## Getting Started
|
|
28
23
|
|
|
@@ -34,96 +29,101 @@ in your WAR file when it gets built.
|
|
|
34
29
|
If you're assembling your own WAR using other means, you can install the
|
|
35
30
|
**jruby-rack** gem. It provides a method to locate the jar file:
|
|
36
31
|
|
|
37
|
-
|
|
38
|
-
|
|
32
|
+
```ruby
|
|
33
|
+
require 'jruby-rack'
|
|
34
|
+
FileUtils.cp JRubyJars.jruby_rack_jar_path, '.'
|
|
35
|
+
```
|
|
39
36
|
|
|
40
37
|
Otherwise you'll need to download the latest [jar release][2], drop it into the
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
Alternatively you can use a server built upon JRuby-Rack such as [Trinidad][3]
|
|
45
|
-
with sensible defaults, without the need to configure a deployment descriptor.
|
|
38
|
+
`WEB-INF/lib` directory and configure the `RackFilter` in your application's
|
|
39
|
+
`web.xml` (see following examples).
|
|
46
40
|
|
|
47
41
|
### Rails
|
|
48
42
|
|
|
49
|
-
Here's sample
|
|
43
|
+
Here's sample `web.xml` configuration for Rails. Note the environment and
|
|
50
44
|
min/max runtime parameters. For **multi-threaded** (a.k.a. `threadsafe!`)
|
|
51
45
|
Rails with a single runtime, set min/max both to 1. Otherwise, define the size
|
|
52
46
|
of the runtime pool as you wish.
|
|
53
47
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
48
|
+
```xml
|
|
49
|
+
<context-param>
|
|
50
|
+
<param-name>rails.env</param-name>
|
|
51
|
+
<param-value>production</param-value>
|
|
52
|
+
</context-param>
|
|
53
|
+
<context-param>
|
|
54
|
+
<param-name>jruby.min.runtimes</param-name>
|
|
55
|
+
<param-value>1</param-value>
|
|
56
|
+
</context-param>
|
|
57
|
+
<context-param>
|
|
58
|
+
<param-name>jruby.max.runtimes</param-name>
|
|
59
|
+
<param-value>1</param-value>
|
|
60
|
+
</context-param>
|
|
61
|
+
|
|
62
|
+
<filter>
|
|
63
|
+
<filter-name>RackFilter</filter-name>
|
|
64
|
+
<filter-class>org.jruby.rack.RackFilter</filter-class>
|
|
65
|
+
<!-- optional filter configuration init-params : -->
|
|
66
|
+
<init-param>
|
|
67
|
+
<param-name>resetUnhandledResponse</param-name>
|
|
68
|
+
<param-value>true</param-value> <!-- true (default), false or buffer -->
|
|
69
|
+
</init-param>
|
|
70
|
+
<init-param>
|
|
71
|
+
<param-name>addsHtmlToPathInfo</param-name>
|
|
72
|
+
<param-value>true</param-value> <!-- true (default), false -->
|
|
73
|
+
</init-param>
|
|
74
|
+
<init-param>
|
|
75
|
+
<param-name>verifiesHtmlResource</param-name>
|
|
76
|
+
<param-value>false</param-value> <!-- true, false (default) -->
|
|
77
|
+
</init-param>
|
|
78
|
+
</filter>
|
|
79
|
+
<filter-mapping>
|
|
80
|
+
<filter-name>RackFilter</filter-name>
|
|
81
|
+
<url-pattern>/*</url-pattern>
|
|
82
|
+
</filter-mapping>
|
|
83
|
+
|
|
84
|
+
<listener>
|
|
85
|
+
<listener-class>org.jruby.rack.rails.RailsServletContextListener</listener-class>
|
|
86
|
+
</listener>
|
|
87
|
+
```
|
|
92
88
|
|
|
93
89
|
### (Other) Rack Applications
|
|
94
90
|
|
|
95
91
|
The main difference when using a non-Rails Rack application is that JRuby-Rack
|
|
96
|
-
looks for a "rackup" file named
|
|
97
|
-
`WEB-INF/*/config.ru`. Here's a sample
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
92
|
+
looks for a "rackup" file named `config.ru` in `WEB-INF/config.ru` or
|
|
93
|
+
`WEB-INF/*/config.ru`. Here's a sample `web.xml` configuration :
|
|
94
|
+
|
|
95
|
+
```xml
|
|
96
|
+
<filter>
|
|
97
|
+
<filter-name>RackFilter</filter-name>
|
|
98
|
+
<filter-class>org.jruby.rack.RackFilter</filter-class>
|
|
99
|
+
<!-- optional filter configuration init-params (@see above) -->
|
|
100
|
+
</filter>
|
|
101
|
+
<filter-mapping>
|
|
102
|
+
<filter-name>RackFilter</filter-name>
|
|
103
|
+
<url-pattern>/*</url-pattern>
|
|
104
|
+
</filter-mapping>
|
|
105
|
+
|
|
106
|
+
<listener>
|
|
107
|
+
<listener-class>org.jruby.rack.RackServletContextListener</listener-class>
|
|
108
|
+
</listener>
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
If you don't have a `config.ru` or don't want to include it in your web app, you
|
|
112
|
+
can embed it directly in the `web.xml` as follows (using Sinatra as an example):
|
|
113
|
+
|
|
114
|
+
```xml
|
|
115
|
+
<context-param>
|
|
116
|
+
<param-name>rackup</param-name>
|
|
117
|
+
<param-value>
|
|
118
|
+
require 'rubygems'
|
|
119
|
+
gem 'sinatra', '~> 1.3'
|
|
120
|
+
require './lib/app'
|
|
121
|
+
set :run, false
|
|
122
|
+
set :environment, :production
|
|
123
|
+
run Sinatra::Application
|
|
124
|
+
</param-value>
|
|
125
|
+
</context-param>
|
|
126
|
+
```
|
|
127
127
|
|
|
128
128
|
Be sure to escape angle-brackets for XML !
|
|
129
129
|
|
|
@@ -144,7 +144,11 @@ using is `org.jruby.rack.RackFilter`, the filter supports the following
|
|
|
144
144
|
gets reset (accepts values "true", "false" and "buffer" to reset the buffer
|
|
145
145
|
only), by default "true"
|
|
146
146
|
- **addsHtmlToPathInfo** controls whether the .html suffix is added to the URI
|
|
147
|
-
when checking if the request is for a static page
|
|
147
|
+
when checking if the request is for a static page. The default behavior for
|
|
148
|
+
Rails and many other Ruby applications is to add an `.html` extension to the
|
|
149
|
+
resource and attempt to handle it before serving a dynamic request on the
|
|
150
|
+
original URI. However, this behavior may confuse other servlets in your
|
|
151
|
+
application that have a wildcard mapping. Defaults to true.
|
|
148
152
|
- **verifiesHtmlResource** used with the previous parameter to make sure the
|
|
149
153
|
requested static resource exists before adding the .html request URI suffix
|
|
150
154
|
|
|
@@ -154,9 +158,9 @@ a filter, the servlet class name is `org.jruby.rack.RackServlet`.
|
|
|
154
158
|
## Servlet Environment Integration
|
|
155
159
|
|
|
156
160
|
- servlet context is accessible to any application through the Rack environment
|
|
157
|
-
variable
|
|
161
|
+
variable `java.servlet_context` (as well as the `$servlet_context` global).
|
|
158
162
|
- the (native) servlet request and response objects could be obtained via the
|
|
159
|
-
|
|
163
|
+
`java.servlet_request` and `java.servlet_response` keys
|
|
160
164
|
- all servlet request attributes are passed through to the Rack environment (and
|
|
161
165
|
thus might override request headers or Rack environment variables)
|
|
162
166
|
- servlet sessions can be used as a (java) session store for Rails, session
|
|
@@ -175,16 +179,15 @@ Several aspects of Rails are automatically set up for you.
|
|
|
175
179
|
## JRuby Runtime Management
|
|
176
180
|
|
|
177
181
|
JRuby runtime management and pooling is done automatically by the framework.
|
|
178
|
-
In the case of Rails, runtimes are pooled by default
|
|
179
|
-
likely change with the adoption of Rails 4.0). For other Rack applications a
|
|
182
|
+
In the case of Rails, runtimes are pooled by default. For other Rack applications a
|
|
180
183
|
single shared runtime is created and shared for every request by default.
|
|
181
|
-
|
|
184
|
+
If `jruby.min.runtimes` and `jruby.max.runtimes` values are
|
|
182
185
|
specified pooling is supported for plain Rack applications as well.
|
|
183
186
|
|
|
184
187
|
We do recommend to boot your runtimes up-front to avoid the cost of initializing
|
|
185
188
|
one while a request kicks in and find the pool empty, this can be easily avoided
|
|
186
|
-
by setting
|
|
187
|
-
want to consider tuning the
|
|
189
|
+
by setting `jruby.min.runtimes` equal to `jruby.max.runtimes`. You might also
|
|
190
|
+
want to consider tuning the `jruby.runtime.acquire.timeout` parameter to not
|
|
188
191
|
wait too long when all (max) runtimes from the pool are busy.
|
|
189
192
|
|
|
190
193
|
## JRuby-Rack Configuration
|
|
@@ -194,18 +197,18 @@ as context init parameters in web.xml or as VM-wide system properties.
|
|
|
194
197
|
|
|
195
198
|
- `rackup`: Rackup script for configuring how the Rack application is mounted.
|
|
196
199
|
Required for Rack-based applications other than Rails. Can be omitted if a
|
|
197
|
-
|
|
200
|
+
`config.ru` is included in the application root.
|
|
198
201
|
- `public.root`: Relative path to the location of your application's static
|
|
199
|
-
assets. Defaults to
|
|
202
|
+
assets. Defaults to `*/*`.
|
|
200
203
|
- `rails.root`: Root path to the location of the Rails application files.
|
|
201
|
-
Defaults to
|
|
204
|
+
Defaults to `*/WEB-INF*`.
|
|
202
205
|
- `rails.env`: Specify the Rails environment to run. Defaults to 'production'.
|
|
203
206
|
- `rails.relative_url_append`: Specify a path to be appended to the
|
|
204
207
|
`ActionController::Base.relative_url_root` after the context path. Useful
|
|
205
208
|
for running a rails app from the same war as an existing app, under a
|
|
206
209
|
sub-path of the main servlet context root.
|
|
207
210
|
- `gem.path`: Relative path to the bundled gem repository. Defaults to
|
|
208
|
-
|
|
211
|
+
`/WEB-INF/gems`.
|
|
209
212
|
- `jruby.compat.version`: Set to "1.8" or "1.9" to make JRuby run a specific
|
|
210
213
|
version of Ruby (same as the --1.8 / --1.9 command line flags).
|
|
211
214
|
- `jruby.min.runtimes`: For non-threadsafe Rails applications using a runtime
|
|
@@ -230,6 +233,12 @@ as context init parameters in web.xml or as VM-wide system properties.
|
|
|
230
233
|
- `jruby.runtime.env.rubyopt`: This option is used for compatibility with the
|
|
231
234
|
(deprecated) `jruby.rack.ignore.env` option since it cleared out the ENV after
|
|
232
235
|
RUBYOPT has been processed, by setting it to true ENV['RUBYOPT'] will be kept.
|
|
236
|
+
- `jruby.rack.env.gem_path`: If set to `true` (the default) jruby-rack will
|
|
237
|
+
ensure ENV['GEM_PATH'] is altered to include the `gem.path` above. If you set it to a
|
|
238
|
+
value, this value will be used as GEM_PATH, overriding the environment and
|
|
239
|
+
ignoring `gem.path` etc. By setting this option to en empty string the ENV['GEM_PATH'] will
|
|
240
|
+
not be modified by jruby-rack at all and will retain its original values implied by
|
|
241
|
+
the process environment and `jruby.runtime.env` setting.
|
|
233
242
|
- `jruby.rack.logging`: Specify the logging device to use. Defaults to
|
|
234
243
|
`servlet_context`. See below.
|
|
235
244
|
- `jruby.rack.request.size.initial.bytes`: Initial size for request body memory
|
|
@@ -267,25 +276,28 @@ as context init parameters in web.xml or as VM-wide system properties.
|
|
|
267
276
|
|
|
268
277
|
There are often cases where you need to perform custom initialization of the
|
|
269
278
|
Ruby environment before booting the application. You can create a file called
|
|
270
|
-
|
|
279
|
+
`META-INF/init.rb` or `WEB-INF/init.rb` inside the war file for this purpose.
|
|
271
280
|
These files, if found, will be evaluated before booting the Rack environment,
|
|
272
281
|
allowing you to set environment variables, load scripts, etc.
|
|
273
282
|
|
|
274
283
|
For plain Rack applications, JRuby-Rack also supports a magic comment to solve
|
|
275
284
|
the "rackup" chicken-egg problem (you need Rack's builder loaded before loading
|
|
276
|
-
the
|
|
285
|
+
the `config.ru`, yet you may want to setup the gem version from within the rackup
|
|
277
286
|
file). As we ship with the Rack gem bundled, otherwise when executing the
|
|
278
|
-
provided
|
|
287
|
+
provided `config.ru` the bundled (latest) version of Rack will get loaded.
|
|
279
288
|
|
|
280
|
-
Use
|
|
289
|
+
Use `rack.version` to specify the Rack gem version to be loaded before rackup :
|
|
281
290
|
|
|
282
|
-
|
|
283
|
-
|
|
291
|
+
```ruby
|
|
292
|
+
# encoding: UTF-8
|
|
293
|
+
# rack.version: ~>2.2.10 (before code is loaded gem '~>2.2.10' will be called)
|
|
294
|
+
```
|
|
284
295
|
|
|
285
296
|
Or the equivalent of doing `bundle exec rackup ...` if you're using Bundler :
|
|
286
297
|
|
|
287
|
-
|
|
288
|
-
|
|
298
|
+
```ruby
|
|
299
|
+
# rack.version: bundler (requires 'bundler/setup' before loading the script)
|
|
300
|
+
```
|
|
289
301
|
|
|
290
302
|
## Logging
|
|
291
303
|
|
|
@@ -296,12 +308,12 @@ logging system, configure `jruby.rack.logging` as follows:
|
|
|
296
308
|
- `servlet_context` (default): Sends log messages to the servlet context.
|
|
297
309
|
- `stdout`: Sends log messages to the standard output stream `System.out`.
|
|
298
310
|
- `slf4j`: Sends log messages to SLF4J. SLF4J configuration is left up to you,
|
|
299
|
-
please refer to
|
|
300
|
-
- `log4j`: Sends log messages
|
|
301
|
-
|
|
311
|
+
please refer to https://www.slf4j.org/manual.html .
|
|
312
|
+
- `log4j`: Sends log messages through Log4j. Only Log4j 2.x is supported, for
|
|
313
|
+
- configuration please consult https://logging.apache.org/log4j/2.x/index.html .
|
|
302
314
|
- `commons_logging`: Routes logs to commons-logging. You still need to configure
|
|
303
|
-
an underlying logging implementation with JCL.
|
|
304
|
-
library wrapper directly
|
|
315
|
+
an underlying logging implementation with JCL.
|
|
316
|
+
We recommend rather using the logger library wrapper directly when possible.
|
|
305
317
|
- `jul`: Directs log messages via Java's core logging facilities (util.logging).
|
|
306
318
|
|
|
307
319
|
For those loggers that require a specific named logger, set it with the
|
|
@@ -312,21 +324,26 @@ For those loggers that require a specific named logger, set it with the
|
|
|
312
324
|
|
|
313
325
|
Checkout the JRuby-Rack code using [git](http://git-scm.com/) :
|
|
314
326
|
|
|
315
|
-
|
|
316
|
-
|
|
327
|
+
```shell
|
|
328
|
+
git clone git@github.com:jruby/jruby-rack.git
|
|
329
|
+
cd jruby-rack
|
|
330
|
+
```
|
|
317
331
|
|
|
318
|
-
Ensure you have
|
|
319
|
-
It is required for downloading jar artifacts that JRuby-Rack depends on.
|
|
332
|
+
Ensure you have a compatible JVM installed. It is required for building and compiling.
|
|
320
333
|
|
|
321
334
|
Build the .jar using Maven :
|
|
322
335
|
|
|
323
|
-
|
|
336
|
+
```shell
|
|
337
|
+
./mvnw install
|
|
338
|
+
```
|
|
324
339
|
|
|
325
|
-
the generated jar should be located at
|
|
340
|
+
the generated jar should be located at `target/jruby-rack-*.jar`
|
|
326
341
|
|
|
327
342
|
Alternatively use Rake, e.g. to build the gem (skipping specs) :
|
|
328
343
|
|
|
329
|
-
|
|
344
|
+
```shell
|
|
345
|
+
jruby -S rake clean gem SKIP_SPECS=true
|
|
346
|
+
```
|
|
330
347
|
|
|
331
348
|
You can **not** use JRuby-Rack with Bundler directly from the git (or http) URL
|
|
332
349
|
(`gem 'jruby-rack', :github => 'jruby/jruby-rack'`) since the included .jar file
|
|
@@ -335,21 +352,32 @@ package and push the .jar every time a commit changes a source file).
|
|
|
335
352
|
|
|
336
353
|
## Releasing
|
|
337
354
|
|
|
338
|
-
* Make sure auth is configured for "central" repository ID in your
|
|
339
|
-
* Update the version in src/main/ruby/jruby/rack/version.rb to the release version
|
|
340
|
-
*
|
|
341
|
-
*
|
|
342
|
-
* rake clean gem SKIP_SPECS=true and push the gem
|
|
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
|
|
360
|
+
|
|
361
|
+
## Adding testing for new Rails versions
|
|
362
|
+
|
|
363
|
+
* Add the new version to `.github/workflows/maven.yml` under the `matrix` section
|
|
364
|
+
* Add a new configuration to the `Appraisals` file, then
|
|
365
|
+
```bundle exec appraisal generate```
|
|
366
|
+
* Generate a new stub Rails application for the new version
|
|
367
|
+
```shell
|
|
368
|
+
VERSION=rails72
|
|
369
|
+
cd src/spec/stub
|
|
370
|
+
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
|
+
```
|
|
372
|
+
* 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`.
|
|
343
374
|
|
|
344
375
|
## Support
|
|
345
376
|
|
|
346
|
-
Please use [github][
|
|
347
|
-
More information at the [wiki][
|
|
377
|
+
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.
|
|
348
379
|
|
|
349
|
-
[1]: https://github.com/jruby/warbler
|
|
350
|
-
[2]: https://
|
|
351
|
-
[3]: https://github.com/
|
|
352
|
-
[4]: https://github.com/jruby/jruby-rack/
|
|
353
|
-
[5]: https://wiki.github.com/jruby/jruby-rack
|
|
354
|
-
[8]: http://badge.fury.io/rb/jruby-rack
|
|
355
|
-
[9]: https://github.com/jruby/jruby-rack/actions/workflows/maven.yml
|
|
380
|
+
[1]: https://github.com/jruby/warbler
|
|
381
|
+
[2]: https://central.sonatype.com/artifact/org.jruby.rack/jruby-rack
|
|
382
|
+
[3]: https://github.com/jruby/jruby-rack/issues
|
|
383
|
+
[4]: https://github.com/jruby/jruby-rack/wiki
|
data/lib/jruby/rack/version.rb
CHANGED
|
Binary file
|
data/lib/jruby-rack.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
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.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nick Sieger
|
|
8
|
+
- Karol Bucek
|
|
9
|
+
- JRuby contributors
|
|
8
10
|
bindir: bin
|
|
9
11
|
cert_chain: []
|
|
10
|
-
date: 2025-
|
|
12
|
+
date: 2025-10-15 00:00:00.000000000 Z
|
|
11
13
|
dependencies: []
|
|
12
14
|
description: JRuby-Rack is a combined Java and Ruby library that adapts the Java Servlet
|
|
13
15
|
API to Rack. For JRuby only.
|
|
@@ -17,10 +19,10 @@ executables: []
|
|
|
17
19
|
extensions: []
|
|
18
20
|
extra_rdoc_files: []
|
|
19
21
|
files:
|
|
20
|
-
-
|
|
22
|
+
- CHANGELOG.md
|
|
21
23
|
- LICENSE.txt
|
|
22
24
|
- README.md
|
|
23
|
-
- lib/jruby-rack-1.2.
|
|
25
|
+
- lib/jruby-rack-1.2.6.jar
|
|
24
26
|
- lib/jruby-rack.rb
|
|
25
27
|
- lib/jruby/rack/version.rb
|
|
26
28
|
homepage: http://jruby.org
|
|
@@ -34,7 +36,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
34
36
|
requirements:
|
|
35
37
|
- - ">="
|
|
36
38
|
- !ruby/object:Gem::Version
|
|
37
|
-
version:
|
|
39
|
+
version: 2.6.0
|
|
38
40
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
39
41
|
requirements:
|
|
40
42
|
- - ">="
|
data/lib/jruby-rack-1.2.4.jar
DELETED
|
Binary file
|