rack
- URL
- http://rack.rubyforge.org
- Author(s)
- Christian Neukirchen
- Summary
- Rack provides minimal, modular and adaptable interface for developing web applications in Ruby. By wrapping HTTP requests and responses in the simplest way possible, it unifies and distills the API for web servers, web frameworks, and software in between
Comments
rack
is Working
for Jake Douglas (Mac OSX, 6 months ago)
rack
(1.0.0)
is Working
for Joshua Partogi (GNU/Linux, 6 months ago)
Works well for me. I use it to run thin.
rack
(1.0.0)
is Failing
for haarts (Mac OSX, 7 months ago)
Fails with multipart file uploads. Version on Github fixes the problem
rack
(1.0.0)
is Working
for Evil Trout (Mac OSX, 10 months ago)
rack
(0.9.1)
is Working
for Pistos (GNU/Linux, about 1 year ago)
Works for me for preliminary testing with Ramaze + Thin.
rack
(0.9.1)
is Working
for manveru (GNU/Linux, about 1 year ago)
Works just fine, but you'll have to:
class String
alias each each_line unless ''.repsond_to?(:each)
endThe spec of rack will change before 1.0 to fully support 1.9
rack
(master)
is Working
for Alex Sokoloff (Mac OSX, about 1 year ago)
New version from github works well
rack
(0.9.1)
is Working
for David Palm (Mac OSX, about 1 year ago)
No problems whatsoever encountered so far.
rack
(master)
is Working
for Ryan Tomayko (Mac OSX, about 1 year ago)
We just pushed a slew of 1.9.1 compatibility fixes to Rack's master:
rack
is Failing
for Nathan (Mac OSX, about 1 year ago)
I don't think each_line is a good idea for body, because it is useful to be able to feed Rack any object that has an each. Maybe Rack could continue to expect an enumerable and we should give it one? A simple method on String could fix this?
rack
(0.9.1)
is Failing
for Jonathan Broad (Mac OSX, about 1 year ago)
Found an effective workaround here: http://frozenplague.net/2009/01/ruby-191-rubygems-rails/
Replace:
vs.each { |v|
res[k] = v
}With:
res[k] = vs
rack
(0.9.1)
is Failing
for Joon You (Mac OSX, about 1 year ago)
I was trying to see if I can Rack to work with 1.9.1. The only web server I can use is WEBrick since Mongrel as well as Thin does not work with 1.9.1. Rack installed without a hitch using ‘gem install rack’ command.
Using extremely simple code below, I wanted to see if I can hit my new super micro app.
super_micro_app = Proc.new { |env| [200, {'Content-Type' => 'text/plain'},'Please no more hello world crap'] }
require 'rack'
Rack::Handler::WEBrick.run(super_micro_app, :Port => 4000)The problem is that this will barf because of the fact that String is no longer Enumerable. On line 47 of rack/handler/webrick.rb, you’ll see that each is called on ‘vs’ variable. Same thing happens on line 47 with ‘body’. The way I made this run is to change ‘vs.each’ to ‘vs.each_char’ on line 40 and ‘body.each’ to ‘body.each_line’ on line 47.
rack
(0.9.1)
is Failing
for Jai-Gouk Kim (GNU/Linux, about 1 year ago)
Ubuntu 8.1, x86.
Installs but has some Ruby 1.9 incompatible code.
rack
(0.9.1)
is Failing
for postmodern (GNU/Linux, about 1 year ago)
Installs but has some Ruby 1.9 incompatible code.
require 'rack'
Rack::Handler::WEBrick.run Proc.new { |env| [200, {'Content-Type' => 'text/html'}, env.inspect] }, :Port => 8080
[2009-02-05 15:24:38] INFO WEBrick 1.3.1
[2009-02-05 15:24:38] INFO ruby 1.9.1 (2009-01-30) [x86_64-linux]
[2009-02-05 15:24:38] WARN TCPServer Error: Address already in use - bind(2)
[2009-02-05 15:24:38] INFO WEBrick::HTTPServer#start: pid=4184 port=8080# Browse to http://localhost:8080/
[2009-02-05 15:24:45] ERROR NoMethodError: undefined method `each' for "text/html":String
/usr/lib/ruby19/gems/1.9.1/gems/rack-0.9.1/lib/rack/handler/webrick.rb:47:in `block in service'

rack (1.0.0) is Working
for Andryusha (Mac OSX, 5 months ago)