I''m trying to use Camping from Magnus'' repo (1.9.300) but running the blog.rb example (or anything for that matter) gives me Rack::Lint::LintError at / Content-Length header was 0, but should be 548 Ruby C:/ruby-1.8.7/lib/ruby/gems/1.8/gems/rack-0.9.1/lib/rack/lint.rb: in assert, line 16 Web GET localhost/ There are no errors on the camping output so I suspect something has changed with Rack. What version of Rack do people have the examples working with? Thanks, Garret Buell
Ok, scratch that last. Turns out camping works just fine with Rack 0.4 so it seems the change was with 0.9. I''m not too familiar with Rack -- what changes would we need to make to get camping working with Rack 0.9? Would we gain anything by making the switch? -Garret On Sat, Mar 28, 2009 at 10:01 PM, Garret Buell <terragb at gmail.com> wrote:> I''m trying to use Camping from Magnus'' repo (1.9.300) but running the > blog.rb example (or anything for that matter) gives me > Rack::Lint::LintError at / > Content-Length header was 0, but should be 548 > Ruby ? ?C:/ruby-1.8.7/lib/ruby/gems/1.8/gems/rack-0.9.1/lib/rack/lint.rb: > in assert, line 16 > Web ? ? GET localhost/ > > There are no errors on the camping output so I suspect something has > changed with Rack. What version of Rack do people have the examples > working with? > > Thanks, > Garret Buell >
I was able to get camping 1.9 to work with rack 0.9 by using a copy pulled from the repository for rack listed on github. git clone git://github.com/rack/rack.git Paul On Sat, Mar 28, 2009 at 10:06:57PM -0700, Garret Buell wrote:> Ok, scratch that last. Turns out camping works just fine with Rack 0.4 > so it seems the change was with 0.9. I''m not too familiar with Rack -- > what changes would we need to make to get camping working with Rack > 0.9? Would we gain anything by making the switch? > > -Garret > > On Sat, Mar 28, 2009 at 10:01 PM, Garret Buell <terragb at gmail.com> wrote: > > I''m trying to use Camping from Magnus'' repo (1.9.300) but running the > > blog.rb example (or anything for that matter) gives me > > Rack::Lint::LintError at / > > Content-Length header was 0, but should be 548 > > Ruby ? ?C:/ruby-1.8.7/lib/ruby/gems/1.8/gems/rack-0.9.1/lib/rack/lint.rb: > > in assert, line 16 > > Web ? ? GET localhost/ > > > > There are no errors on the camping output so I suspect something has > > changed with Rack. What version of Rack do people have the examples > > working with? > > > > Thanks, > > Garret Buell > > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list
On 29 Mar 2009, at 07:06, Garret Buell wrote:> Would we gain anything by making the switch?Everybody would gain. Content-length is a requirement of the latest Rack spec, presumaby to allow for easier caching, and you have to set it _unless_ you send out chunked - but then you have to state it in the headers. -- Julik Tarkhanov me at julik.nl
Well, this issue is actually solved in the latest master :-) Maybe it''s time to release this thing... I''m way to lazy :/ //Magnus Holm On Sun, Mar 29, 2009 at 20:45, Julik Tarkhanov <julian.tarkhanov at gmail.com>wrote:> > On 29 Mar 2009, at 07:06, Garret Buell wrote: > > Would we gain anything by making the switch? >> > Everybody would gain. Content-length is a requirement of the latest Rack > spec, presumaby to allow for easier caching, and you have to set it _unless_ > you send out chunked - but then you have to state it in the headers. > -- > Julik Tarkhanov > me at julik.nl > > > > > > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/camping-list/attachments/20090329/affa4d34/attachment.html>
What about using the github gem server? http://github.com/blog/51-github-s-rubygem-server That way the most current camping could be installed with a gem install judofyr-camping Instead of having to download and build it (marginally more difficult) -Garret Buell 2009/3/29 Magnus Holm <judofyr at gmail.com>:> Well, this issue is actually solved in the latest master :-) > Maybe it''s time to release this thing... I''m way to lazy :/ > > //Magnus Holm > > > On Sun, Mar 29, 2009 at 20:45, Julik Tarkhanov <julian.tarkhanov at gmail.com> > wrote: >> >> On 29 Mar 2009, at 07:06, Garret Buell wrote: >> >>> Would we gain anything by making the switch? >> >> Everybody would gain. Content-length is a requirement of the latest Rack >> spec, presumaby to allow for easier caching, and you have to set it _unless_ >> you send out chunked - but then you have to state it in the headers. >> -- >> Julik Tarkhanov >> me at julik.nl >> >> >> >> >> >> _______________________________________________ >> Camping-list mailing list >> Camping-list at rubyforge.org >> http://rubyforge.org/mailman/listinfo/camping-list > > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list >