Skip to content

Commit 111a393

Browse files
committed
[chore] Drop deprecated jruby.rack.ignore.env property, replaced long ago by jruby.runtime.env and optional jruby.runtime.env.rubyopt
1 parent 029ad7c commit 111a393

16 files changed

+24
-73
lines changed

History.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
- Drop `jruby.rack.jruby.version` and `jruby.rack.rack.release` keys from rack `env` Hash
1010
- Drop deprecated `Rack::Handler::Servlet::Env` and `Rack::Handler::Servlet::LazyEnv` types (replaced by `DefaultEnv`)
1111
- Drop undocumented and deprecated jruby-rack 1.0 backwards compat properties `jruby.runtime.timeout.sec`, `jruby.runtime.initializer.threads`, `jruby.init.serial`, `jruby.rack.request.size.threshold.bytes`
12+
- Drop deprecated `jruby.rack.ignore.env` property, replaced long ago by `jruby.runtime.env` and optional `jruby.runtime.env.rubyopt`
1213
- Drop deprecated `JRuby::Rack::RailsFileSystemLayout` alias for `JRuby::Rack::FileSystemLayout`
1314
- Drop deprecated `JRuby::Rack::Errors` alias for `JRuby::Rack::ErrorApp`
1415
- Change context listener to throw, in case of an exception during initialization, by default
@@ -177,9 +178,9 @@ Changes from 1.1.15 apply since the previous release got yanked due a regression
177178
to handle custom lazy-bound keys but can not use a default proc (#132)
178179
- support the renew (and skip) session option with servlet store (#131)
179180
- improve ENV isolation with booted Ruby runtimes
180-
* jruby.rack.env replaces jruby.rack.ignore.env (now deprecated)
181+
* jruby.runtime.env replaces jruby.rack.ignore.env (now deprecated)
181182
* make sure RUBYOPT is ignored (with backwards compat)
182-
* jruby.rack.env.rubyopt for finer RUBYOPT behavior control
183+
* jruby.runtime.env.rubyopt for finer RUBYOPT behavior control
183184
* allow env value to be specified from config
184185
- solve the rackup "chicken - egg" problem with a plain Rack app
185186
* with a magic comment in config.ru # rack.version: ~>1.3.6

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,9 @@ as context init parameters in web.xml or as VM-wide system properties.
224224
- `jruby.runtime.env`: Allows to set a custom ENV hash for your Ruby environment
225225
and thus insulate the application from the environment it is running. By setting
226226
this option to en empty string (or 'false') it acts as if the ENV hash was
227-
cleared out (similar to the now deprecated `jruby.rack.ignore.env` option).
228-
- `jruby.runtime.env.rubyopt`: This option is used for compatibility with the
229-
(deprecated) `jruby.rack.ignore.env` option since it cleared out the ENV after
230-
RUBYOPT has been processed, by setting it to true ENV['RUBYOPT'] will be kept.
227+
cleared out (similar to the now removed `jruby.rack.ignore.env` option).
228+
- `jruby.runtime.env.rubyopt`: Set to true to cause ENV['RUBYOPT']
229+
to be retained even when using `jruby.runtime.env` to override environemnt (similar to how the removed `jruby.rack.ignore.env` option behaved by default).
231230
- `jruby.rack.logging`: Specify the logging device to use. Defaults to
232231
`servlet_context`. See below.
233232
- `jruby.rack.request.size.initial.bytes`: Initial size for request body memory

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ Settings:
3333
compat_version =
3434
filter_adds_html = true
3535
filter_verifies_resource = false
36-
ignore_environment = true
37-
initial_runtimes =
36+
initial_runtimes =
3837
logger = org.jruby.rack.logging.ServletContextLogger@7a14b43d
3938
logger_class_name = servlet_context
4039
logger_name = jruby.rack

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ Settings:
3333
compat_version =
3434
filter_adds_html = true
3535
filter_verifies_resource = false
36-
ignore_environment = true
37-
initial_runtimes =
36+
initial_runtimes =
3837
logger = org.jruby.rack.logging.ServletContextLogger@398a3257
3938
logger_class_name = servlet_context
4039
logger_name = jruby.rack

examples/servers/GlassFish-v3.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ Settings:
3535
compat_version =
3636
filter_adds_html = true
3737
filter_verifies_resource = false
38-
ignore_environment = true
39-
initial_runtimes =
38+
initial_runtimes =
4039
logger = org.jruby.rack.logging.ServletContextLogger@46ee45a5
4140
logger_class_name = servlet_context
4241
logger_name = jruby.rack

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ Settings:
3535
compat_version =
3636
filter_adds_html = true
3737
filter_verifies_resource = false
38-
ignore_environment = true
39-
initial_runtimes =
38+
initial_runtimes =
4039
logger = org.jruby.rack.logging.ServletContextLogger@1a20433b
4140
logger_class_name = servlet_context
4241
logger_name = jruby.rack

examples/servers/JBoss-Web-3-0-0-CR1.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ Settings:
3434
compat_version =
3535
filter_adds_html = true
3636
filter_verifies_resource = false
37-
ignore_environment = true
38-
initial_runtimes =
37+
initial_runtimes =
3938
logger = org.jruby.rack.logging.ServletContextLogger@7ee18d93
4039
logger_class_name = servlet_context
4140
logger_name = jruby.rack

examples/servers/Resin-4-0-13.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ Settings:
3333
compat_version =
3434
filter_adds_html = true
3535
filter_verifies_resource = false
36-
ignore_environment = true
37-
initial_runtimes =
36+
initial_runtimes =
3837
logger = org.jruby.rack.logging.ServletContextLogger@6c538793
3938
logger_class_name = servlet_context
4039
logger_name = jruby.rack

examples/servers/Winstone-Servlet-Engine-v0-9-10.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ Settings:
3434
compat_version =
3535
filter_adds_html = true
3636
filter_verifies_resource = false
37-
ignore_environment = true
38-
initial_runtimes =
37+
initial_runtimes =
3938
logger = org.jruby.rack.logging.ServletContextLogger@397af435
4039
logger_class_name = servlet_context
4140
logger_name = jruby.rack

examples/servers/jetty-6-1-25.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ Settings:
3434
compat_version =
3535
filter_adds_html = true
3636
filter_verifies_resource = false
37-
ignore_environment = true
38-
initial_runtimes =
37+
initial_runtimes =
3938
logger = org.jruby.rack.logging.ServletContextLogger@1303368e
4039
logger_class_name = servlet_context
4140
logger_name = jruby.rack

0 commit comments

Comments
 (0)