Re: css image url's and :img problem

2007-11-18 Thread Magnus Holm
/mailman/listinfo/camping-list -- Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: Sample Code, quick simple openid auth

2008-05-20 Thread Magnus Holm
Cookies can be stealt. I'm protecting you against yourself :-P 2008/5/20, Bluebie, Jenna [EMAIL PROTECTED]: Sure, but if you're building an app that keeps secrets about me from me, I'd rather not use it, thank you. On 20/05/2008, at 6:01 PM, Magnus Holm wrote: Everyone can read

Re: Rack, Camping 2.0++

2008-05-22 Thread Magnus Holm
/rebase them to the master for easy merging with why's repo (so you guys can continue to hack with it). Oh, and the documentation of session needs some cleanup, but I suck at documentation so I'll leave it to you :-) -- Magnus Holm ___ Camping-list mailing

Re: Rack, Camping 2.0++

2008-05-22 Thread Magnus Holm
___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list -- Magnus Holm ___ 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 Magnus Holm
-unabridged.rb the default camping.rb Ugh ! ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list -- Magnus Holm ___ Camping-list mailing list Camping

Re: An issue for consideration

2008-05-23 Thread Magnus Holm
be sure to post the service I write to work around this issue just as soon as I'm done writing it. — Thoughtful Pony ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list -- Magnus Holm

Re: Rack, Camping 2.0++

2008-05-23 Thread Magnus Holm
from zimbatm, but I am euphoric about these changes. Wasn't the one who codes who leads ? :) ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list -- Magnus Holm

Re: Rack, Camping 2.0++

2008-05-24 Thread Magnus Holm
is the true leader of Camping.) On Sat, May 24, 2008 at 1:28 AM, zimbatm [EMAIL PROTECTED] wrote: 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 2.0 - What's left?

2008-05-24 Thread Magnus Holm
I've just sent a pull-request to _why with my changes[1] and here is some things that I think needs to be done before a (possible) release: * The cookie session is named Camping::Session and is placed in camping/session.rb. Maybe this should be called Camping::CookieSession or??? * The

Re: Camping 2.0 - What's left?

2008-05-25 Thread Magnus Holm
with @@state_timeout). http://github.com/judofyr/camping/commits/cs On Sun, May 25, 2008 at 5:43 AM, _why [EMAIL PROTECTED] wrote: On Sun, May 25, 2008 at 12:25:08AM +0200, Magnus Holm wrote: * The cookie session is named Camping::Session and is placed in camping/session.rb. Maybe this should

Re: Camping 2.0 - What's left?

2008-05-25 Thread Magnus Holm
minute timeouts are really the target audience of Camping. — Jenna On 25/05/2008, at 10:45 PM, Magnus Holm wrote: You're absolutely right. Not anymore, though. I fixed in my cs-branch. Now it will save the data in three cookies: camping_blob, camping_hash and camping_time

Re: Camping 2.0 - What's left?

