Skip to content

Commit 1b86afd

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 cd26141 commit 1b86afd

17 files changed

+32
-83
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: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jruby.home: file:/Users/nicksieger/Projects/java/apache-tomcat-6.0.14/webapps/si
77
--- Context Init Parameters:
88
ENV_HOST = Vanguard.local
99
ENV_OUTPUT = /Users/nicksieger/Projects/ruby/jruby-rack/examples/servers
10-
jruby.rack.ignore.env = true
10+
jruby.runtime.env = false
1111
public.root = /
1212
rack.env = production
1313

@@ -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 & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ jruby.home: file:/Users/nicksieger/Projects/java/apache-tomcat-7.0.2/webapps/sin
77
--- Context Init Parameters:
88
ENV_HOST = Vanguard.local
99
ENV_OUTPUT = /Users/nicksieger/Projects/ruby/jruby-rack/examples/servers
10-
jruby.rack.ignore.env = true
1110
public.root = /
1211
rack.env = production
1312

@@ -33,8 +32,7 @@ Settings:
3332
compat_version =
3433
filter_adds_html = true
3534
filter_verifies_resource = false
36-
ignore_environment = true
37-
initial_runtimes =
35+
initial_runtimes =
3836
logger = org.jruby.rack.logging.ServletContextLogger@398a3257
3937
logger_class_name = servlet_context
4038
logger_name = jruby.rack

examples/servers/GlassFish-v3.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ENV_HOST = Vanguard.local
99
ENV_OUTPUT = /Users/nicksieger/Projects/ruby/jruby-rack/examples/servers
1010
com.sun.faces.forceLoadConfiguration = true
1111
com.sun.faces.validateXml = true
12-
jruby.rack.ignore.env = true
12+
jruby.runtime.env = false
1313
public.root = /
1414
rack.env = production
1515

@@ -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 & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ ENV_HOST = Vanguard.local
99
ENV_OUTPUT = /Users/nicksieger/Projects/ruby/jruby-rack/examples/servers
1010
com.sun.faces.duplicateJARPattern = ^tmp\d+(\S*\.jar)
1111
com.sun.faces.injectionProvider = org.jboss.web.jsf.integration.injection.JBossDelegatingInjectionProvider
12-
jruby.rack.ignore.env = true
1312
public.root = /
1413
rack.env = production
1514

@@ -35,8 +34,7 @@ Settings:
3534
compat_version =
3635
filter_adds_html = true
3736
filter_verifies_resource = false
38-
ignore_environment = true
39-
initial_runtimes =
37+
initial_runtimes =
4038
logger = org.jruby.rack.logging.ServletContextLogger@1a20433b
4139
logger_class_name = servlet_context
4240
logger_name = jruby.rack

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jruby.home: classpath:/META-INF/jruby.home
77
--- Context Init Parameters:
88
ENV_HOST = Vanguard.local
99
ENV_OUTPUT = /Users/nicksieger/Projects/ruby/jruby-rack/examples/servers
10-
jruby.rack.ignore.env = true
10+
jruby.runtime.env = false
1111
public.root = /
1212
rack.env = production
1313
resteasy.unwrapped.exceptions = javax.ejb.EJBException
@@ -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: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jruby.home: file:/Users/nicksieger/Projects/java/resin-4.0.13/webapps/sinatra/WE
77
--- Context Init Parameters:
88
ENV_HOST = Vanguard.local
99
ENV_OUTPUT = /Users/nicksieger/Projects/ruby/jruby-rack/examples/servers
10-
jruby.rack.ignore.env = true
10+
jruby.runtime.env = false
1111
public.root = /
1212
rack.env = production
1313

@@ -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: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jruby.home: file:/private/var/folders/1j/pj33xy610ms4jxbv3g0zh9400000gn/T/winsto
77
--- Context Init Parameters:
88
ENV_HOST = Vanguard.local
99
ENV_OUTPUT = /Users/nicksieger/Projects/ruby/jruby-rack/examples/servers
10-
jruby.rack.ignore.env = true
10+
jruby.runtime.env = false
1111
public.root = /
1212
rack.env = production
1313

@@ -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: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jruby.home: file:/private/tmp/Jetty_0_0_0_0_8080_sinatra.war__sinatra__86inrb/we
77
--- Context Init Parameters:
88
ENV_HOST = Vanguard.local
99
ENV_OUTPUT = /Users/nicksieger/Projects/ruby/jruby-rack/examples/servers
10-
jruby.rack.ignore.env = true
10+
jruby.runtime.env = false
1111
org.mortbay.jetty.webapp.NoTLDJarPattern = start.jar|ant-.*\.jar|dojo-.*\.jar|jetty-.*\.jar|jsp-api-.*\.jar|junit-.*\.jar|servlet-api-.*\.jar|dnsns\.jar|rt\.jar|jsse\.jar|tools\.jar|sunpkcs11\.jar|sunjce_provider\.jar|xerces.*\.jar
1212
public.root = /
1313
rack.env = production
@@ -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)