jruby-rack 0.9.9 → 1.0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +49 -0
- data/README.md +41 -8
- data/lib/jruby-rack-1.0.0.1.jar +0 -0
- data/lib/jruby-rack.rb +1 -0
- data/lib/jruby/rack/version.rb +1 -1
- metadata +14 -12
- data/lib/jruby-rack-0.9.8.jar +0 -0
- data/lib/jruby-rack-0.9.9.jar +0 -0
data/History.txt
CHANGED
@@ -1,3 +1,52 @@
|
|
1
|
+
== 1.0.4
|
2
|
+
|
3
|
+
- Make sane defaults for app/gem/public paths when using
|
4
|
+
RailsFilesystemLayout (Kristian Meier)
|
5
|
+
- Add 'jruby.rack.slash.index' init param that forces / =>
|
6
|
+
/index.html. Fixes JRUBY_RACK-35 and makes Jetty 6 work without
|
7
|
+
having to configure dirAllowed in Jetty's default servlet.
|
8
|
+
- Switch to mostly relying on request URI and not so much servlet
|
9
|
+
path/path info. Makes Tomcat 7 work.
|
10
|
+
- Added rails.relative_url_append context parameter. This can be set in
|
11
|
+
your web.xml or similar to append a string to the end of the context
|
12
|
+
path when the RAILS_RELATIVE_URL_ROOT is set. This allows you to
|
13
|
+
host your rails app in a location other than the base context path
|
14
|
+
of your application. (Ben Rosenblum)
|
15
|
+
|
16
|
+
== 1.0.0.1 (11/29/10)
|
17
|
+
|
18
|
+
- This version is actually a new branch of JRuby-Rack from right
|
19
|
+
before the 1.0.4 release with the Servlet 2.5 changes backed out.
|
20
|
+
Thus, if you run with Tomcat 5.5 or any other servlet container that
|
21
|
+
is not yet advanced to the Servlet 2.5 API, then you should be able
|
22
|
+
to run Rails 3 on those containers with this release.
|
23
|
+
|
24
|
+
== 1.0.3
|
25
|
+
|
26
|
+
- JRUBY-4892: Fix IO collapsing \r\n to \n on Windows
|
27
|
+
- Fix setting of relative_url_root in Rails 3
|
28
|
+
- Recognize META-INF/init.rb and WEB-INF/init.rb as init scripts.
|
29
|
+
|
30
|
+
== 1.0.2
|
31
|
+
|
32
|
+
- Upgrade to Rack 1.2.1 (required for Rails 3 RC)
|
33
|
+
- Retain any GEM_PATH that's set in the environment
|
34
|
+
- Fixed XML Schema Location definition for jsptaglib for JBoss 6
|
35
|
+
(NAKAMURA Hiroshi)
|
36
|
+
- JRUBY_RACK-33: Fix RackFilter to only append .html to path info if
|
37
|
+
the resource exists (thanks Patrick Cheng)
|
38
|
+
|
39
|
+
== 1.0.1
|
40
|
+
|
41
|
+
- 1.0.0 release had a packaging snafu. Too many releases in too short a timespan
|
42
|
+
|
43
|
+
== 1.0.0
|
44
|
+
|
45
|
+
- Might as well go to 1.0. We've been used in production code for a
|
46
|
+
while now.
|
47
|
+
- Turns out the LoadError path dumping is pretty annoying. Rearrange
|
48
|
+
the code and have it only activated by 'jruby.rack.debug.load'.
|
49
|
+
|
1
50
|
== 0.9.9
|
2
51
|
|
3
52
|
- 0.9.8 broke Rubygem's custom require
|
data/README.md
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
# JRuby-Rack
|
2
2
|
|
3
|
-
- http://jruby-rack.kenai.com/
|
4
|
-
|
5
3
|
JRuby-Rack is a lightweight adapter for the Java servlet environment
|
6
4
|
that allows any Rack-based application to run unmodified in a Java
|
7
5
|
servlet container. JRuby-Rack supports Rails, Merb, as well as any
|
@@ -12,13 +10,19 @@ For more information on Rack, visit http://rack.rubyforge.org.
|
|
12
10
|
# Getting Started
|
13
11
|
|
14
12
|
The easiest way to use JRuby-Rack is to get [Warbler][1]. Warbler
|
15
|
-
|
13
|
+
depends on the latest version of JRuby-Rack and ensures it gets placed in
|
16
14
|
your WAR file when it gets built.
|
17
15
|
|
18
|
-
If you're assembling your own WAR using other means, you
|
19
|
-
|
20
|
-
|
21
|
-
|
16
|
+
If you're assembling your own WAR using other means, you can install the
|
17
|
+
`jruby-rack` gem. It provides a method to located the jruby-rack jar file:
|
18
|
+
|
19
|
+
require 'fileutils'
|
20
|
+
require 'jruby-rack'
|
21
|
+
FileUtils.cp JRubyJars.jruby_rack_jar_path, '.'
|
22
|
+
|
23
|
+
Otherwise you'll need to download the [latest JRuby-Rack jar][2], drop
|
24
|
+
it into the WEB-INF/lib directory and configure the RackFilter in your
|
25
|
+
application's web.xml. Example web.xml snippets are as follows.
|
22
26
|
|
23
27
|
## For Rails
|
24
28
|
|
@@ -157,8 +161,37 @@ web.xml.
|
|
157
161
|
Merb application files. Defaults to `/WEB-INF`.
|
158
162
|
- `rails.env`: Specify the Rails environment to run. Defaults
|
159
163
|
to 'production'.
|
164
|
+
- `rails.relative_url_append`: Specify a path to be appended to the
|
165
|
+
ActionController::Base.relative_url_root after the context path. Useful
|
166
|
+
for running a rails app from the same war as an existing app, under
|
167
|
+
a sub-path of the main servlet context root.
|
160
168
|
- `merb.environment`: Specify the merb environment to run. Defaults to
|
161
169
|
`production`.
|
170
|
+
- `jruby.rack.logging`: Specify the logging device to use. Defaults to
|
171
|
+
`servlet_context`. See below.
|
172
|
+
- `jruby.rack.slash.index`: Force rewriting of requests that end in
|
173
|
+
'/' to be passed through to the container as '/index.html'. Default
|
174
|
+
is false, but is turned on for Jetty by default to avoid triggering
|
175
|
+
directory index pages.
|
176
|
+
|
177
|
+
## Logging
|
178
|
+
|
179
|
+
JRuby-Rack sets up a delegate logger for Rails that sends logging
|
180
|
+
output to `javax.servlet.ServletContext#log` by default. If you wish
|
181
|
+
to use a different logging system, set the `jruby.rack.logging`
|
182
|
+
context parameter as follows:
|
183
|
+
|
184
|
+
- `servlet_context` (default): Sends log messages to the servlet
|
185
|
+
context.
|
186
|
+
- `stdout`: Sends log messages to the standard output stream
|
187
|
+
`System.out`.
|
188
|
+
- `commons_logging`: Sends log messages to Apache commons-logging. You
|
189
|
+
still need to configure commons-logging with additional details.
|
190
|
+
- `slf4j`: Sends log messages to SLF4J. Again, SLF4J configuration is
|
191
|
+
left up to you.
|
192
|
+
|
193
|
+
For those loggers that require a specific named logger, set it in the
|
194
|
+
`jruby.rack.logging.name` context parameter.
|
162
195
|
|
163
196
|
# Building
|
164
197
|
|
@@ -276,5 +309,5 @@ The war should be ready to deploy to your Java application server.
|
|
276
309
|
- Chris Neukirchen, for Rack
|
277
310
|
- Sun Microsystems, for early project support
|
278
311
|
|
279
|
-
[1]: http://
|
312
|
+
[1]: http://caldersphere.rubyforge.org/warbler
|
280
313
|
[2]: http://repository.codehaus.org/org/jruby/rack/jruby-rack/
|
Binary file
|
data/lib/jruby-rack.rb
CHANGED
data/lib/jruby/rack/version.rb
CHANGED
metadata
CHANGED
@@ -3,10 +3,11 @@ name: jruby-rack
|
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
|
+
- 1
|
6
7
|
- 0
|
7
|
-
-
|
8
|
-
-
|
9
|
-
version: 0.
|
8
|
+
- 0
|
9
|
+
- 1
|
10
|
+
version: 1.0.0.1
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Nick Sieger
|
@@ -14,7 +15,7 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2010-
|
18
|
+
date: 2010-11-29 00:00:00 -06:00
|
18
19
|
default_executable:
|
19
20
|
dependencies: []
|
20
21
|
|
@@ -28,13 +29,12 @@ extensions: []
|
|
28
29
|
extra_rdoc_files: []
|
29
30
|
|
30
31
|
files:
|
31
|
-
-
|
32
|
-
-
|
33
|
-
-
|
34
|
-
-
|
35
|
-
-
|
36
|
-
-
|
37
|
-
- ./lib/jruby/rack/version.rb
|
32
|
+
- History.txt
|
33
|
+
- LICENSE.txt
|
34
|
+
- README.md
|
35
|
+
- lib/jruby-rack-1.0.0.1.jar
|
36
|
+
- lib/jruby-rack.rb
|
37
|
+
- lib/jruby/rack/version.rb
|
38
38
|
has_rdoc: true
|
39
39
|
homepage: http://jruby.org
|
40
40
|
licenses: []
|
@@ -45,6 +45,7 @@ rdoc_options: []
|
|
45
45
|
require_paths:
|
46
46
|
- lib
|
47
47
|
required_ruby_version: !ruby/object:Gem::Requirement
|
48
|
+
none: false
|
48
49
|
requirements:
|
49
50
|
- - ">="
|
50
51
|
- !ruby/object:Gem::Version
|
@@ -52,6 +53,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
52
53
|
- 0
|
53
54
|
version: "0"
|
54
55
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
56
|
+
none: false
|
55
57
|
requirements:
|
56
58
|
- - ">="
|
57
59
|
- !ruby/object:Gem::Version
|
@@ -61,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
61
63
|
requirements: []
|
62
64
|
|
63
65
|
rubyforge_project: jruby-extras
|
64
|
-
rubygems_version: 1.3.
|
66
|
+
rubygems_version: 1.3.7
|
65
67
|
signing_key:
|
66
68
|
specification_version: 3
|
67
69
|
summary: Rack adapter for JRuby and Servlet Containers
|
data/lib/jruby-rack-0.9.8.jar
DELETED
Binary file
|
data/lib/jruby-rack-0.9.9.jar
DELETED
Binary file
|