Re: Installing Camping on ubuntu lucid

2010-08-03 Thread Matt Zukowski
I've always had issues on Ubuntu with the gem bin path not being added
properly to $PATH. It's frustrating that this hasn't been addressed. I
suspect there's a issue ticket sitting somewhere out there closed by a
grumpy maintainer claiming that additions to $PATH are against debian
policy, or some b.s. like that.

On Tue, Aug 3, 2010 at 6:03 AM, Raimon Fernandez  wrote:

> hi David,
>
> On 3ago, 2010, at 11:33 , Dave Everitt wrote:
>
> > Hi Raimon
> >
> > use gem intall rather than apt-get - see:
> >  http://wiki.github.com/camping/camping/installation
>
> yes, I know, this is how I've installed it.
>
>
> > BUT it seems you already have Camping 2.0 in your gem list, so what do
> you see when you run:
> >  camping -v
>
> nothing, it's not installed:
>
> mo...@lucid:~$ camping -v
> The program 'camping' is currently not installed.  You can install it by
> typing:
> sudo apt-get install camping
>
> > You might also want to look at your .bash_login (or .bash_profile etc.)
> PATH.
>
> the problem was that I was trying to add manually the PATH the gem camping,
> not the camping bin ...
>
> now it works manually:
>
> mo...@lucid:/var/lib/gems/1.8/bin$ ./camping -v
>
>
> thanks!
>
> r.
>
>
> >
> > Dave Everitt
> >
> >> hi,
> >>
> >>
> >> I'm moving my Camping from OS X to a Ubuntu Lucid unix machine.
> >>
> >> The camping gem has been successfully installed, but I can't access it
> directly from the command line.
> >>
> >> mo...@lucid:/u/apps/portablechecking$ gem list
> >>
> >> *** LOCAL GEMS ***
> >>
> >> actionmailer (2.3.8)
> >> actionpack (2.3.8)
> >> activerecord (2.3.8)
> >> activeresource (2.3.8)
> >> activesupport (2.3.8)
> >> builder (2.1.2)
> >> camping (2.0)
> >> daemons (1.1.0)
> >> eventmachine (0.12.10)
> >> pg (0.9.0)
> >> rack (1.2.1, 1.1.0)
> >> rails (2.3.8)
> >> rake (0.8.7)
> >> sqlite3-ruby (1.3.1)
> >> thin (1.2.7)
> >>
> >>
> >> The ubuntu package is Camping 1.5 only ...
> >>
> >> sudo apt-get install camping
> >> http://packages.ubuntu.com/lucid/camping
> >>
> >> any ideas ?
> >>
> >> thanks,
> >>
> >> r.
> >> ___
> >> 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
> >
>
>
> ___
> 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

Re: Relations on Camping

2010-06-25 Thread Matt Zukowski
you need to add `has_many :people` to your Group class

On 2010-06-25 4:03 AM, "Raimon Fernandez"  wrote:

Hi, it's me again ...

:-)


I have one table called people and another one called groups.

Each person from people belongs to ONE group.


module List::Models

 class Person < Base
   belongs_to :group
 end

 class Group < Base
 end

end


When I get all persons from people, I expect, like in RoR, the access to
related records, like:

module List::Views
 def people(xml)
   xml.posts do
 @posts.each do |person|
   xml.person do
 xml.id(person.id)
 xml.name(person.name)
 xml.surname_01(person.surname_01)
 xml.surname_02(person.surname_02)
 xml.has_come(person.has_come)
xml.group(person.group.name) #  Here I'm asking for related
information about the group name
   end
 end
   end
 end

end

and I'm getting =>  NoMethodError at /people/list undefined method `name'
for nil:NilClass

also, I'm trying to test it on Console:

MacBook-ProII-2:Test montx$ camping -C list.rb
** Starting console
>> Person.find(1)
NameError: uninitialized constant Person
   from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:443:in
`load_missing_constant'
   from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in
`const_missing'
   from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:92:in
