Re: First time on Camping

2010-06-18 Thread Magnus Holm
Excellent! Camping uses Rack, so it should be very simple to get it running on any Ruby web server. Just create a config.ru like this: require 'list' List.create if List.respond_to?(:create) # call List.create if it exists run List # and run the app! Then you can start it with: `thin

Re: First time on Camping

2010-06-18 Thread Magnus Holm
Oh, and I also have the speed issue! That's definitely a bug. I'll have a look at it later... On Friday, June 18, 2010, Raimon Fernandez co...@montx.com wrote: buf, now I'm lost ... :-)) no, really, thanks for that info, now I have working as I want ... :-) I've tested and created a new

Re: First time on Camping

2010-06-18 Thread Raimon Fernandez
Hi again, I know this is more related to builder than to camping, but not sure where to ask for it ... :-) My app receives .xml file from some different sources, and all of them, except the camping one, are formatted like this: ?xml version=1.0 encoding=UTF-8? person nameJim

Re: First time on Camping

2010-06-18 Thread Dave Everitt
Hmm - quickly: in similar setups this usually requires UTF-8 to be specified throughout Camping(?), the database, within your files (and any markup files they generate), and (sometimes) also on the server. Then you can just use/store/retrieve the characters as they are - Dave E The main

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 to

Re: First time on Camping

2010-06-17 Thread Magnus Holm
Hey Raimon, I see that you've been experimenting with Camping and Reststop lately, and just thought I should chime in a bit. You definitely don't *need* Reststop in order to achieve what you want, so it might be a good idea to just leave Reststop until it gets a little more robust. Let's see how

Re: First time on Camping

2010-06-17 Thread Matt Zukowski
Something's not right with your rubygems install maybe try `gem update --system` first? On Tue, Jun 8, 2010 at 3:33 PM, Raimon Fernandez co...@montx.com wrote: On 8jun, 2010, at 21:18 , David Susco wrote: Is the hoe gem installed? no, the same error as before: Last login: Tue Jun 8

Re: Where I can find Reststop-based blog.rb?

2010-06-09 Thread Raimon Fernandez
Hi Bartosz, On 8jun, 2010, at 20:31 , Bartosz Dziewoński wrote: It should come with the gem, in examples directory. You can also find it here: http://github.com/camping/camping/blob/master/examples/blog.rb This version doesn't use reststop. The one that is included in the examples, it does,

Re: Where I can find Reststop-based blog.rb?

2010-06-09 Thread Philippe Monnet
Hi Raimon, I did a quick test this morning and it looks like some change in Camping after version 2.0 impacted RESTstop. By reverting to camping-2.0 I was able to run the blog example. I will need to investigate what the issue is. Also I realized that a couple things need to be done: a)

Re: Where I can find Reststop-based blog.rb?

2010-06-09 Thread Philippe Monnet
Hi Matt, I just forked restr and added cookie support. Could you pull my changes and republish the gem? On 6/9/2010 10:21 AM, Matt Zukowski wrote: hey Philippe, thanks for raking care of the support on this. I've been badly neglecting my camping projects lately due to time constraints...

Re: Where I can find Reststop-based blog.rb?

2010-06-09 Thread Philippe Monnet
Matt, Do you have the gemspec file for RESTStop? Could you add it to GitHub and I can update the version number and push it to RubyGems? I figured out what the issue was. With Camping 2.0.392 (Tilt support), the render method looks for view methods in either the Views module or in the views

Re: Where I can find Reststop-based blog.rb?