2008-05-25 Thread Magnus Holm
On Sun, May 25, 2008 at 4:25 PM, Julian Tarkhanov [EMAIL PROTECTED] wrote: On 25 mei 2008, at 00:25, Magnus Holm wrote: * insert your wish * Are deeply nested query arguments and tricky bits like checkbox arrays/param arrays handled properly (and in a Camping-compatible manner, AFAIK

Messy Cookies

2008-06-06 Thread Magnus Holm
a bug, please comment on a commit (or scream out on IRC)! Oh, and _why has to decide if we should make the session-system completely XSS-proof, or be a little more relaxed. It doesn't have to be XSS-proof as long as you keep the cookies secret (aka, escapes all Javascript). -- Magnus Holm

Getting rid of the route maker

2008-06-22 Thread Magnus Holm
/tree/no_route_maker -- Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: Getting rid of the route maker

2008-06-24 Thread Magnus Holm
PROTECTED] wrote: On Mon, Jun 23, 2008 at 12:16:35AM +0200, Magnus Holm wrote: The route maker's job is basically two things: - Make sure that all controllers includes the right mixins - If any controllers doesn't respond to urls (aka. haven't been inherited from R) define urls as ClassName.downcase

Re: Getting rid of the route maker

2008-06-24 Thread Magnus Holm
that mean we are losing the possinility for multiple routes per controller and such? Or should I return something magic from self.urls to make controllers function the pre-2.0 way? On Jun 24, 2008, at 1:05 PM, Magnus Holm wrote: Alright! What about releasing 2.0? I've closed a lot of tickets

Re: Getting rid of the route maker

2008-06-24 Thread Magnus Holm
Nice! You should also go through the documentation, it's pretty bad at the moment... On Tue, Jun 24, 2008 at 5:07 PM, _why [EMAIL PROTECTED] wrote: On Tue, Jun 24, 2008 at 01:05:54PM +0200, Magnus Holm wrote: Man, that's way better than removing 135 bytes! I *love* the implementation! I have

Re: Troubleshooting: Camping 2.0 on CGI on a shared host

2008-07-14 Thread Magnus Holm
/camping-list -- Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: Troubleshooting: Camping 2.0 on CGI on a shared host

2008-07-16 Thread Magnus Holm
://rubyforge.org/mailman/listinfo/camping-list -- Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: Troubleshooting: Camping 2.0 on CGI on a shared host

2008-07-16 Thread Magnus Holm
ApacheFixer to make a TestingFixed class, but never use that class anywhere else. Do you mean for the lines in dispatch.* to use TestingFixed instead of Testing? I'm trying to use this to resolve my problems as we speak, Eric On Wed, Jul 16, 2008 at 5:08 PM, Magnus Holm [EMAIL PROTECTED

Re: Troubleshooting: Camping 2.0 on CGI on a shared host

2008-07-18 Thread Magnus Holm
not found!. PATH_INFO has been set to /login.html in this case. I also tried setting SCRIPT_NAME to be whatever REQUEST_URI is, but this has the same effect as using the REDIRECT_SCRIPT_NAME approach. Continuing to investigate, Eric On Wed, Jul 16, 2008 at 5:31 PM, Magnus Holm [EMAIL PROTECTED

Re: AR Sessions

2008-07-19 Thread Magnus Holm
-list -- Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Preview: Camping Explained

2008-07-20 Thread Magnus Holm
-beginning.html -- Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: Backwards compatibility broken with URL()... for the better?

2008-07-21 Thread Magnus Holm
. ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list -- Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: Preview: Camping Explained

2008-07-21 Thread Magnus Holm
'. :) ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list -- Magnus Holm

Re: Backwards compatibility broken with URL()... for the better?

2008-07-22 Thread Magnus Holm
gems were based on your tree, not _why's? My mistake? ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list -- Magnus Holm ___ Camping-list mailing

Re: File uploads

2008-07-22 Thread Magnus Holm
we do that normally? does it cause problems with some libraries? ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list -- Magnus Holm ___ Camping

Re: File uploads

2008-07-23 Thread Magnus Holm
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 stuff. Here's the branch: http

Re: File uploads

2008-07-26 Thread Magnus Holm
all the keys). On Wed, Jul 23, 2008 at 4:49 PM, zimbatm [EMAIL PROTECTED] wrote: This is curious... why would they change that behavior ? 2008/7/23 Magnus Holm [EMAIL PROTECTED]: Mash[] doesn't work exactly as wanted (if you give it symbols): Mash[:test = 1] #= Mash test=nil Mash

Re: @state not being saved

2008-07-29 Thread Magnus Holm
___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list -- Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo

Camping::Apps returns!

2008-08-28 Thread Magnus Holm
Camping::Apps is back! I don't know the *exact* reason it was being removed, but now it's a monkey-patched array which at least doesn't leak memory when using together with the reloader (were there more problems with this?). I really think we need this, since there's no guaranty that only

Re: Camping::Apps returns!

2008-08-28 Thread Magnus Holm
for it ? Cheers, zimbatm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list -- Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org

Re: Camping::Apps returns!

2008-08-29 Thread Magnus Holm
in the Camping::Reloader. Cheers, zimbatm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list -- Magnus Holm ___ Camping-list mailing list Camping-list

Let's get this done, please :-)

2008-10-27 Thread Magnus Holm
for a release. Both cleaning up some part in the current docs and write some sort of how-to-switch-to-2.0. And the wiki needs some work too! And _why: we're actually waiting for you. I know you've given this project to the community, but you can't just disappear like that :-( -- Magnus Holm

Re: Hum... What's wrong with me ?

2008-11-12 Thread Magnus Holm
Huh? I just pasted that code, ran camping test.rb and it worked just like expected: Camping say Hello World!... -- Magnus Holm On Wed, Nov 12, 2008 at 6:29 PM, Eric Mill [EMAIL PROTECTED] wrote: You want def get render :index, :hello = Hello World! end in your view. Unlike Rails

Re: Mosquito for bug-free Camping now works with v.2

2008-11-23 Thread Magnus Holm
Awesome! I've already thought of doing it myself, but I'm way to lazy! Very nice, indeed! Magnus Holm On Sun, Nov 16, 2008 at 20:56, julik [EMAIL PROTECTED] wrote: Hello everyone! Just a quick heads-up - ppplz willing to use Mosquito for testing Camping 2 can track my Mosquito trunk

Re: My Camping clone has broken the 4K barrier. ;-)

