Date: 2009-10-30 23:25
Sender: Vivek Pandey
This is fixed in the latest trunk. Now there is no need to require
any grizzly classes. Pure rack applications are just going to
work. Here is an interim build that you can try:
http://download.java.net/maven/glassfish/org/glassfish/scripting/
glassfish-gem/0.9.6-SNAPSHOT/glassfish-gem-0.9.6-SNAPSHOT.gem.
Here is the simple rack application that just works fine:
config.ru
-------
require 'hello'
use HelloWorld
run HelloWorld
hello.rb
------
class HelloWorld
def initialize(app, mime_types=%w[text/html])
end
def call(env)
[200, {"Content-Type" => "text/html"},
["Hello world!"]]
end
end
|