2010-06-09 Thread Philippe Monnet
Raimon, I have committed a bunch of code fixes and added a wiki page to reststop on GitHub. If you want to upgrade you will need to do the following: 1. Get the latest source (we'll update the gem soon) 2. Use the new blog.rb 3. If you have customized it or created your own service

Re: First time and first error

2010-06-08 Thread Raimon Fernandez
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 some errors: MacBook-ProII-2:~ montx$ gem -v 1.3.5 MacBook-ProII-2:~ montx$ sudo gem install camping WARNING: RubyGems 1.2+ index not found for:

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 Dave Everitt
Hi Raimon I'm having the same problem with rubygems.org - won't even load in a browser. In February there was a bit of a change: http://update.gemcutter.org/2010/02/20/rubygems-org-move-complete.html Fro current status see the tweets here: http://twitter.com/gemcutter and Magnus' Temporary

Re: First time and first error

2010-06-08 Thread Raimon Fernandez
Hi Dave, On 8jun, 2010, at 11:52 , Dave Everitt wrote: Hi Raimon I'm having the same problem with rubygems.org - won't even load in a browser. ok, In February there was a bit of a change: http://update.gemcutter.org/2010/02/20/rubygems-org-move-complete.html Fro current status see

Re: First time and first error

2010-06-08 Thread Raimon Fernandez
On 8jun, 2010, at 11:52 , Dave Everitt wrote: Otherwise, get the bleeding edge version: sudo gem install camping --source http://gems.judofyr.net/ ok, I want to focus on Camping so I've installed the edge version without any problems :-) the problem is when I try to execute some example:

Re: First time and first error

2010-06-08 Thread Raimon Fernandez
On 8jun, 2010, at 11:34 , Magnus Holm wrote: Hey Raimon, Try a `sudo gem update --system` first to upgrade to the latest RubyGems // Magnus Holm MacBook-ProII-2:~ montx$ sudo gem update --system Password: Updating RubyGems Nothing to update MacBook-ProII-2:~ montx$ thanks, r.

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

Re: First time and first error

2010-06-08 Thread Raimon Fernandez
On 8jun, 2010, at 12:30 , Magnus Holm wrote: 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? I think is fully down

Re: First time and first error

2010-06-08 Thread Philippe Monnet
Hi Raimon, Sounds like maybe you don't have Rack. Do you have the following gem installed? - rack (1.1.0) - markaby (0.5) [will not work with a higher version] - activerecord (any version) - activesupport (any version) If not gem install them and let us know. Philippe On 6/8/2010 4:25

Re: First time and first error

2010-06-08 Thread Raimon Fernandez
Hi Philippe, On 8jun, 2010, at 12:53 , Philippe Monnet wrote: Hi Raimon, Sounds like maybe you don't have Rack. Do you have the following gem installed? - rack (1.1.0) - markaby (0.5) [will not work with a higher version] - activerecord (any version) - activesupport (any

Re: First time and first error

2010-06-08 Thread Raimon Fernandez
Hi David, On 8jun, 2010, at 15:38 , Dave Everitt wrote: Hi Raimon Github is no longer maintaining this but the gems are still there, so try: --source http://gems.github.com do you mean using like this ? MacBook-ProII-2:~ montx$ sudo gem install rack --source http://gems.github.com

Re: First time on Camping

2010-06-08 Thread David Susco
Camping with reststop ought will make serving the xml files easy enough. The example on github ought to get you started: http://github.com/camping/reststop Dave On Tue, Jun 8, 2010 at 2:25 AM, Raimon Fernandez co...@montx.com wrote: hi list, This is my first time here, my first time reading

Re: First time and first error

2010-06-08 Thread Dave Everitt
Hi Raimon I did mean that, but the rubygems site is back up... and it looks like they're making progress as the error messages are changing. So maybe try again tomorrow? Dave Hi David, On 8jun, 2010, at 15:38 , Dave Everitt wrote: Hi Raimon Github is no longer maintaining this but

Re: First time and first error

2010-06-08 Thread Raimon Fernandez
Hi David, On 8jun, 2010, at 16:59 , Dave Everitt wrote: Hi Raimon I did mean that, but the rubygems site is back up... and it looks like they're making progress as the error messages are changing. ok So maybe try again tomorrow? If I have to wait, I'll wait ... what can I do ? :-) I

Re: First time on Camping

2010-06-08 Thread Raimon Fernandez
Hi Dave, On 8jun, 2010, at 17:04 , David Susco wrote: Camping with reststop ought will make serving the xml files easy enough. The example on github ought to get you started: http://github.com/camping/reststop thanks ! reststop is also a gem for camping ? regards, r.

Re: First time and first error

2010-06-08 Thread Raimon Fernandez
Hi Dave, On 8jun, 2010, at 17:47 , Dave Everitt wrote: Raimon apologies, rack is not listed in the Github gems (http://gems.github.com/list.html). BUT (still trying to get around the rubygems.org gem server issues and get you started with Camping) you can try this mirror: sudo gem

Re: First time and first error

2010-06-08 Thread Dave Everitt
Hi Raimon - welcome, glad we got around the rubygems.org fail :-) - Dave Everitt sudo gem install rack --source http://chneukirchen.org/releases/gems/ ok, installed and running, now I'm a Camper!!! :-) Sure I'll come back here with more questions about Camping ...

