jruby-rack 1.0.0.1 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +0 -38
- data/README.md +8 -41
- data/lib/jruby-rack-1.0.1.jar +0 -0
- data/lib/jruby-rack.rb +0 -1
- data/lib/jruby/rack/version.rb +1 -1
- metadata +8 -9
- data/lib/jruby-rack-1.0.0.1.jar +0 -0
data/History.txt
CHANGED
@@ -1,41 +1,3 @@
|
|
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
|
== 1.0.1
|
40
2
|
|
41
3
|
- 1.0.0 release had a packaging snafu. Too many releases in too short a timespan
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# JRuby-Rack
|
2
2
|
|
3
|
+
- http://jruby-rack.kenai.com/
|
4
|
+
|
3
5
|
JRuby-Rack is a lightweight adapter for the Java servlet environment
|
4
6
|
that allows any Rack-based application to run unmodified in a Java
|
5
7
|
servlet container. JRuby-Rack supports Rails, Merb, as well as any
|
@@ -10,19 +12,13 @@ For more information on Rack, visit http://rack.rubyforge.org.
|
|
10
12
|
# Getting Started
|
11
13
|
|
12
14
|
The easiest way to use JRuby-Rack is to get [Warbler][1]. Warbler
|
13
|
-
|
15
|
+
bundles the latest version of JRuby-Rack and ensures it gets placed in
|
14
16
|
your WAR file when it gets built.
|
15
17
|
|
16
|
-
If you're assembling your own WAR using other means, you
|
17
|
-
|
18
|
-
|
19
|
-
|
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.
|
18
|
+
If you're assembling your own WAR using other means, you'll need to
|
19
|
+
drop the [latest JRuby-Rack jar][2] into the WEB-INF/lib directory and
|
20
|
+
configure the RackFilter in your application's web.xml. Example
|
21
|
+
web.xml snippets are as follows.
|
26
22
|
|
27
23
|
## For Rails
|
28
24
|
|
@@ -161,37 +157,8 @@ web.xml.
|
|
161
157
|
Merb application files. Defaults to `/WEB-INF`.
|
162
158
|
- `rails.env`: Specify the Rails environment to run. Defaults
|
163
159
|
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.
|
168
160
|
- `merb.environment`: Specify the merb environment to run. Defaults to
|
169
161
|
`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.
|
195
162
|
|
196
163
|
# Building
|
197
164
|
|
@@ -309,5 +276,5 @@ The war should be ready to deploy to your Java application server.
|
|
309
276
|
- Chris Neukirchen, for Rack
|
310
277
|
- Sun Microsystems, for early project support
|
311
278
|
|
312
|
-
[1]: http://
|
279
|
+
[1]: http://warbler.kenai.com/pages/Home
|
313
280
|
[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
@@ -5,9 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 0
|
8
|
-
- 0
|
9
8
|
- 1
|
10
|
-
version: 1.0.
|
9
|
+
version: 1.0.1
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Nick Sieger
|
@@ -15,7 +14,7 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date: 2010-
|
17
|
+
date: 2010-05-18 00:00:00 -05:00
|
19
18
|
default_executable:
|
20
19
|
dependencies: []
|
21
20
|
|
@@ -29,12 +28,12 @@ extensions: []
|
|
29
28
|
extra_rdoc_files: []
|
30
29
|
|
31
30
|
files:
|
32
|
-
- History.txt
|
33
|
-
- LICENSE.txt
|
34
|
-
- README.md
|
35
|
-
- lib/jruby-rack-1.0.
|
36
|
-
- lib/jruby-rack.rb
|
37
|
-
- lib/jruby/rack/version.rb
|
31
|
+
- ./History.txt
|
32
|
+
- ./LICENSE.txt
|
33
|
+
- ./README.md
|
34
|
+
- ./lib/jruby-rack-1.0.1.jar
|
35
|
+
- ./lib/jruby-rack.rb
|
36
|
+
- ./lib/jruby/rack/version.rb
|
38
37
|
has_rdoc: true
|
39
38
|
homepage: http://jruby.org
|
40
39
|
licenses: []
|
data/lib/jruby-rack-1.0.0.1.jar
DELETED
Binary file
|