search for: cgiwrapper

Displaying 10 results from an estimated 10 matches for "cgiwrapper".

2008 Jan 04
1
Howto write a mongrel handler for a CGI app using CGIWrapper
...uri''] user = cgi[''username''] pass = cgi[''password''] foo = Foo.new(:output => ''html'') if user == '''' foo.check(uri) else foo.check(uri, user, pass) end foo.report ]]] Here is the mongrel version, using Mongrel::CGIWrapper : [[[ require ''mongrel'' require ''cgi'' require ''foo'' class AppHandler < Mongrel::HttpHandler def process(request, response) cgi = Mongrel::CGIWrapper.new(request, response) if !cgi[''uri''] || (cgi[''uri'...
2006 Feb 18
3
Mongrel 0.3.5 -- Rails/CGI Actually Works
This release of Mongrel features a CGIWrapper that actually works. The previous code was complete garbage so this one should fix the problems with sessions, cookies, and content-types people reported previously. There is also now a correctly built Win32 gem created by Luis Lavena. Luis joined the Mongrel project and will be working on the W...
2006 Feb 16
9
Mongrel 0.3.4 -- Win32 Gems/Better CGIWrapper
...ource or gem downloads manually, or you can just do: $ gem install mongrel (people who have it already can do gem update) == Changes This release is mostly about getting a win32 gem out for people to try. Hopefully it all works right, but let me know. There is also a much improved and refined CGIWrapper for getting Rails to work right, and this has been tested with eXPlainPMT as well as Typo. Redirects work, forms, etc. What doesn''t work right yet is redirecting when you''re behind a proxy, and probably anything related to file uploads. That''ll come next release. There&...
2008 Jan 03
23
deployment survey
...ey of the different ways people are deploying their applications? It will help with near-future Mongrel development. Please include the following things: * Framework, if any (Camping, Merb, Rails, Nitro, Ramaze, IOWA, Rack...) * Mongrel version * Mongrel handlers used (rails, dirhandler, camping, cgiwrapper...) * How many mongrel routes and handlers per route registered (if you don''t know, it''s probably <= 2) * Any Mongrel plugins used (mongrel_upload_progress, mongrel_gzip, mongrel_cow_cluster, mongrel_experimental...) * Mongrel runners used (mongrel_rails, mongrel::cluster, mong...
2006 Nov 15
4
Mongrel 0.3.15 PR -- All The Fixes Good For You
...atch queue one more time, but I''ve put up another pre-release for people to test. What this pre-release does is pull together the various patches, monkey patching, and alternatives that make Mongrel either faster or more stable. It is also the start of an effort to get Mongrel''s CGIWrapper to handle the mime type decoding as well. Full (lame ass svk style) ChangeLog is at http://mongrel.rubyforge.org/releases/ChangeLog It''s also tagged as 0.3.15 in svn for people who need that. The better explanation of the changes is: * Uses Mentalguy''s Optimized Sync for lockin...
2010 Jul 30
1
[PATCH 1/2] Monkey-patch mongrel to fix rails 2.3.5 incompatibility
..._patch.rb new file mode 100644 index 0000000..ae2bcf4 --- /dev/null +++ b/src/config/initializers/mongrel_patch.rb @@ -0,0 +1,11 @@ +# monkey patch to make mongrel compatible with rails 2.3.5 +# fixes faulty redirection issue. +# TODO : ditch mongrel and switch to passenger instead. +class Mongrel::CGIWrapper + def header_with_rails_fix(options = 'text/html') + @head['cookie'] = options.delete('cookie').flatten.map { |v| v.sub(/^\n/,'') } if options.class != String and options['cookie'] + header_without_rails_fix(options) + end + alias_method_chain(:heade...
2006 Feb 22
13
Mongrel 0.3.6 -- Win32 Service/Rails Real Good
...d using plain HTTP rather than FastCGI or SCGI. It is framework agnostic and already supports Ruby On Rails, Og+Nitro, and Camping frameworks. == Changes for 0.3.6 * A really complete win32 service runner for installing any Rails app as a Mongrel service. * Lots of fixes to the Rails support and CGIWrapper. Other frameworks should be able to poach all the starter/runner scripts (even the service one) and replicate this setup. * Support for specifying a YAML file of additional MIME types you need. Mongrel has a few but you can specify more. This is available for both the win32 service and regular mo...
2006 Sep 16
10
Mongrel and Sandbox
Z-Man, DHH recently said: "And [_why''s] latest work on sandbox looks stellar. Making it drop-dead easy to run multiple Rails applications in the same Mongrel process without conflicts. Thumbs up to both him and Matz for getting Sandbox on track for inclusion with the next Ruby release." Does that mean what I think it means - that one or more Mongrel processes may one day be
2006 Feb 22
0
Mongrel 0.3.6 -- Win32 Service/Rails Real Good
...d using plain HTTP rather than FastCGI or SCGI. It is framework agnostic and already supports Ruby On Rails, Og+Nitro, and Camping frameworks. == Changes for 0.3.6 * A really complete win32 service runner for installing any Rails app as a Mongrel service. * Lots of fixes to the Rails support and CGIWrapper. Other frameworks should be able to poach all the starter/runner scripts (even the service one) and replicate this setup. * Support for specifying a YAML file of additional MIME types you need. Mongrel has a few but you can specify more. This is available for both the win32 service and regular mo...
2010 May 10
1
Rails/mongrel/httpd issue - F13, rails 2.3.5
Hi, I have an issue with mongrel and rails. I add -B option(debug) to mongrel_rails in /etc/init.d/mongrel-rails but it didn't display more logs : http://ovirt.pastebin.com/N5v94cTu This is the page I get when I try to reach the ovirt web interface, I see the html tags (kerberos auth is working) : <html><body>You are being <a