Re: First time on Camping

2010-06-08 Thread David Susco
I don't believe the gem has been updated to include Matt's or Philippe's latest changes. You could clone it from GitHub though and rake and install it yourself. Dave On Tue, Jun 8, 2010 at 11:55 AM, Raimon Fernandez co...@montx.com wrote: Hi Dave, On 8jun, 2010, at 17:04 , David Susco wrote:

Re: First time and first error

2010-06-08 Thread Raimon Fernandez
On 8jun, 2010, at 18:19 , Dave Everitt wrote: Hi Raimon - welcome, thanks! glad we got around the rubygems.org fail :-) hey, I need more workarounds . :-) I'm playing with Camping and the introduction found in http://camping.rubyforge.org/book/02_getting_started.html Now I'm

Re: First time and first error

2010-06-08 Thread Dave Everitt
Hi Raimon don't know if I can just clone the git repository of restr and install it using ruby setup.rb that seems the best way, as David Susco suggested: I don't believe the gem has been updated to include Matt's or Philippe's latest changes. You could clone it from GitHub though and

Where I can find Reststop-based blog.rb?

2010-06-08 Thread Raimon Fernandez
Hi again, In Reststop docs they say a good example is the blog.rb, but their link is broken. Where I can find it ? thanks, regards, raimon ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: First time on Camping

2010-06-08 Thread Raimon Fernandez
On 8jun, 2010, at 18:43 , David Susco wrote: I don't believe the gem has been updated to include Matt's or Philippe's latest changes. You could clone it from GitHub though and rake and install it yourself. I think it requieres 'hoe' and I can't install without rubygems working or once

Re: Where I can find Reststop-based blog.rb?

2010-06-08 Thread Bartosz Dziewoński
2010/6/8, Raimon Fernandez co...@montx.com: In Reststop docs they say a good example is the blog.rb, but their link is broken. Where I can find it ? It should come with the gem, in examples directory. You can also find it here: http://github.com/camping/camping/blob/master/examples/blog.rb

Re: First time on Camping

2010-06-08 Thread David Susco
Is the hoe gem installed? Dave On Tue, Jun 8, 2010 at 1:01 PM, Raimon Fernandez co...@montx.com wrote: On 8jun, 2010, at 18:43 , David Susco wrote: I don't believe the gem has been updated to include Matt's or Philippe's latest changes. You could clone it from GitHub though and rake and

Re: First time on Camping

2010-06-08 Thread Raimon Fernandez
On 8jun, 2010, at 21:18 , David Susco wrote: Is the hoe gem installed? no, the same error as before: Last login: Tue Jun 8 18:43:33 on ttys002 MacBook-ProII-2:~ montx$ sudo gem install hoe Password: ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) SocketError:

Re: Where I can find Reststop-based blog.rb?

2010-06-08 Thread Raimon Fernandez
On 8jun, 2010, at 20:31 , Bartosz Dziewoński wrote: 2010/6/8, Raimon Fernandez co...@montx.com: In Reststop docs they say a good example is the blog.rb, but their link is broken. Where I can find it ? It should come with the gem, in examples directory. oughhh, you're right, it's

camping-oauth is now available

2010-06-07 Thread Philippe Monnet
I finally put together the final touches on the first version of the camping-oauth gem. It allows you to make a Camping web app into an OAuth provider. It leverages ruby-oauth and the oauth-plugin. An example of a use case is a web service built with Camping (using json/xml with/without REST).

filtering_camping is now available as a gem

