Re: Squatting

2008-05-15 Thread zimbatm
Haha, well done :) Small rectification: Camping also allows multiple views per controller 2008/5/15 John Beppu <[EMAIL PROTECTED]>: > Hey Campers, > > I liked Camping so much that I had to "port" it to Perl. My framework is > called Squatting (as in http://en.wikipedia.org/wiki/Squatting), and y

Re: Squatting

2008-05-16 Thread zimbatm
module MyApp module Controllers class Index < R '/', '/(.*)' def get(opts = nil) @opts = opts render( opts ? :opts : :index ) end end end module Views def index h1 "Regular" end def opts h1 "Opts" p @opts end end end __

Re: Camping-Omnibus Doesn't Work With Ruby v1.8.6

2008-05-17 Thread zimbatm
Ok noted, it should probably be fixed once camping is released on rubyforge 2008/5/10 Trevor Johns <[EMAIL PROTECTED]>: > I've noticed that the copy of Mongrel installed by the camping-omnibus gem > doesn't work with Ruby 1.8.6. Or to be more specific, cgi_multipart_eof_fix > (which Mongrel is dep

Re: Setting cookies in service overloader thingo

2008-05-17 Thread zimbatm
Nice catch, cookies support never really felt complete to me. Maybe we should put it in a different module ? Cheers, zimbatm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: obfuscation Re: Rack, Camping 2.0++

2008-05-23 Thread zimbatm
2008/5/22 Ernest Prabhakar <[EMAIL PROTECTED]>: > So, it sounds like there's a few options: > > a) Automate the creation of the obfuscated version from the unabridged > version Last time I checked, Ruby2Ruby didn't recognize all camping constructs but it might be better now. > b) Tweak the system

Re: obfuscation Re: Rack, Camping 2.0++

2008-05-23 Thread zimbatm
> The problem is that almost all app require 'camping' and when bin/camping > require 'camping-unabridged' things gets pretty messy. Right, didn't thought about that.. well then we have to come up with a Ruby2Ruby version, isn't it ? ___ Camping-list mai

Re: obfuscation Re: Rack, Camping 2.0++

2008-05-23 Thread zimbatm
> How is camping.rb created from camping-unabridged.rb? By hand? Err.. yes. This is a kind of art you know ? ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: Rack, Camping 2.0++

2008-05-23 Thread zimbatm
2008/5/22 _why <[EMAIL PROTECTED]>: > Splendid! If we can say Camping, the 3K Microframework, then I > think we will really have a reason to bump the big number. I'll wait > for a reaction from zimbatm, but I am euphoric about these changes. Wasn't th

Re: Rack, Camping 2.0++

2008-05-23 Thread zimbatm
2008/5/23 Magnus Holm <[EMAIL PROTECTED]>: > So should I just merge/rebase everything to my master, so _why can merge > it into his? Some more notes: > > * camping/db.rb -> camping/ar.rb > * camping/session.rb -> camping/ar/session.rb > * CookieSession -> camping/session.rb > > The documentation an

Re: Rack, Camping 2.0++

2008-05-25 Thread zimbatm
Just wanted to comment a bit more : 2008/5/21 Magnus Holm <[EMAIL PROTECTED]>: > I've just finished rewriting Camping to use Rack in the "core". I got rid of > (a little less) than 1kB in camping.rb and removed lots of un-necessary files > (lib/server/*.rb, fastcgi.rb & mongrel.rb). This is good

Re: camping-mural.rb Re: Rack, Camping 2.0++

2008-05-25 Thread zimbatm
2008/5/25 Ernest Prabhakar <[EMAIL PROTECTED]>: > Hi Z, > > On May 25, 2008, at 5:47 AM, zimbatm wrote: > >>> I haven't touched camping.rb at all, do we really need to prove that it's >>> a >>> micro-framework? It just makes developmen

Re: Rack, Camping 2.0++

2008-05-25 Thread zimbatm
2008/5/26 _why <[EMAIL PROTECTED]>: > On Sun, May 25, 2008 at 02:47:39PM +0200, zimbatm wrote: >> This is not that hard to do. Maybe I should add some shortening tricks >> document. >> I propose platterizing to be done only before release. > > No, let's not

Re: Getting rid of the route maker

2008-06-23 Thread zimbatm
eird inclusion mechanism I wish I didn't had to do. Ruby also has some quirks regarding module inclusion into other modules and late method definition in reopened parent module. So while your patch might fix the most cases, I believe there is more work to be done here. Anyways, kee

Re: Getting rid of the route maker

2008-06-25 Thread zimbatm
favor of some Rails (!) goodness. Cheers, zimbatm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Camping.method_missing useful ?

2008-06-27 Thread zimbatm
The concept is fun but is it really used by people out there ? ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: File uploads

2008-07-22 Thread zimbatm
class H < Hash # Gets or sets keys in the hash. # # @cookies.my_favorite = :macadamian # @cookies.my_favorite # => :macadamian # def method_missing(m,*a) x=(m.to_s=~/=$/?self[$`]=a[0]:a==[]?self[m.to_s]:super) x.kind_of?(Hash) ? H[x] : x end

Re: File uploads

2008-07-23 Thread zimbatm
Yum. Did you try just setting YourApp::H = Mash ? If it works like this out of the box then we can keep the simpler solution and provide a recipe to work with mash ? 2008/7/23 Magnus Holm <[EMAIL PROTECTED]>: > I'm playing with Mash (http://mash-hash.rubyforge.org/) which has some really > nifty s

Re: File uploads

2008-07-23 Thread zimbatm
> So we have to alias self[] to self.new... > > On Wed, Jul 23, 2008 at 10:10 AM, zimbatm <[EMAIL PROTECTED]> wrote: >> Yum. Did you try just setting YourApp::H = Mash ? If it works like >> this out of the box >> then we can keep the simpler solution and provide a re

[TIP] optional multi-pane layout

2008-08-28 Thread zimbatm
= block end # So now on your view def some_view # use that method if you need the right pane _right_pane do # Some code in the right pane end # And here goes your regular view end end Cheers, zimbatm ___ Camping-list mail

Re: Camping::Apps returns!

2008-08-28 Thread zimbatm
Hi Magnus, If I remember well, I am the one who introduced AND removed Camping::Apps. I'm not sure anymore but I think it wasn't really used and that solutions never really satisfied me. Do you have any use for it ? Cheers, zimbatm ___ Ca

Comment on f658399b7512337f2b0f1d34264214a690404772

2008-08-28 Thread zimbatm
7360) 0.04 0.01 0.05 ( 0.057386) 0.04 0.01 0.05 ( 0.057580) Source : http://github.com/zimbatm/camping/tree/master Cheers, zimbatm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: Camping::Apps returns!

