» ruby-web «ruby-web provides a web-friendly ruby environment. ruby-web is a foundation, not a framework. It is a simple, solid platform for the development of pages, applications, and frameworks.
RoadmapIn 2002, I became frustrated with how cgi.rb handled multiple parameters, and began a fork of cgi. Since then, I have been developing ruby-web as a solid and simple platform for running ruby on a web server.
I'll be chatting about the development progress over on NARF. Downloadruby-web mostly depends on Ruby 1.8.x. On Windows, the ruby-web package will provide a pre-compiled ruby-web.exe binary that is linked against the Windows One-Click Installer. Installers for ruby web are available from Rubyforge. If there is not an appropriate installer, use the latest "ruby-web-x.x.x.tgz" file. Extract the archive with Winzip / Stuffit / "tar -xvzf ruby-web-x.x.x.tgz". From the command line, execute these commands: ruby install.rb config ruby install.rb setup ruby install.rb install This will compile and install the ruby-web interpreter. Instructions for your webserver are available in the manual DevelopmentThe ruby-web mailing list is: narf-lib-devel@lists.sourceforge.net The ruby-web code is in this subversion repository: http://svn.narf-lib.org/svn/patsplat/ruby-web/trunk/ ruby-web uses rake to manage build tasks. Here are some common tasks:
rake test (tests main narf tests)
rake testwiki (tests built-in wiki app)
rake testexamples (tests examples)
rake macpkg (build installer .pkg on MacOS X)
rake winpkg (build installer .exe on Windows using NSIS)
To test installation, save this short script as test.rb:
#!/usr/bin/ruby-web
Web::info
And run this command, substituting the appropriate url to test.rb:
ruby build.rb testinstall http://localhost/test.rb
Patrick May is the maintainer of ruby-web. DocumentationAll above, in single HTML file. Creditruby-web was formerly the NARF web framework. NARF was written by Tom Clarke and Patrick May, based on cgi.rb written by Wakou Aoyama. It maked significant use of ruby-htmltools, written by Ned Konz. Also, Keunwoo Lee patched #read_multipart to be cleaner. ruby-web contains code from the following projects, and I am in their debt:
The background of this site uses a photo of a spider posted on flickr.com by JS1975. |