2010-05-31 Thread Philippe Monnet
To make it easy for people to use the CampingFilters module available on GitHub (http://github.com/judofyr/filtering_camping), I have created and published a corresponding gem with Magnus' approval. You can find it at: http://rubygems.org/gems/filtering_camping

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 with

Camping on Ruby 1.9.1 on Win32

2010-05-19 Thread David Ray
Hi all, Can I go camping with ruby 1.9.1 on win32? Many thanks, Dave. ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Published a blog post on how to use MongoDB with Camping

2010-05-13 Thread Philippe Monnet
If you are interested in trying out MongoDB from a Camping perspective: http://bit.ly/a8jdzq I am curious about other folks using MongoDB too. - Philippe (@techarch) ___ Camping-list mailing list Camping-list@rubyforge.org

Re: Proposal for optional compilation and caching of Tilt templates

2010-05-09 Thread Philippe Monnet
I just made the changes and merged up to the main Camping branch: I am now setting the new :dynamic_templates option when you run the camping server (only). Magnus I did not rebuild the official gem yet. Maybe you could do that. On 5/8/2010 6:03 PM, Magnus Holm wrote: Thanks for testing it

Proposal for optional compilation and caching of Tilt templates

2010-05-08 Thread Philippe Monnet
I gave Magnus' excellent integration of Tilt a whirl today and really love it. It's also cool because you can match different types of templates at the same time (e.g. Markaby + HAML). I found that while prototyping it would be nice to not have Camping compile and cache Tilt templates. So I

Re: Changing render semantics?

2010-05-01 Thread Philippe Monnet
Got a chance today to verify all my apps and I am not using the multiple argument for of render. So go for it Magnus! :-) On 4/24/2010 4:39 PM, Magnus Holm wrote: I'm trying to integrate Tilt (for providing Haml etc. support), but are having some problems supporting both the previous `render`

Aprilfest

2010-04-29 Thread Magnus Holm
http://github.com/camping/camping/compare/4539baf...6347baf Latest changes in Camping: 1. There is now a Camping.options 2. Session now uses the Camping.options above 3. Fast Tilt integration (ERB/Haml support!) 4. Various changes gem install camping --source http://gems.judofyr.net/ Any

Re: Changing render semantics?

2010-04-25 Thread John Beppu
On Sat, Apr 24, 2010 at 3:39 PM, Magnus Holm judo...@gmail.com wrote: I guess the question is: Does anybody actually use `render` with multiple arguments (render :index, 1, 2)? If not, I guess we can easily switch to this new `render` without breaking code. I do not use the multi-argument

Changing render semantics?

2010-04-24 Thread Magnus Holm
I'm trying to integrate Tilt (for providing Haml etc. support), but are having some problems supporting both the previous `render` and this new `render`. Previous render: - loads Markaby when needed - Always wraps the layout - render :index # = Calls index() within Markaby - render :index, 1, 2

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

Re: Should we incorporate a filtering mechanism in controllers?

2010-04-19 Thread Dave Everitt
Philippe - dead simple for me. I was put off Rails a long time ago, which is how I landed on Camping - Dave Everitt Do people prefer something simple dead easy like filtering_camping? Or would people prefer something more like filters in Rails?

Should we incorporate a filtering mechanism in controllers?

2010-04-18 Thread Philippe Monnet
Last year I discovered filtering_camping http://github.com/judofyr/filtering_camping and I have been using it in my apps. As I am working on a OAuth Camping plugin (adapted from the OAuth Rails plugin), I was thinking of using filtering_camping. And that lead to the following questions? 1.

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 at

Camping 2.1: Tests

2010-04-12 Thread Magnus Holm
Wanted to highlight some of the issues we know have on github and get some discussion going. First up: Tests - http://github.com/camping/camping/issues#issue/15 Currently Camping doesn't have any automated tests. At all. Now, I'm not a testing freak, but I'm not _why either, so I believe we'll

Camping 2.1: Rackification

2010-04-12 Thread Magnus Holm
Rackification - http://github.com/camping/camping/issues#issue/3 I want to make Camping even more Rack-ish. Some ideas: 1. Make Camping::Server use Rack::Server 2. The dispatcher shouldn't care about the method Previously the dispatcher (Controllers.D) has taken a path and a method, and

Camping 2.1: Easier to extend

2010-04-12 Thread Magnus Holm
http://github.com/camping/camping/issues#issue/10 It's currently very hard to extend Camping, so I've been thinking of ways to make it easier without taking too many bytes. Here's a very simple approach: https://gist.github.com/75ecb81a3ae98b097f8a When you write `Camping.plugin :Foo` it stores

Camping 2.1: Making migrations less sucky

2010-04-12 Thread Magnus Holm
http://github.com/camping/camping/issues#issue/12 This is probably the most exciting issue: Making migrations less sucky. The fact that you'll have to do this to get started sucks: module Nuts::Models class Page Base end class BasicFields V 1.0 def self.up create_table

Re: Camping 2.1: Rackification