`const_missing'
   from (irb):1
>>

but it seems that the model hasn't been loaded ...

thanks again for your help,

regards,

r.

ps. yes, I have in the db the relation between two tables: list_group_id in
the list_people table.


___
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

Re: Updated version of RESTstop and RESTr plus bonus blog post

2010-06-23 Thread Matt Zukowski
P.S. really nice write up. I think you know more about Reststop now than I
do :)

On Wed, Jun 23, 2010 at 9:27 AM, Matt Zukowski  wrote:

> Awesome! Nice to see restr getting used. I always thought it was a better
> solution than rest-client, but I guess I'm biased :)
>
> On Wed, Jun 23, 2010 at 9:11 AM, Philippe Monnet wrote:
>
>>  After last week's thread with Raimon, I made a couple changes to RESTstop
>> and RESTr (added JSON support).
>> Both GitHub and RubyGems are up-to-date now.
>> I also ended up writing a blog post on how to implement REST services with
>> RESTstop. See http://bit.ly/tareststop
>>
>> - Philippe (@techarch)
>>
>> ___
>> 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

Re: Updated version of RESTstop and RESTr plus bonus blog post

2010-06-23 Thread Matt Zukowski
Awesome! Nice to see restr getting used. I always thought it was a better
solution than rest-client, but I guess I'm biased :)

On Wed, Jun 23, 2010 at 9:11 AM, Philippe Monnet wrote:

>  After last week's thread with Raimon, I made a couple changes to RESTstop
> and RESTr (added JSON support).
> Both GitHub and RubyGems are up-to-date now.
> I also ended up writing a blog post on how to implement REST services with
> RESTstop. See http://bit.ly/tareststop
>
> - Philippe (@techarch)
>
> ___
> 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

Re: First time on Camping

2010-06-17 Thread Matt Zukowski
P.S. latest version of reststop with Philippe's changes has been pushed to
gemcutter... I am told it now works with the latest version of camping, but
haven't had a chance to try it myself.

On Thu, Jun 17, 2010 at 5:12 PM, Matt Zukowski  wrote:

> 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  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 18:43:33 on ttys002
>> MacBook-ProII-2:~ montx$ sudo gem install hoe
>> Password:
>> ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
>>SocketError: getaddrinfo: nodename nor servname provided, or not known
>> (http://gems.rubyforge.org/gems/json_pure-1.4.3.gem)
>> MacBook-ProII-2:~ montx$
>>
>>
>> we have to wait ...
>>
>> thanks,
>>
>> r.
>>
>> >
>> > Dave
>> >
>> > On Tue, Jun 8, 2010 at 1:01 PM, Raimon Fernandez 
>> 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 install it yourself.
>> >>
>> >> I think it requieres 'hoe' and I can't install without rubygems working
>> or once again, find where the repo is and start digging again ...
>> >>
>> >> :-)
>> >>
>> >> MacBook-ProII-2:reststop montx$ sudo rake Rakefile
>> >> (in /Users/montx/Documents/Camping/reststop)
>> >> rake aborted!
>> >> no such file to load -- hoe
>> >> /Users/montx/Documents/Camping/reststop/rakefile:10
>> >>
>> >>
>> >> thanks!
>> >>
>> >> r.
>> >> ___
>> >> Camping-list mailing list
>> >> Camping-list@rubyforge.org
>> >> http://rubyforge.org/mailman/listinfo/camping-list
>> >>
>> >
>> >
>> >
>> > --
>> > Dave
>> > ___
>> > 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
>>
>
>
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

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  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 18:43:33 on ttys002
> MacBook-ProII-2:~ montx$ sudo gem install hoe
> Password:
> ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
>SocketError: getaddrinfo: nodename nor servname provided, or not known (
> http://gems.rubyforge.org/gems/json_pure-1.4.3.gem)
> MacBook-ProII-2:~ montx$
>
>
> we have to wait ...
>
> thanks,
>
> r.
>
> >
> > Dave
> >
> > On Tue, Jun 8, 2010 at 1:01 PM, Raimon Fernandez 
> 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 install it yourself.
> >>
> >> I think it requieres 'hoe' and I can't install without rubygems working
> or once again, find where the repo is and start digging again ...
> >>
> >> :-)
> >>
> >> MacBook-ProII-2:reststop montx$ sudo rake Rakefile
> >> (in /Users/montx/Documents/Camping/reststop)
> >> rake aborted!
> >> no such file to load -- hoe
> >> /Users/montx/Documents/Camping/reststop/rakefile:10
> >>
> >>
> >> thanks!
> >>
> >> r.
> >> ___
> >> Camping-list mailing list
> >> Camping-list@rubyforge.org
> >> http://rubyforge.org/mailman/listinfo/camping-list
> >>
> >
> >
> >
> > --
> > Dave
> > ___
> > 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
>
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

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

2010-06-09 Thread Matt Zukowski
hey Philippe, thanks for raking care of the support on this. I've been badly
neglecting my camping projects lately due to time constraints... let me know
if there's anything I can do to help with the reststop gem push
(gemcutter/rubyforge access?)

On 2010-06-09 8:17 AM, "Philippe Monnet"  wrote:

 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) publish a new version of the reststop gem (as the current one no longer
matches the current camping/reststop project code on GitHub
  b) merge some of my changes from March re: the RESTR library and publish a
new gem

Philippe

PS - eventually I will write a blog post on this ;-)



On 6/9/2010 12:31 AM, Raimon Fernandez wrote:
>
> Hi Bartosz,
>
> On 8jun, 2010, at 20:31 , Bartos...

___
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

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  wrote:

> 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  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 Zukowski  wrote:
>> > 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 up to
>> > gemcutter/rubyforge.
>> > Matt.
>> >
>> > On Wed, Apr 7, 2010 at 9:02 AM, Philippe Monnet 
>> wrote:
>> >>
>> >> 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 the recent RESTstop blog app I
>> had
>> >> updated.
>> >>
>> >> On Sat, Apr 3, 2010 at 4:23 PM, Magnus Holm  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 that actually works. I don't have
>> any
>> >> > apps
>> >> > that runs on Camping (neither 1.5 nor 1.9/2.0), so I was hoping if
>> some
>> >> > of
>> >> > you could verify that it works as expected?
>> >> > I'll give it a week or so, and if everything seems fine I'll…
>> >> > * Copy the documentation at http://stuff.judofyr.net/camping-docs/
>>  to
>> >> > http://camping.rubyforge.org/
>> >> > * Make sure all the links in the wiki points to the right place
>> >> > * Release the gem as 2.0 at rubygems.org
>> >> > * Write an announcement which I'll post to ruby-core, rack-devel and
>> >> > camping-list
>> >> > * Submit the announcement to Rubyflow and ruby.reddit
>> >> > * Write a patch which removes Rack::Adapters::Camping from Rack
>> >> > * (Possibly write a little blog post comparing Camping and Sinatra
>> from
>> >> > an
>> >> > objective point of view)
>> >> > * Start hacking on Camping 2.1!
>> >> > Puh. What'd ya think?
>> >> > Oh, and busbey has been playing a bit with the
>> >> > code: http://github.com/busbey/camping. Some awesome migrations
>> ideas in
>> >> > there. Looking forward to merge them into 2.1!
>> >> >
>> >> > // 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
>> >>
>> >> ___
>> >> 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
>> >
>> ___
>> 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

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  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 Zukowski  wrote:
> > 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 up to
> > gemcutter/rubyforge.
> > Matt.
> >
> > On Wed, Apr 7, 2010 at 9:02 AM, Philippe Monnet 
> wrote:
> >>
> >> 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 the recent RESTstop blog app I
> had
> >> updated.
> >>
> >> On Sat, Apr 3, 2010 at 4:23 PM, Magnus Holm  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 that actually works. I don't have
> any
> >> > apps
> >> > that runs on Camping (neither 1.5 nor 1.9/2.0), so I was hoping if
> some
> >> > of
> >> > you could verify that it works as expected?
> >> > I'll give it a week or so, and if everything seems fine I'll…
> >> > * Copy the documentation at http://stuff.judofyr.net/camping-docs/ to
> >> > http://camping.rubyforge.org/
> >> > * Make sure all the links in the wiki points to the right place
> >> > * Release the gem as 2.0 at rubygems.org
> >> > * Write an announcement which I'll post to ruby-core, rack-devel and
> >> > camping-list
> >> > * Submit the announcement to Rubyflow and ruby.reddit
> >> > * Write a patch which removes Rack::Adapters::Camping from Rack
> >> > * (Possibly write a little blog post comparing Camping and Sinatra
> from
> >> > an
> >> > objective point of view)
> >> > * Start hacking on Camping 2.1!
> >> > Puh. What'd ya think?
> >> > Oh, and busbey has been playing a bit with the
> >> > code: http://github.com/busbey/camping. Some awesome migrations ideas
> in
> >> > there. Looking forward to merge them into 2.1!
> >> >
> >> > // 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
> >>
> >> ___
> >> 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
> >
> ___
> 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

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 up to
gemcutter/rubyforge.

Matt.

On Wed, Apr 7, 2010 at 9:02 AM, Philippe Monnet  wrote:

>  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 the recent RESTstop blog app I had
> updated.
>
>  On Sat, Apr 3, 2010 at 4:23 PM, Magnus Holm  
>  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 that actually works. I don't 
> have any apps> that runs on Camping (neither 1.5 nor 1.9/2.0), so I was 
> hoping if some of> you could verify that it works as expected?> I'll give it 
> a week or so, and if everything seems fine I'll…> * Copy the documentation at 
> http://stuff.judofyr.net/camping-docs/ to> http://camping.rubyforge.org/> * 
> Make sure all the links in the wiki points to the right place> * Release the 
> gem as 2.0 at rubygems.org> * Write an announcement which I'll post to 
> ruby-core, rack-devel and> camping-list> * Submit the announcement to 
> Rubyflow and ruby.reddit> * Write a patch which removes 
> Rack::Adapters::Camping from Rack> * (Possibly write a little blog post 
> comparing Camping and Sinatra from an> objective point of view)> * Start 
> hacking on Camping 2.1!> Puh. What'd ya think?> Oh, and busbey has been 
> playing a bit with the> code: http://github.com/busbey/camping. Some awesome 
> migrations ideas in> there. Looking forward to merge them into 2.1!>> // 
> Magnus Holm>> ___> Camping-list 
> mailing list> Camping-list@rubyforge.org> 
> http://rubyforge.org/mailman/listinfo/camping-list>
>
>
>
> ___
> Camping-list mailing 
> listcamping-l...@rubyforge.orghttp://rubyforge.org/mailman/listinfo/camping-list
>
>
>
> ___
> 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

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 Monnet wrote:

>  Ok, after a few more code changes, I am now able to run through all
> browser-based scenarios and all *restr*-based scenarios.
> I have added a comment starting with *...@techarch* on all the lines I have
> changed.
> I have also updated *restr.rb* so that the cookie header can be exchanged
> back and forth.
> I created a *test.rb* with a few snippets to use in IRB using Restr.
> My gist is available at: http://gist.github.com/343058
> Feel free to pick and choose/rewrite/optimize as needed when merging into
> Reststop. ;-)
>
> Philippe (@techarch on Twitter)
>
> On 3/24/2010 9:37 PM, Philippe Monnet wrote:
>
> Matt,
>
> Thanks for the head start on the port to 2.0.
> I have started to finish it and am about 95% there.
> At this point I can run through all browser-based scenarios and have
> started some of the Restr-based scenarios. I am now trying to figure out how
> to do the authentication bit for the PUT scenarios.
> I hope to complete this by the end of the week-end.
>
> Philippe
>
> On 3/23/2010 1:49 PM, Matt Zukowski 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!) 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 near future to play around
> with this again, but if someone wants to take it and run with it I'd be
> happy to help.
>
>  Matt.
>
> On Tue, Mar 23, 2010 at 12:36 PM, Magnus Holm  wrote:
>
>> code = %q{
>> # This Ruby code will be called everytime Camping.goes is called.
>> # And "Camping" is replaced with the app module, so you can do stuff like:
>> def Camping.foo
>>   puts "Hello World!"
>> end
>>
>>  # You probably just want to do:
>> module Camping
>>   include MyExtension
>> end
>> }
>>
>>  # For Camping.goes
>> Camping::S << code
>> # For previus Camping.goes
>> Camping::Apps.each { |app| app.module_eval(code.gsub("Camping", app.to_s))
>> }
>>
>>  As for qsp, it's replaced by Rack::Utils.parse_query. This creates a
>> regular Hash though, so I've written a Base#n to convert it to Camping::H.
>>
>>  # Before:
>> hash = Camping.qsp("hoho=1")
>> # Now: (inside an instance of a controller)
>> hash = n(Rack::Utils.parse_query("hoho=1"))
>>
>>
>> // Magnus Holm
>>
>>
>>
>> On Tue, Mar 23, 2010 at 17:23, Matt Zukowski  wrote:
>>
>>> 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
>>> second evil, and I see that it's now gone. I'm looking around now to see
>>> what you've done to replace it (I take it Rack took care of some of that).
>>>
>>>
>>> On Tue, Mar 23, 2010 at 12:05 PM, Magnus Holm  wrote:
>>>
>>>> @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  wrote:
>>>>
>>>>> 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 wrote:
>>>>>
>>>>>> 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 bi

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  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!) 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 near future to play around
> with this again, but if someone wants to take it and run with it I'd be
> happy to help.
>
> Matt.
>
>
> On Tue, Mar 23, 2010 at 12:36 PM, Magnus Holm  wrote:
>
>> code = %q{
>> # This Ruby code will be called everytime Camping.goes is called.
>> # And "Camping" is replaced with the app module, so you can do stuff like:
>> def Camping.foo
>>   puts "Hello World!"
>> end
>>
>> # You probably just want to do:
>> module Camping
>>   include MyExtension
>> end
>> }
>>
>> # For Camping.goes
>> Camping::S << code
>> # For previus Camping.goes
>> Camping::Apps.each { |app| app.module_eval(code.gsub("Camping", app.to_s))
>> }
>>
>> As for qsp, it's replaced by Rack::Utils.parse_query. This creates a
>> regular Hash though, so I've written a Base#n to convert it to Camping::H.
>>
>> # Before:
>> hash = Camping.qsp("hoho=1")
>> # Now: (inside an instance of a controller)
>> hash = n(Rack::Utils.parse_query("hoho=1"))
>>
>>
>> // Magnus Holm
>>
>>
>>
>> On Tue, Mar 23, 2010 at 17:23, Matt Zukowski  wrote:
>>
>>> 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
>>> second evil, and I see that it's now gone. I'm looking around now to see
>>> what you've done to replace it (I take it Rack took care of some of that).
>>>
>>>
>>> On Tue, Mar 23, 2010 at 12:05 PM, Magnus Holm  wrote:
>>>
>>>> @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  wrote:
>>>>
>>>>> 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 wrote:
>>>>>
>>>>>> 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 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 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 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 whatever broke Reststop must have been committed in the last 10
>>>>>>> months or so.
>>>>>>>
>>>>>>> To be honest over the last year I've mostly switched form Camping to
>>>>>>> Sinatra (and lately to Node.js, which is really really cool by the 
>>>>>>> way). The
>>>>>>> problem with Camping, for me, is that trying to e

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 near future to play around with
this again, but if someone wants to take it and run with it I'd be happy to
help.

Matt.

On Tue, Mar 23, 2010 at 12:36 PM, Magnus Holm  wrote:

> code = %q{
> # This Ruby code will be called everytime Camping.goes is called.
> # And "Camping" is replaced with the app module, so you can do stuff like:
> def Camping.foo
>   puts "Hello World!"
> end
>
> # You probably just want to do:
> module Camping
>   include MyExtension
> end
> }
>
> # For Camping.goes
> Camping::S << code
> # For previus Camping.goes
> Camping::Apps.each { |app| app.module_eval(code.gsub("Camping", app.to_s))
> }
>
> As for qsp, it's replaced by Rack::Utils.parse_query. This creates a
> regular Hash though, so I've written a Base#n to convert it to Camping::H.
>
> # Before:
> hash = Camping.qsp("hoho=1")
> # Now: (inside an instance of a controller)
> hash = n(Rack::Utils.parse_query("hoho=1"))
>
>
> // Magnus Holm
>
>
>
> On Tue, Mar 23, 2010 at 17:23, Matt Zukowski  wrote:
>
>> 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
>> second evil, and I see that it's now gone. I'm looking around now to see
>> what you've done to replace it (I take it Rack took care of some of that).
>>
>>
>> On Tue, Mar 23, 2010 at 12:05 PM, Magnus Holm  wrote:
>>
>>> @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  wrote:
>>>
>>>> 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 wrote:
>>>>
>>>>> 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 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 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 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 whatever broke Reststop must have been committed in the last 10
>>>>>> months or so.
>>>>>>
>>>>>> To be honest over the last year I've mostly switched form Camping to
>>>>>> Sinatra (and lately to Node.js, which is really really cool by the way). 
>>>>>> The
>>>>>> problem with Camping, for me, is that trying to extend it is a 
>>>>>> nightmare. I
>>>>>> learned this the hard way while writing Reststop and Picnic.
>>>>>>
>>>>>> Anyway I have a bit of time right now, so since there seems to be some
>>>>>> interest, I'll pull down the latest version of Camping and see if I can 
>>>>>> make
>>>>>> it work with Reststop. I should also move Reststop to github while I'm at
>>>>>> it.
>>>>>>
>>>

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 second
evil, and I see that it's now gone. I'm looking around now to see what
you've done to replace it (I take it Rack took care of some of that).

On Tue, Mar 23, 2010 at 12:05 PM, Magnus Holm  wrote:

> @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  wrote:
>
>> 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  wrote:
>>
>>> 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 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  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 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 whatever broke Reststop must have been committed in the last 10
>>>> months or so.
>>>>
>>>> To be honest over the last year I've mostly switched form Camping to
>>>> Sinatra (and lately to Node.js, which is really really cool by the way). 
>>>> The
>>>> problem with Camping, for me, is that trying to extend it is a nightmare. I
>>>> learned this the hard way while writing Reststop and Picnic.
>>>>
>>>> Anyway I have a bit of time right now, so since there seems to be some
>>>> interest, I'll pull down the latest version of Camping and see if I can 
>>>> make
>>>> it work with Reststop. I should also move Reststop to github while I'm at
>>>> it.
>>>>
>>>> On Mon, Mar 22, 2010 at 11:32 PM, Philippe Monnet 
>>>> wrote:
>>>>
>>>>>  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 condition on the if statement on the last m.capture line of the
>>>>> render method needs to be adjusted (not sure what a[0] should be replaced
>>>>> with. So far I have temporarily replaced the line by:
>>>>>  s = m.capture{send(:layout){s}} if m.respond_to?(:layout)
>>>>>
>>>>> In the blog.rb example
>>>>>   - the version number for camping needs to be updated
>>>>>   - require 'camping/db' should be removed since now obsolete
>>>>>   - require 'markaby' needs to be added
>>>>>
>>>>> So far I can bring up the app in a browser, login, add a post.
>>>>> But if I use Restr I can only do a GET. The PUT currently fails with a
>>>>> 401. I will continue to try figuring it out over the next week or so.
>>>>> It would be great if the initial author could help us out.
>>>>>
>>>>> Philippe
>>>>>
>>>>>
>>>>> On 3/12/2010 8:04 AM, David Susco wrote:
>>>>>
>>>>> Has anyone managed to get camping to work with reststop using 1.9.354?
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ___
>>>>> 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
>>>>
>>>
>>>
>>> ___
>>> 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
>>
>
>
> ___
> 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

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  wrote:

> 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 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  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 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
>> whatever broke Reststop must have been committed in the last 10 months or
>> so.
>>
>> To be honest over the last year I've mostly switched form Camping to
>> Sinatra (and lately to Node.js, which is really really cool by the way). The
>> problem with Camping, for me, is that trying to extend it is a nightmare. I
>> learned this the hard way while writing Reststop and Picnic.
>>
>> Anyway I have a bit of time right now, so since there seems to be some
>> interest, I'll pull down the latest version of Camping and see if I can make
>> it work with Reststop. I should also move Reststop to github while I'm at
>> it.
>>
>> On Mon, Mar 22, 2010 at 11:32 PM, Philippe Monnet wrote:
>>
>>>  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 condition on the if statement on the last m.capture line of the
>>> render method needs to be adjusted (not sure what a[0] should be replaced
>>> with. So far I have temporarily replaced the line by:
>>>  s = m.capture{send(:layout){s}} if m.respond_to?(:layout)
>>>
>>> In the blog.rb example
>>>   - the version number for camping needs to be updated
>>>   - require 'camping/db' should be removed since now obsolete
>>>   - require 'markaby' needs to be added
>>>
>>> So far I can bring up the app in a browser, login, add a post.
>>> But if I use Restr I can only do a GET. The PUT currently fails with a
>>> 401. I will continue to try figuring it out over the next week or so.
>>> It would be great if the initial author could help us out.
>>>
>>> Philippe
>>>
>>>
>>> On 3/12/2010 8:04 AM, David Susco wrote:
>>>
>>> Has anyone managed to get camping to work with reststop using 1.9.354?
>>>
>>>
>>>
>>>
>>>
>>> ___
>>> 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
>>
>
>
> ___
> 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

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 whatever
broke Reststop must have been committed in the last 10 months or so.

To be honest over the last year I've mostly switched form Camping to Sinatra
(and lately to Node.js, which is really really cool by the way). The problem
with Camping, for me, is that trying to extend it is a nightmare. I learned
this the hard way while writing Reststop and Picnic.

Anyway I have a bit of time right now, so since there seems to be some
interest, I'll pull down the latest version of Camping and see if I can make
it work with Reststop. I should also move Reststop to github while I'm at
it.

On Mon, Mar 22, 2010 at 11:32 PM, Philippe Monnet wrote:

>  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 condition on the if statement on the last m.capture line of the
> render method needs to be adjusted (not sure what a[0] should be replaced
> with. So far I have temporarily replaced the line by:
>  s = m.capture{send(:layout){s}} if m.respond_to?(:layout)
>
> In the blog.rb example
>   - the version number for camping needs to be updated
>   - require 'camping/db' should be removed since now obsolete
>   - require 'markaby' needs to be added
>
> So far I can bring up the app in a browser, login, add a post.
> But if I use Restr I can only do a GET. The PUT currently fails with a 401.
> I will continue to try figuring it out over the next week or so.
> It would be great if the initial author could help us out.
>
> Philippe
>
>
> On 3/12/2010 8:04 AM, David Susco wrote:
>
> Has anyone managed to get camping to work with reststop using 1.9.354?
>
>
>
>
>
> ___
> 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

Re: What now?

2009-10-15 Thread Matt Zukowski
I second the whywentcamping.com domain.

On Thu, Oct 15, 2009 at 11:11 AM, Dave Everitt wrote:

> Hi Matt - great, that's a start. One more person and we're there! - Dave
>
>  I'm new to Camping (played around with some small apps, but nothing
>> impressive), but I'd be more than happy to be webmaster. If I could
>> get someone to work with, that'd be even better, of course.
>>
>>  Nice alternative... all that's needed is a chosen domain, a friendly host
>>> and to share out the webmastering :-)
>>>
>>> With a little commitment from a couple of people, I'd provide the hosting
>>> and domain.
>>>
>>
> ___
> 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

Re: deployment

2009-06-05 Thread Matt Zukowski
Maybe have a look at http://code.google.com/p/camping-picnic/
Among other functionality, Picnic
gives you a myapp-ctl wrapper script around your camping app that takes care
of starting and stopping mongrel. Writing an init.d script around the
myapp-ctl script is pretty trivial.

Otherwise using mongrel_cluster to start up your app is probably your best
choice. That's what we did before we switched to passenger.

On Wed, Jun 3, 2009 at 10:24 AM, David Susco  wrote:

> I have a few camping apps I'd like to start automatically if my server
> ever restarts. There's an init.d file that comes with mongrel_cluster
> that you can use for rails apps, is there anything out there for
> camping apps though?
>
> With the postamble containing all the configuration for the app, it
> seems that all the init.d file would have to do is execute the camping
> file. Has anyone done this/have any pointers?
>
> --
> Dave
> ___
> 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