2008-08-28 Thread zimbatm
Now I remember, there is a quirk. Make sure to remove the old app in the array when reloading the app in the Camping::Reloader. Cheers, zimbatm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: Who has the latest version of camping?

2008-09-15 Thread zimbatm
Hi Garret, check out why's repository on : http://github.com/why/camping 2008/9/5 Garret Buell <[EMAIL PROTECTED]>: > So I'm looking to get the latest, most very bleeding edge version of > camping. The question is, who's got it? It seems I can get it from > why

Re: I CAN HAZ 3K FRAIMWURK?

2009-01-24 Thread zimbatm
Looks all sane to me. Good job ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: H with indifferent access

2009-01-24 Thread zimbatm
Hi Magnus, I prefer using method_missing, with string access for fallback when key names are not compatible with ruby method names. ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: Release?

2009-02-12 Thread zimbatm
On Thu, Feb 12, 2009 at 8:42 PM, Julik Tarkhanov wrote: > Why not just 2.0.0 with a tag, then 2.0.1 with a tag and so on? Then you > also know everytime you release something you have a tag for it. And things > like rebases will not ruin your schemes +1 ___

Re: hi all! can't open github!!

2009-08-20 Thread zimbatm
will continue to inspire people in your next hobby. cheers, zimbatm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: What now?

2009-08-28 Thread zimbatm
+1 for camping/camping at github . Also, why not use the github pages to host the camping website ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: What now?

2009-10-18 Thread zimbatm
+1 for whywentcamping.com ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: What now?

2009-10-19 Thread zimbatm
Regarding SEO, isn't it enough to have some links from the ruby community pointing to the camping homepage to have it on top-10 of "ruby camping" search results ? ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listin

Re: What now?

2009-10-19 Thread zimbatm
In any case, I just secured whywentcamping.com. For now it redirects to camping.rubyforge.com ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list