2010-04-12 Thread Philippe Monnet
#1 seems to make sense. I personally tend to use rackup anyway. #2 seems ok. #3 agreed with the dangerous override - how about http_method_missing instead? On 4/12/2010 8:32 AM, Magnus Holm wrote: Rackification - http://github.com/camping/camping/issues#issue/3 I want to make Camping even

Re: Camping 2.1: Tilt integration

2010-04-12 Thread Philippe Monnet
Tilt seems pretty cool based on quick glance at the site. This would give people a few more well-known options. On 4/12/2010 8:37 AM, Magnus Holm wrote: Tilt - http://github.com/camping/camping/issues#issue/18 Tilt integration (http://github.com/rtomayko/tilt) is a dead-simple way to support

Re: [ANN] Camping 2.0 - miniature rails for stay-at-home moms AND dads :-)

2010-04-09 Thread Philippe Monnet
Yippee! [cling cheers cling skål* *cling santé cling] Thanks Magnus for all the hard work bringing Camping to 2.0. _why must be proud! Philippe On 4/9/2010 8:47 AM, Magnus Holm wrote: require uri;require rack;class Object;def meta_def m,b;(classself;self end).send:define_method,m,b end

Re: [ANN] Camping 2.0 - minature rails for stay-at-home moms

2010-04-09 Thread John Beppu
Good job. ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: [ANN] Camping 2.0 - minature rails for stay-at-home moms

2010-04-09 Thread David Susco
Indeed, congratulations everyone. And thank you to all those who made the 199 commits. On Fri, Apr 9, 2010 at 12:14 PM, John Beppu john.be...@gmail.com wrote: Good job. ___ Camping-list mailing list Camping-list@rubyforge.org

Re: Camping 2.0.RC0

2010-04-08 Thread Matt Zukowski
Okay everything's been moved to camping/reststop. Any future commits on my part will go there. Philippe, I believe you have access too. Thanks Magnus! On Wed, Apr 7, 2010 at 6:57 PM, Matt Zukowski m...@roughest.net wrote: Magnus, create a new one and I'll delete my copy and fork off yours.

Re: Camping 2.0.RC0

2010-04-08 Thread Philippe Monnet
I just finished spot-testing my main web app (mySkillsMap) locally on 2.0 and things are looking good. So it sounds like we're going to be a go for 2.0! :-) On 4/7/2010 7:02 AM, Philippe Monnet wrote: Successfully tested the updated RESTstop restful blog too. Started to test my own app

Re: Camping 2.0.RC0

2010-04-07 Thread Mikkel Refsgaard Bech
Changed: @env.REQUEST_URI to @env['REQUEST_URI'] then all tests worked on my app. On Sat, Apr 3, 2010 at 10:23 PM, Magnus Holm judo...@gmail.com wrote: Ladies and gentlemen: gem install camping --prerelease (Look, no --source!) I'm not a big fan of betas/RCs, but this is a rather big

Re: Camping 2.0.RC0

2010-04-07 Thread Philippe Monnet
I tested 2 new apps I wrote to test OAuth so far with success. I sill have to test my main web app and the recent RESTstop blog app I had updated. On Sat, Apr 3, 2010 at 4:23 PM, Magnus Holmjudo...@gmail.com wrote: Ladies and gentlemen: gem install camping --prerelease (Look, no

Re: Camping 2.0.RC0

2010-04-07 Thread Philippe Monnet
Successfully tested the updated RESTstop restful blog too. Started to test my own app (mySkillsMap.com) locally but will need to continue tonight. On 4/7/2010 5:33 AM, Philippe Monnet wrote: I tested 2 new apps I wrote to test OAuth so far with success. I sill have to test my main web app and

Re: Camping 2.0.RC0

2010-04-07 Thread Matt Zukowski
Hey Philippe, thanks for that. I've gone ahead and created a github repo for reststop at https://github.com/zuk/reststop Your changes have been pushed up. I've also added you as a collaborator so you can freely commit to my copy of the repo. Next step is to create a gemspec for this and push it

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

Re: Camping 2.0.RC0

2010-04-07 Thread Philippe Monnet
Up to the two of you. On 4/7/2010 3:05 PM, Magnus Holm wrote: 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 Zukowskim...@roughest.net

Re: Camping 2.0.RC0

2010-04-07 Thread Matt Zukowski
Magnus, create a new one and I'll delete my copy and fork off yours. On Wed, Apr 7, 2010 at 5:05 PM, Magnus Holm judo...@gmail.com wrote: 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? //

Re: Camping 2.0.RC0

2010-04-05 Thread David Susco
No hiccups with my apps. Dave On Sat, Apr 3, 2010 at 4:23 PM, Magnus Holm judo...@gmail.com wrote: Ladies and gentlemen:     gem install camping --prerelease (Look, no --source!) I'm not a big fan of betas/RCs, but this is a rather big change and I want to make sure we release something

Re: restful camping with reststop

2010-03-27 Thread Matt Zukowski
Nicely done! Also glad you're using restr... seems like rest-client is getting all the love nowdays. I'm happy to start a full-fledged githup repo for reststop. Although maybe a better place for it would be the general 'camping' github account? Matt. On Fri, Mar 26, 2010 at 11:42 PM, Philippe

Re: What now?

2010-03-24 Thread Philippe Monnet
Having a new official release would be great especially since Sinatra published their 1.0 release yesterday. ;-) The new Rubyforge page would be nice but wouldn't a more marketing-centric site help increase adoption? On 3/23/2010 9:58 AM, Magnus Holm wrote: Indeed, but for now I think