2008-12-04 Thread Magnus Holm
Well done, but I thought Perl would do better... //Magnus On 4. des.. 2008, at 10.37, John Beppu [EMAIL PROTECTED] wrote: Behold! http://gist.github.com/31363 4004 bytes! The non-obfuscated version can be found at: http://github.com/beppu/squatting/tree/master --beppu PS: I'm not

I CAN HAZ 3K FRAIMWURK?

2009-01-23 Thread Magnus Holm
/judofyr/camping/commit/c55001f After synchronizing camping.rb and camping-unabridged.rb, camping.rb ended up at 2947 and we have now passed the 3k limit :D Any thoughts? There's still missing a lot of documentation and I guess we should add some tests too. //Magnus Holm

H with indifferent access

2009-01-24 Thread Magnus Holm
want it: class H Hash i='def []!(k,v)Symbol===k ?self[k.to_s]!v:super end;' eval i.tr('!','=')+i.tr('!,v','') end //Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Do we still need to be alert when on SQLite3?

2009-01-24 Thread Magnus Holm
Anyone knows if we still need to follow the instructions at http://web.archive.org/web/20080113055731/code.whytheluckystiff.net/camping/wiki/BeAlertWhenOnSqlite3, or if the stable release is good enough? //Magnus Holm ___ Camping-list mailing list

Re: H with indifferent access

2009-01-24 Thread Magnus Holm
Doh, the snippet I wrote was actually really stupid. Forgot we can safely call super without thinking of recursive calls. What do you guys think? Is it worth it? Method access won't go away, and Mash was just an experiement; I don't want to add another dependency on Camping. //Magnus Holm On Sat

Re: Release?

2009-02-10 Thread Magnus Holm
Hm... I've always thought 1.5 == 1.5.180... Well, only _why has access to the project, so there's not so much we can do :-( //Magnus Holm On Tue, Feb 10, 2009 at 18:24, Julik Tarkhanov julian.tarkha...@gmail.comwrote: On Feb 10, 2009, at 8:41 AM, Magnus Holm wrote: Yes, we should release

Re: Release?

2009-02-12 Thread Magnus Holm
guys think? Yeah, and I'm going to write a changelog with all the new cool stuff :-) //Magnus Holm On Thu, Feb 12, 2009 at 07:00, Jenna Fox bluebe...@creativepony.com wrote: Yay little wheels! Okay, first task! Whatever Magnus has right now, lets call it 2.0 and release it everywhere! We can

Getting ready for release

2009-02-14 Thread Magnus Holm
of these things? Remember, I'm not _why ;-) //Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: hi all!

2009-03-22 Thread Magnus Holm
to do with your code. Just post here if you're stuck and we'll figure out :-) If don't want to upgrade, you can keep using the old version of Camping by placing this at the top of the file: require 'rubygems' gem camping, =1.5.180 require 'camping' Good luck, and have fun with Camping! //Magnus