Re: restful camping with reststop

2010-03-23 Thread Matt Zukowski
I actually have a reststop app up and running fine with Camping 2.0 (check out Taskr at http://github.com/zuk/taskr). Tthe catch is that it's a version of 2.0 that I forked about this time last year, and looking at the github graph, Magnus has committed a whole slew of changes since then. So

Re: restful camping with reststop

2010-03-23 Thread Magnus Holm
I find extending Camping apps to be quite easy, since it's all classes and modules, but I can understand that extending Camping itself can be difficult/weird. That said, I think a lot can be solved by defining #included and #extended. It would be great if you could tell us a bit exactly the

Re: What now?

2010-03-23 Thread Magnus Holm
Indeed, but for now I think http://stuff.judofyr.net/camping-docs/ (or, the URL would actually be camping.rubyforge.org when released) would be enough. I think we're pretty much ready for a release. If you'd like, I could mark HEAD as 2.0.rc1 and push it out to Gemcutter. Then you guys who have

Re: restful camping with reststop

2010-03-23 Thread Matt Zukowski
Hey Magnus, while we have your attention, in 2.0 how do I get access to e['REQUEST_METHOD'] inside the 'service' method? Trying to figure this out as we speak... On Tue, Mar 23, 2010 at 11:50 AM, Magnus Holm judo...@gmail.com wrote: I find extending Camping apps to be quite easy, since it's all

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: restful camping with reststop

2010-03-23 Thread Matt Zukowski
Okay got it... but as I look at this a bit more, the ridiculous things I had to do to make Reststop work (for Camping 1.0) are all coming back to me. As I recall, the root of all evil was Camping#goes. I had to override it in order to inject the Reststop code into Camping. Camping#qsp was the

Re: restful camping with reststop

2010-03-23 Thread Matt Zukowski
Alright I spent a few hours trying to see if I can make things work with 2.0. I was able to make some progress (mostly thanks to Magnus' help!) but ran out of time before I could get things runnings. Here's the result: http://gist.github.com/341555 I'm not sure when I will get a chance in the

Re: restful camping with reststop

2010-03-23 Thread Matt Zukowski
Sorry that link should be: http://gist.github.com/341555#file_reststop2.rb On Tue, Mar 23, 2010 at 3:49 PM, Matt Zukowski m...@roughest.net wrote: Alright I spent a few hours trying to see if I can make things work with 2.0. I was able to make some progress (mostly thanks to Magnus' help!)

Re: What now?

2010-03-22 Thread Philippe Monnet
I like the idea of the site being built on Camping and combining mini-apps and static content all integrated with jQuery for example. I am currently running two Camping 2.0 apps on Heroku and they work great. Hosting on Heroku would be also be convenient because of the ability to add Git

Re: restful camping with reststop

2010-03-22 Thread Philippe Monnet
Hi David, I had played with RESTstop on the old Camping maybe six months ago. I have now started to take a look at what the issues are about. So far I have found a few things like: In reststop.rb: - the service method needs to retrieve the REQUEST_METHOD using @env['REQUEST_METHOD'] -the

Re: What now?

2010-03-21 Thread Philippe Monnet
I was wondering how we can help with next steps? I keep seeing all the attention going to the Sinatra framework (and Rails of course) and would love to help more with promoting Camping. It would be great if one of our web designer / Camping friend could help create a catchy visual for the

Re: Are there existing sitemap generators for Camping?

2010-03-21 Thread Dave Everitt
For now, added to the wiki under 'Miscellaneous Camping links'. Be good to find a few more 'made with Camping' sites/apps to add to the list - anyone want to put up their app? - Dave Everitt Magnus Holm wrote: Cool. We'll have to find a place on the wiki for these things :-) Philippe

Re: What now?

2010-03-21 Thread Dave Everitt
Hi Philippe I am one of those Camping friends (although I've been too busy with clients just lately to do much). Although I just posted links to your Camping 'add-ons' to the wiki :-) I agree about Sinatra - from curiosity I've even dabbled with it myself (shame!), although it is nice

Re: Are there existing sitemap generators for Camping?

2010-03-13 Thread Philippe Monnet
Since I could not find one, I wrote a simple (and crude) Google sitemap generator - see http://gist.github.com/330973 After pasting the code in your app controllers module, you just need to customize 2 things: 1) the base url of your site: SITE_BASE_URL = http://www.myapp.com; 2) list the

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,

New blog post on NewRelic performance and monitoring instrumentation for Camping apps

2010-03-10 Thread Philippe Monnet
For those of you who are interested in implementing NewRelic http://www.newrelic.com/ performance management on your Ruby Camping site, I recently posted a blog post explaining how to do that. See http://blog.monnet-usa.com/?p=223. It relies on a NewRelic instrumentation plugin I wrote and that

Are there existing sitemap generators for Camping?

2010-03-08 Thread Philippe Monnet
When searching I have found a few Rails-specific sitemap generators but I was wondering if anyone new of a Camping-specific implementation? Philippe (techarch) ___ Camping-list mailing list Camping-list@rubyforge.org

Re: sending data/overriding response headers?

2010-03-03 Thread Magnus Holm
Sure, just make sure to enable X-Sendfile in Apache/Nginx, and then set it yourself: def get @headers['X-Sendfile'] = /full/path/to/file @headers['Content-Type'] = text/plain; charset=utf-8 end Or if you want Rack to figure out which Content-Type to send: file = /full/path/to/file

Re: sending data/overriding response headers?

2010-03-03 Thread Julik Tarkhanov
On 3 mrt 2010, at 16:43, David Susco wrote: Is there something similar built into Camping? Before it was so that you could return an IO object from your action and it would just work. Dunno if Camping 2 still supports this. A Content-Disposition header would be in order so that your

Re: sending data/overriding response headers?

2010-03-03 Thread Magnus Holm
In Camping 2 you can return an object which responds to #each and the server will then stream it to the client. If you want the file to trigger a download-box on the user, you'll have to send Content-Disposition as Julik mentioned. Something like this should work, although I'm not 100% sure:

going into production, a few questions

2010-02-19 Thread David Susco
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! /XXX not found errors that a user might see if they start typing URLs themselves? Ideally I'd just

Re: going into production, a few questions

2010-02-19 Thread David Susco
Thanks on the 404 stuff, that was easy. I'm going to stick with the reconnect = true until that is proving not to work. It's the easiest as it's a one liner addition to my yaml. Dave On Fri, Feb 19, 2010 at 3:13 PM, Magnus Holm judo...@gmail.com wrote: 404 on 1.5: module App::Controllers   

Re: I want to use camping 2.0

2010-02-05 Thread Dave Everitt
Hi - take a look here: http://stuff.judofyr.net/camping-docs/book/51_upgrading.html#from-15- to-20 DaveE what is the difference between the two version ( 1.5.180 and 2.0) ? ___ Camping-list mailing list Camping-list@rubyforge.org

gems.judofyr.net 404

2010-01-23 Thread Dave Everitt
I noticed today that this: gem install camping --source http://gems.judofyr.net has broken, so wanted to update the wiki at Github so visitors can get the latest version via gem? Dave Everitt ___ Camping-list mailing list

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 the

Broken Camping (on Dreamhost)

2010-01-20 Thread Garret Buell
Hello all, I'm running Camping 1.9.300 on DreamHost. Everything has been working great for quite some time, then recently, visiting the Camping app gives a 500 Internal Server Error. It seems as if something at DreamHost was upgraded and now everything is broken. Even the basic example Camping

<    3   4   5   6   7   8   9   10   11   12   >