Re: Rack::Lint::LintError with latest camping and rack

2009-03-29 Thread Magnus Holm
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.tarkha...@gmail.comwrote: On 29 Mar 2009, at 07:06, Garret Buell wrote: Would we gain anything

Re: camping-test error: undefined method `fixtures'

2009-05-03 Thread Magnus Holm
I've pushed out a fix now. Could you verify it? //Magnus Holm On Sat, May 2, 2009 at 22:04, Mikkel Refsgaard Bech mik...@refsgaardbech.dk wrote: Hi Trying to use camping-test with my camping app but I get an error: undefined method `fixtures' The error can be reproduced by using

Re: camping-test error: undefined method `fixtures'

2009-05-07 Thread Magnus Holm
That sounds like a good idea. I've figured out one way to do cookies, but still need to find a way to handle sessions. Pushing later when I've come up with something :-) //Magnus Holm On Wed, May 6, 2009 at 22:28, Mikkel Refsgaard Bech mik...@refsgaardbech.dk wrote: On 05/05/2009, at 22.49

Re: sqlite3 connection problem

2009-05-19 Thread Magnus Holm
is loaded (so yes, you still have to call this yourself). //Magnus Holm On Mon, May 18, 2009 at 16:35, Dave Everitt dever...@innotts.co.uk wrote: Many attempts (3 days now) to get even a single sqlite3 example running... I've got a little further by creating the database file from the sqlite3

Re: using ActiveRecord::Validations::ClassMethods

2009-05-20 Thread Magnus Holm
I'm a little rusty on AR at the moment, but I think it looks something like this: In the controller: if @user.valid? # everything is fine else # ops! @user.errors contains the errors end //Magnus Holm On Wed, May 20, 2009 at 19:43, David Susco dsu...@gmail.com wrote: Can ActiveRecord

Re: using redirect with a mongrel server behind apache

2009-05-20 Thread Magnus Holm
It works, but it's a little weird Camping can't detect it itself. Anyway, the most important thing is that it works :-) //Magnus Holm On Wed, May 20, 2009 at 19:53, David Susco dsu...@gmail.com wrote: I ended up overwriting the redirect method with this: def redirect *a r(302

Re: using ActiveRecord::Validations::ClassMethods

2009-05-21 Thread Magnus Holm
params is simply Rails' version of @input. If you name your keys user[id] and user[name] in the HTML, then @input.user should contain a Hash like { 'id' = ..., 'name' = ... } (maybe the keys are Symbols; I don't remember at the moment) //Magnus Holm On Thu, May 21, 2009 at 15:50, David Susco

Re: Camping tutorials for education?

2009-06-09 Thread Magnus Holm
agree on how to organize it. 6. Picnic While I haven't been to take a proper look at it, I think it's a very cool idea. Keep up the good work :-) //Magnus Holm On Tue, Jun 9, 2009 at 12:35, Dave Everitt dever...@innotts.co.uk wrote: I'm planning to use Camping to teach the basics

The D-word

2009-06-09 Thread Magnus Holm
and HTTP/REST to how to use service-overrides or middlewares. It would be really nice if this could be a clean, short and concise guide to both Ruby and web development. What'd you think? What do you miss most from the current (almost non-existing) documentation? //Magnus Holm

Re: The D-word

2009-06-09 Thread Magnus Holm
the book/readme/api. It definitely needs to be cleaned up a lot, but I guess I can push it out at a branch when I get back to my computer. //Magnus Holm On Tue, Jun 9, 2009 at 19:30, Dave Everitt dever...@innotts.co.uk wrote: I'm quite good at clear an understandable English (and editing the work

Re: Release?

2009-06-10 Thread Magnus Holm
Oh, sorry. I totally forgot about this. Are we absolutely sure that 1.5.180 is stable enough to be pushed out to Rubyforge? //Magnus Holm On Tue, Feb 10, 2009 at 19:24, Julik Tarkhanov julian.tarkha...@gmail.comwrote: On Feb 10, 2009, at 8:41 AM, Magnus Holm wrote: Yes, we should release

Re: Release?

2009-06-11 Thread Magnus Holm
Totally right :-) It's released now... //Magnus Holm On Thu, Jun 11, 2009 at 01:12, Julik Tarkhanov julian.tarkha...@gmail.comwrote: On 10 Jun 2009, at 23:49, Magnus Holm wrote: Oh, sorry. I totally forgot about this. Are we absolutely sure that 1.5.180 is stable enough to be pushed out

Re: Camping sessions issue (and fix?) when mounting multiple apps

2009-10-18 Thread Magnus Holm
be extended with more options if needed. What do you think? //Magnus Holm On Sun, Oct 18, 2009 at 19:59, Jonathan Hickford jonathan.hickford+camp...@gmail.com wrote: Hi all, Not sure where best to raise this (github issues?) but I'm seeing an issue with the cookie sessions in camping 2.0

Re: What now?

2009-10-19 Thread Magnus Holm
http://imgur.com/7gpQ4.png //Magnus Holm On Mon, Oct 19, 2009 at 22:44, Jenna Fox bluebe...@creativepony.com wrote: Yeah, and besides, camping is not a business, it is an open source project of much niftiness. We do not need SEO, it does in fact not especially effect us how many people use

Re: Camping sessions issue (and fix?) when mounting multiple apps

2009-11-02 Thread Magnus Holm
Okay, I think we're actually fine by setting :path = / by default. If you want anything different, you should use use Rack::Session::Cookie yourself. //Magnus Holm On Mon, Oct 19, 2009 at 19:14, Jonathan Hickford jonathan.hickford+camp...@gmail.com wrote: Hi, I'd be inclined to agree

Re: Camping book

2009-11-02 Thread Magnus Holm
to fix it as soon as possible. //Magnus Holm On Mon, Nov 2, 2009 at 01:22, Dave Everitt dever...@innotts.co.uk wrote: I added some basic material to the GitHub Camping Wiki (new pages):  http://wiki.github.com/camping/camping ...because I'm starting with a vanilla OS X Leopard install (new

Re: is there a way to configure line breaks in markaby output?

2009-11-02 Thread Magnus Holm
I think this should do it: Camping.goes :Nuts Nuts::Mab.set(:indent, 2) You should probably only use it in development, because I think it's pretty slow. //Magnus Holm On Mon, Nov 2, 2009 at 18:57, David Susco dsu...@gmail.com wrote: Hi all, Instead of having the following: def

Re: Camping book

2009-11-05 Thread Magnus Holm
if needed :-) //Magnus Holm On Thu, Nov 5, 2009 at 17:50, Dave Everitt dever...@innotts.co.uk wrote: Okay. After 3-4 intensive days I now know Git well enough to go. Today I cloned the camping repo and grepped for the issues I spotted before but it seems they're fixed. So only corrected a minor

Re: Camping on the Ruby Application Archive

2009-11-05 Thread Magnus Holm
!) //Magnus Holm On Tue, Nov 3, 2009 at 13:59, Dave Everitt dever...@innotts.co.uk wrote: Camping on the RAA is frozen at 1.4: http://raa.ruby-lang.org/project/camping/ If no-one has access I could contact raa-ad...@ruby-lang.org and send updated info, but (at present for the 'To install' part

Re: Created a small instrumentation NewRelic plugin for Camping controllers

2010-01-02 Thread Magnus Holm
definitely give NewRelic a try since the Bronze edition comes for free. Philippe -- //Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: Created a small instrumentation NewRelic plugin for Camping controllers

2010-01-03 Thread Magnus Holm
Wouldn't it be possible to simply use http://pastie.textmate.org/private/8bnszgdfkkgdlorzncgnww? //Magnus Holm On Thu, Dec 31, 2009 at 03:32, Philippe Monnet r...@monnet-usa.com wrote: After a bit over a day of both looking at the way NewRelic implemented their plugin for Rack and Sinatra

Re: Broken Camping (on Dreamhost)

2010-01-20 Thread Magnus Holm
That's weird… First of all, could you update Rack to 1.1 and try with that version? If it's still broken, I think this monkey-patch should do it: class Rack::Request def params self.GET.update(self.POST) rescue EOFError, Errno::ESPIPE = e self.GET end end // Magnus Holm On Thu

Re: gems.judofyr.net 404

2010-01-23 Thread Magnus Holm
And it's back up again! I'll try to get stuff.judofyr.net/camping-docs working too… // Magnus Holm On Sat, Jan 23, 2010 at 21:12, Dave Everitt dever...@innotts.co.uk wrote: I noticed today that this: gem install camping --source http://gems.judofyr.net has broken, so wanted to update

Re: going into production, a few questions

2010-02-19 Thread Magnus Holm
sure what's best… // Magnus Holm On Fri, Feb 19, 2010 at 20:59, David Susco dsu...@gmail.com wrote: I have a few camping projects that are about to go into production in a few weeks, just picking your brains to see if I can add some robustness. What's the best way to catch any Camping Problem

Re: sending data/overriding response headers?

2010-03-03 Thread Magnus Holm
@headers['X-Sendfile'] = file @headers['Content-Type'] = Rack::Mime.mime_type(File.extname(file)) + ; charset=utf-8 If you ever need to send custom headers, just use the @headers hash. // Magnus Holm On Wed, Mar 3, 2010 at 16:43, David Susco dsu...@gmail.com wrote: Hey guys, A user

Re: sending data/overriding response headers?

2010-03-03 Thread Magnus Holm
: @headers['Content-Disposition'] = 'attachment; filename=table.csv' // Magnus Holm On Wed, Mar 3, 2010 at 17:04, Julik Tarkhanov julian.tarkha...@gmail.comwrote: On 3 mrt 2010, at 16:43, David Susco wrote: Is there something similar built into Camping? Before it was so that you could

Re: Are there existing sitemap generators for Camping?

2010-03-13 Thread Magnus Holm
Cool. We'll have to find a place on the wiki for these things :-) Couldn't you also figure out SITE_BASE_URL in GoogleSiteMap? @request.url.gsub(/sitemap.xml, ) or something? // Magnus Holm On Sat, Mar 13, 2010 at 18:21, Philippe Monnet r...@monnet-usa.com wrote: Since I could not find one

Re: restful camping with reststop

2010-03-23 Thread Magnus Holm
the problems you faced. We still have 1k left. Don't hurry, though. Let's get 2.0 out first. // Magnus Holm On Tue, Mar 23, 2010 at 16:07, Matt Zukowski m...@roughest.net wrote: I actually have a reststop app up and running fine with Camping 2.0 (check out Taskr at http://github.com/zuk/taskr). Tthe

Re: What now?

2010-03-23 Thread Magnus Holm
2.0 apps could do a gem install camping --pre and make sure everything works. If everything seems fine we can release it :) // Magnus Holm On Tue, Mar 23, 2010 at 04:16, Philippe Monnet r...@monnet-usa.com wrote: I like the idea of the site being built on Camping and combining mini-apps

Re: restful camping with reststop

2010-03-23 Thread Magnus Holm
@env['REQUEST_METHOD'] is the HTTP method send by the client, @method is the method (in lowercase) Camping is going to run (r404 for 404 etc.) // Magnus Holm On Tue, Mar 23, 2010 at 17:01, Matt Zukowski m...@roughest.net wrote: Hey Magnus, while we have your attention, in 2.0 how do I get

Re: Camping 2.0.RC0

2010-04-07 Thread Magnus Holm
Oh, I totally forgot about that! Yes, I agree that this would be nice to have at github.com/camping. Should I fork Matt's repo or create a new one? // Magnus Holm On Wed, Apr 7, 2010 at 19:18, Matt Zukowski m...@roughest.net wrote: Hey Philippe, thanks for that. I've gone ahead and created

Camping 2.1: Tests

2010-04-12 Thread Magnus Holm
works as expected. The apps should be ran through Camping::Server, and the tests should use Net::HTTP so we test the whole stack. Anyone wants to give it a try, or have any other ideas? // Magnus Holm ___ Camping-list mailing list Camping-list

Camping 2.1: Rackification

2010-04-12 Thread Magnus Holm
becomes the Ruby-version of HTTP. Too dangerous (aka. it would swallow regular NoMethorError) or possible? // Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Camping 2.1: Tilt integration

2010-04-12 Thread Magnus Holm
. // Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Camping 2.1: Easier to extend

2010-04-12 Thread Magnus Holm
the code in the file, and when you later call `App.needs :Foo` it fetches the file again and replaces Camping with App. Not perfect, but at least it's something. I'll have to try to get RESTstop using this technique to see how it works... Any other ideas? Comments? // Magnus Holm

Camping 2.1: Making migrations less sucky

2010-04-12 Thread Magnus Holm
class Page Base t.string :title t.text :content t.timestamps end end But we still want to support regular migrations (in some way at least). See the issue for more examples/comments. // Magnus Holm ___ Camping-list mailing list Camping-list

Re: Camping 2.1: Tests

2010-04-13 Thread Magnus Holm
Mosquito tests the app from within the same process. I think it'd make more sense to have the tests run over HTTP. // Magnus Holm On Tue, Apr 13, 2010 at 02:00, Philippe Monnet r...@monnet-usa.com wrote: Did not know about WebRat but it seems pretty compelling. I had meant to look

Try Camping!

2010-04-22 Thread Magnus Holm
Here's my proposal for Ruby Summer of Code: http://github.com/judofyr/try-camping // Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Changing render semantics?

2010-04-24 Thread Magnus Holm
easily switch to this new `render` without breaking code. // Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Aprilfest

2010-04-29 Thread Magnus Holm
#method_defined? instead of Class#instance_method rescue nil * Fix bug in rake diff // Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: Proposal for optional compilation and caching of Tilt templates

2010-05-08 Thread Magnus Holm
Thanks for testing it out ;) I agree: we can't cache templates in development and you shouldn't need to set an option for that, however we also want Camping to be speedy out-of-box. What about applying your patch, but also make bin/camping set :dynamic_templates to true if it's not set already?

Re: Camping on Ruby 1.9.1 on Win32

2010-05-20 Thread Magnus Holm
Hey Dave, Yeah, Camping should work on both 1.9.1 and Windows, but I haven't tested it in a while. Try it out, and please let us know if there's something that doesn't work :) // Magnus Holm On Thu, May 20, 2010 at 02:47, David Ray djr@gmail.com wrote: Hi all, Can I go camping

Re: First time and first error

2010-06-08 Thread Magnus Holm
Hey Raimon, Try a `sudo gem update --system` first to upgrade to the latest RubyGems // Magnus Holm On Tue, Jun 8, 2010 at 10:59, Raimon Fernandez co...@montx.com wrote: On 8jun, 2010, at 09:18 , Raimon Fernandez wrote: Hi again, I'm trying to install Camping on my OS X but I'm getting

Re: First time and first error

2010-06-08 Thread Magnus Holm
I believe Rack::Server was introduced in one of the later Rack versions. Looks like I forgot to update the version dependency. Are you able to install the latest rack (gem install rack), or is rubygems.org fully down? // Magnus Holm On Tue, Jun 8, 2010 at 12:25, Raimon Fernandez co

Re: First time on Camping

2010-06-17 Thread Magnus Holm
a Pastie with all the code: http://pastie.org/1008983 (Should work on any version of Camping). // Magnus Holm On Tue, Jun 8, 2010 at 08:25, Raimon Fernandez co...@montx.com wrote: hi list, This is my first time here, my first time reading seriously something about Camping. I need to create

Re: First time on Camping

2010-06-18 Thread Magnus Holm
solution :-) // Magnus Holm On Fri, Jun 18, 2010 at 11:09, Raimon Fernandez co...@montx.com wrote: On 17jun, 2010, at 21:04 , Magnus Holm wrote: That's (hopefully) the simplest way to generate XML with Camping. You still need to create a model to store/retrieve the data. Before we can

Re: First time on Camping

2010-06-18 Thread Magnus Holm
. You would probably want to render some XML # so the client knows something went wrong. There was an exception in #{klass}.#{method}: #{exception} end end // Magnus Holm On Fri, Jun 18, 2010 at 13:23, Raimon Fernandez co...@montx.com wrote: buf, now I'm lost ... :-)) no, really

Re: First time on Camping

2010-06-18 Thread Magnus Holm
nothing serious at all, just the example from pastie. is because I'm using the development mode instead of production, like in RoR ? thanks again ! regards, r. On 18jun, 2010, at 12:33 , Magnus Holm wrote: Yeah, people always get a little confused because you don't need to define your

Re: First time on Camping

2010-06-18 Thread Magnus Holm
This shouldn't be a problem, because that's the way to add non-ASCII characters to XML documents. A proper XML parser should handle it... // Magnus Holm (from my phone) On Friday, June 18, 2010, Raimon Fernandez co...@montx.com wrote: Hi again, I know this is more related to builder than

Re: First time on Camping

2010-06-19 Thread Magnus Holm
I think the problem is that Builder don't know that you're using UTF-8, so it's just doing the safest thing and just escapes everything. But this shouldn't really be a problem, since the parser should handle it and treat every #225; as á. // Magnus Holm On Sat, Jun 19, 2010 at 15:53, Raimon

Re: Speed issue

2010-06-21 Thread Magnus Holm
Okay, I was just wondering since if you run the app with the thin command, you won't get the reloader. So apparently the issue exists only with the reloader+Mongrel... On Monday, June 21, 2010, Raimon Fernandez co...@montx.com wrote: On 21jun, 2010, at 12:56 , Magnus Holm wrote: What if you

Re: Speed issue

2010-06-21 Thread Magnus Holm
an example app which has the speed issues on your machine? // Magnus Holm On Mon, Jun 21, 2010 at 16:10, Raimon Fernandez co...@montx.com wrote: On 21jun, 2010, at 13:49 , Magnus Holm wrote: Okay, I was just wondering since if you run the app with the thin command, you won't get the reloader. So

Re: versioning alternatives

2010-06-29 Thread Magnus Holm
This seems to be the migration that vestal_versions generates: http://github.com/laserlemon/vestal_versions/blob/master/generators/vestal_versions/templates/migration.rb. I assume you can just copy that into your app (just replace ActiveRecord::Migration with V 1.1). // Magnus Holm On Tue, Jun

Camping 2.1 and whywentcamping.com

2010-06-30 Thread Magnus Holm
own too. // Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Access to github.com/camping

2010-06-30 Thread Magnus Holm
you would like to host under github.com/camping, just ask on the mailing list and we'll create a repo for you. (This should be added to the wiki in the near future) // Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http

  1   2   3   >