From deveritt at innotts.co.uk Wed Jun 2 07:32:25 2010 From: deveritt at innotts.co.uk (Dave Everitt) Date: Wed, 2 Jun 2010 12:32:25 +0100 Subject: markaby Message-ID: <35AC0052-728F-4413-B848-04E48D88C780@innotts.co.uk> FWD From: smtlaissezfaire Closed in the main fork of markaby (markaby/markaby). Thanks for the note. http://github.com/joho/markaby/issues/issue/4/#comment_260996 -DaveE From ruby at monnet-usa.com Mon Jun 7 20:37:11 2010 From: ruby at monnet-usa.com (Philippe Monnet) Date: Mon, 07 Jun 2010 18:37:11 -0600 Subject: camping-oauth is now available Message-ID: <4C0D90B7.8080101@monnet-usa.com> 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). You can find it on GitHub: http://bit.ly/campingoauth I also wrote a blog post on how to use it (and a little about OAuth as well as how I approached the plugin): http://bit.ly/caoapost Let me know if you have any questions or if you encounter any issues. Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: From coder at montx.com Tue Jun 8 02:25:48 2010 From: coder at montx.com (Raimon Fernandez) Date: Tue, 8 Jun 2010 08:25:48 +0200 Subject: First time on Camping Message-ID: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> hi list, This is my first time here, my first time reading seriously something about Camping. I need to create a very simple web server for serving only .xml files, extracted from a sqlite database with some queries. I'm quite comfortable with Ruby on Rails, but it would be too much for this project, so I've decided to take a look at Camping or Sinatra, not sure what's the best option. There would be only 5 tables, 100 rows per table, and the idea is fetch data from a device like iPad/iPhone/iPod, update it and persist the changes in the server. The data transfer would be in plain .xml files, no html or css. Any helpful directions would be great :-) thanks, r. From coder at montx.com Tue Jun 8 03:18:24 2010 From: coder at montx.com (Raimon Fernandez) Date: Tue, 8 Jun 2010 09:18:24 +0200 Subject: First time and first error In-Reply-To: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> Message-ID: 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: http://gems.rubyforge.org/ RubyGems will revert to legacy indexes degrading performance. Bulk updating Gem source index for: http://gems.rubyforge.org/ ERROR: While executing gem ... (Gem::RemoteSourceException) Error fetching remote gem cache: SocketError: getaddrinfo: nodename nor servname provided, or not known (http://gems.rubyforge.org/yaml) What are the minimums ? I'm using in my developer machine Ruby On Rails and Ruby without any problems, with some gems. thanks, regards, r. From coder at montx.com Tue Jun 8 04:59:39 2010 From: coder at montx.com (Raimon Fernandez) Date: Tue, 8 Jun 2010 10:59:39 +0200 Subject: First time and first error In-Reply-To: References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> Message-ID: <5941C24F-7662-44E6-91AC-2A5FCDBC2FD9@montx.com> 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: > http://gems.rubyforge.org/ > > RubyGems will revert to legacy indexes degrading performance. > Bulk updating Gem source index for: http://gems.rubyforge.org/ > ERROR: While executing gem ... (Gem::RemoteSourceException) > Error fetching remote gem cache: SocketError: getaddrinfo: nodename nor servname provided, or not known (http://gems.rubyforge.org/yaml) > > > What are the minimums ? > > I'm using in my developer machine Ruby On Rails and Ruby without any problems, with some gems. I want to add that I'm not behind any proxy or firewall, and that I could successfully download/and install some other gems in this machine without any problems, but no, no, I can't install nothing from gem. It seems like a time-out problem: I have this remote sources: - REMOTE SOURCES: - http://gems.rubyforge.org/ - http://gems.github.com MacBook-ProII-2:~ montx$ mmm, a ping to http://gems.rubyforge.org/ => cannot resolve http://gems.rubyforge.org/: Unknown host MacBook-ProII-2:~ montx$ sudo gem sources -r http://gems.rubyforge.org/ http://gems.rubyforge.org/ removed from sources now I have only - http://gems.github.com MacBook-ProII-2:~ montx$ sudo gem install camping ERROR: could not find gem camping locally or in a repository MacBook-ProII-2:~ montx$ any idea ? thanks, r. > > thanks, > > regards, > > r. > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > From judofyr at gmail.com Tue Jun 8 05:34:53 2010 From: judofyr at gmail.com (Magnus Holm) Date: Tue, 8 Jun 2010 11:34:53 +0200 Subject: First time and first error In-Reply-To: <5941C24F-7662-44E6-91AC-2A5FCDBC2FD9@montx.com> References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <5941C24F-7662-44E6-91AC-2A5FCDBC2FD9@montx.com> Message-ID: 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 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 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: >> ? ? ? http://gems.rubyforge.org/ >> >> RubyGems will revert to legacy indexes degrading performance. >> Bulk updating Gem source index for: http://gems.rubyforge.org/ >> ERROR: ?While executing gem ... (Gem::RemoteSourceException) >> ? ?Error fetching remote gem cache: SocketError: getaddrinfo: nodename nor servname provided, or not known (http://gems.rubyforge.org/yaml) >> >> >> What are the minimums ? >> >> I'm using in my developer machine Ruby On Rails and Ruby without any problems, with some gems. > > > I want to add that I'm not behind any proxy or firewall, and that I could successfully download/and install some other gems in this machine without any problems, but no, no, I can't install nothing from gem. > > It seems like a time-out problem: > > I have this remote sources: > > ?- REMOTE SOURCES: > ? ? - http://gems.rubyforge.org/ > ? ? - http://gems.github.com > MacBook-ProII-2:~ montx$ > > mmm, a ping to http://gems.rubyforge.org/ => cannot resolve http://gems.rubyforge.org/: Unknown host > > > MacBook-ProII-2:~ montx$ sudo gem sources -r http://gems.rubyforge.org/ > http://gems.rubyforge.org/ removed from sources > > now I have only ? ? ?- http://gems.github.com > > MacBook-ProII-2:~ montx$ sudo gem install camping > ERROR: ?could not find gem camping locally or in a repository > MacBook-ProII-2:~ montx$ > > any idea ? > > thanks, > > > r. > > > > > >> >> thanks, >> >> regards, >> >> r. >> _______________________________________________ >> Camping-list mailing list >> Camping-list at rubyforge.org >> http://rubyforge.org/mailman/listinfo/camping-list >> > > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > From deveritt at innotts.co.uk Tue Jun 8 05:52:18 2010 From: deveritt at innotts.co.uk (Dave Everitt) Date: Tue, 8 Jun 2010 10:52:18 +0100 Subject: First time and first error In-Reply-To: <5941C24F-7662-44E6-91AC-2A5FCDBC2FD9@montx.com> References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <5941C24F-7662-44E6-91AC-2A5FCDBC2FD9@montx.com> Message-ID: 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 fix: add "72.4.120.124 rubygems.org" to your /etc/hosts Otherwise, get the bleeding edge version: sudo gem install camping --source http://gems.judofyr.net/ Dave Everitt > I want to add that I'm not behind any proxy or firewall, and that I > could successfully download/and install some other gems in this > machine without any problems, but no, no, I can't install nothing > from gem. > > It seems like a time-out problem: > > I have this remote sources: > > - REMOTE SOURCES: > - http://gems.rubyforge.org/ > - http://gems.github.com > MacBook-ProII-2:~ montx$ > > mmm, a ping to http://gems.rubyforge.org/ => cannot resolve http:// > gems.rubyforge.org/: Unknown host > > > MacBook-ProII-2:~ montx$ sudo gem sources -r http:// > gems.rubyforge.org/ > http://gems.rubyforge.org/ removed from sources > > now I have only - http://gems.github.com > > MacBook-ProII-2:~ montx$ sudo gem install camping > ERROR: could not find gem camping locally or in a repository > MacBook-ProII-2:~ montx$ From deveritt at innotts.co.uk Tue Jun 8 06:03:06 2010 From: deveritt at innotts.co.uk (Dave Everitt) Date: Tue, 8 Jun 2010 11:03:06 +0100 Subject: First time and first error In-Reply-To: References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <5941C24F-7662-44E6-91AC-2A5FCDBC2FD9@montx.com> Message-ID: Hmm - trying to help here too as I have the same problem. $ sudo gem update --system ERROR: http://rubygems.org does not appear to be a repository ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) SocketError: getaddrinfo: No address associated with nodename (http://rubygems.org/yaml) Was fine about 2 weeks ago. For now, I just advised Raimon to fetch it from: --source http://gems.judofyr.net/ ? Dave Everitt > Hey Raimon, > > Try a `sudo gem update --system` first to upgrade to the latest > RubyGems > > // Magnus Holm From coder at montx.com Tue Jun 8 06:08:30 2010 From: coder at montx.com (Raimon Fernandez) Date: Tue, 8 Jun 2010 12:08:30 +0200 Subject: First time and first error In-Reply-To: References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <5941C24F-7662-44E6-91AC-2A5FCDBC2FD9@montx.com> Message-ID: <31520C58-4061-4E4E-9D34-8966CCFBAFC5@montx.com> 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. From coder at montx.com Tue Jun 8 06:17:48 2010 From: coder at montx.com (Raimon Fernandez) Date: Tue, 8 Jun 2010 12:17:48 +0200 Subject: First time and first error In-Reply-To: References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <5941C24F-7662-44E6-91AC-2A5FCDBC2FD9@montx.com> Message-ID: <2FFA15C4-CC71-4360-82A2-A496690362AA@montx.com> 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 the tweets here: > http://twitter.com/gemcutter thanks for the info! > and Magnus' Temporary fix: > add "72.4.120.124 rubygems.org" to your /etc/hosts ok, done! mmm, I've removed the rubygems.org from the remote sources and now I can't add it again MacBook-ProII-2:~ montx$ sudo gem sources -a http://rubygems.org Error fetching http://rubygems.org: SocketError: getaddrinfo: nodename nor servname provided, or not known (http://rubygems.org/specs.4.8.gz) MacBook-ProII-2:~ montx$ sudo gem sources -a http://rubygems.org Error fetching http://rubygems.org: SocketError: getaddrinfo: nodename nor servname provided, or not known (http://rubygems.org/specs.4.8.gz) > Otherwise, get the bleeding edge version: > sudo gem install camping --source http://gems.judofyr.net/ maybe later ! :-) thanks, regards, r. From coder at montx.com Tue Jun 8 06:25:48 2010 From: coder at montx.com (Raimon Fernandez) Date: Tue, 8 Jun 2010 12:25:48 +0200 Subject: First time and first error In-Reply-To: References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <5941C24F-7662-44E6-91AC-2A5FCDBC2FD9@montx.com> Message-ID: <353EFD9F-9353-4CED-90CC-5D8C24689188@montx.com> 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: acBook-ProII-2:Camping montx$ camping homepage.rb /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:27: uninitialized constant Rack::Server (NameError) from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' from /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/camping:6 from /usr/bin/camping:19:in `load' from /usr/bin/camping:19 I've installed Rack as I use it with some of my Ruby On Rails and Thin projects ... Maybe the Rack::Server is not the same ? Should I install more dependencies ? thanks, r. From judofyr at gmail.com Tue Jun 8 06:30:04 2010 From: judofyr at gmail.com (Magnus Holm) Date: Tue, 8 Jun 2010 12:30:04 +0200 Subject: First time and first error In-Reply-To: <353EFD9F-9353-4CED-90CC-5D8C24689188@montx.com> References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <5941C24F-7662-44E6-91AC-2A5FCDBC2FD9@montx.com> <353EFD9F-9353-4CED-90CC-5D8C24689188@montx.com> Message-ID: 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 wrote: > > 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: > > acBook-ProII-2:Camping montx$ camping homepage.rb > /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:27: uninitialized constant Rack::Server (NameError) > ? ? ? ?from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' > ? ? ? ?from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' > ? ? ? ?from /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/camping:6 > ? ? ? ?from /usr/bin/camping:19:in `load' > ? ? ? ?from /usr/bin/camping:19 > > > I've installed Rack as I use it with some of my Ruby On Rails and Thin projects ... > > Maybe the Rack::Server is not the same ? > > Should I install more dependencies ? > > thanks, > > r. > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > From ruby at monnet-usa.com Tue Jun 8 06:53:52 2010 From: ruby at monnet-usa.com (Philippe Monnet) Date: Tue, 08 Jun 2010 04:53:52 -0600 Subject: First time and first error In-Reply-To: <353EFD9F-9353-4CED-90CC-5D8C24689188@montx.com> References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <5941C24F-7662-44E6-91AC-2A5FCDBC2FD9@montx.com> <353EFD9F-9353-4CED-90CC-5D8C24689188@montx.com> Message-ID: <4C0E2140.1090109@monnet-usa.com> 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 AM, Raimon Fernandez wrote: > 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: > > acBook-ProII-2:Camping montx$ camping homepage.rb > /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:27: uninitialized constant Rack::Server (NameError) > from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' > from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' > from /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/camping:6 > from /usr/bin/camping:19:in `load' > from /usr/bin/camping:19 > > > I've installed Rack as I use it with some of my Ruby On Rails and Thin projects ... > > Maybe the Rack::Server is not the same ? > > Should I install more dependencies ? > > thanks, > > r. > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From coder at montx.com Tue Jun 8 06:56:24 2010 From: coder at montx.com (Raimon Fernandez) Date: Tue, 8 Jun 2010 12:56:24 +0200 Subject: First time and first error In-Reply-To: References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <5941C24F-7662-44E6-91AC-2A5FCDBC2FD9@montx.com> <353EFD9F-9353-4CED-90CC-5D8C24689188@montx.com> Message-ID: 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 because I can't install nothing from gem install ... thanks, r. > > // Magnus Holm From deveritt at innotts.co.uk Tue Jun 8 07:19:55 2010 From: deveritt at innotts.co.uk (Dave Everitt) Date: Tue, 8 Jun 2010 12:19:55 +0100 Subject: First time and first error In-Reply-To: References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <5941C24F-7662-44E6-91AC-2A5FCDBC2FD9@montx.com> <353EFD9F-9353-4CED-90CC-5D8C24689188@montx.com> Message-ID: <9637B0B3-06D1-42EF-9733-82987DE088F9@innotts.co.uk> Rubygems still down. Rack 1.1 on Github: http://github.com/rack/rack.git - DaveE > Are you able to install the latest rack (gem install rack), or is > rubygems.org fully down? From coder at montx.com Tue Jun 8 08:09:46 2010 From: coder at montx.com (Raimon Fernandez) Date: Tue, 8 Jun 2010 14:09:46 +0200 Subject: First time and first error In-Reply-To: <4C0E2140.1090109@monnet-usa.com> References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <5941C24F-7662-44E6-91AC-2A5FCDBC2FD9@montx.com> <353EFD9F-9353-4CED-90CC-5D8C24689188@montx.com> <4C0E2140.1090109@monnet-usa.com> Message-ID: <689471F7-B143-472A-9BBE-EFD462E4CA50@montx.com> 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 version) > If not gem install them and let us know. those are my gems: *** LOCAL GEMS *** actionmailer (2.3.5, 2.3.4, 2.2.2, 1.3.6) actionpack (2.3.5, 2.3.4, 2.2.2, 1.13.6) actionwebservice (1.2.6) activerecord (2.3.5, 2.3.4, 2.2.2, 1.15.6) activeresource (2.3.5, 2.3.4, 2.2.2) activesupport (2.3.5, 2.3.4, 2.2.2, 1.4.4) acts_as_ferret (0.4.3) builder (2.1.2) camping (2.0.392) capistrano (2.5.2) cgi_multipart_eof_fix (2.5.0) daemons (1.0.10) dnssd (0.6.0) eventmachine (0.12.10) fastthread (1.0.1) fcgi (0.8.7) ferret (0.11.6) gem_plugin (0.2.3) highline (1.5.0) hpricot (0.6.164) libxml-ruby (1.1.3, 1.1.2) mongrel (1.1.5) needle (1.3.0) net-scp (1.0.1) net-sftp (2.0.4, 2.0.1, 1.1.1) net-ssh (2.0.19, 2.0.4, 1.1.4) net-ssh-gateway (1.0.0) pg (0.8.0) prawn (0.7.1) prawn-core (0.7.1) prawn-layout (0.7.1) prawn-security (0.7.1) rack (1.0.1) rails (2.3.5, 2.3.4, 2.2.2, 1.2.6) rake (0.8.3) RedCloth (4.1.1) ruby-openid (2.1.7, 2.1.2) ruby-yadis (0.3.4) rubynode (0.1.5) rubyzip (0.9.1) sqlite3-ruby (1.2.5, 1.2.4) termios (0.9.4) thin (1.2.5) will_paginate (2.3.11) xmpp4r (0.4) I have to update rack and install markaby, but I can't, more info in the next post related. thanks, r. > > Philippe > > On 6/8/2010 4:25 AM, Raimon Fernandez wrote: >> >> 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: >> >> acBook-ProII-2:Camping montx$ camping homepage.rb >> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:27: uninitialized constant Rack::Server (NameError) >> from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' >> from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' >> from /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/camping:6 >> from /usr/bin/camping:19:in `load' >> from /usr/bin/camping:19 >> >> >> I've installed Rack as I use it with some of my Ruby On Rails and Thin projects ... >> >> Maybe the Rack::Server is not the same ? >> >> Should I install more dependencies ? >> >> thanks, >> >> r. >> _______________________________________________ >> Camping-list mailing list >> Camping-list at rubyforge.org >> http://rubyforge.org/mailman/listinfo/camping-list >> >> > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list -------------- next part -------------- An HTML attachment was scrubbed... URL: From coder at montx.com Tue Jun 8 08:13:47 2010 From: coder at montx.com (Raimon Fernandez) Date: Tue, 8 Jun 2010 14:13:47 +0200 Subject: First time and first error In-Reply-To: <9637B0B3-06D1-42EF-9733-82987DE088F9@innotts.co.uk> References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <5941C24F-7662-44E6-91AC-2A5FCDBC2FD9@montx.com> <353EFD9F-9353-4CED-90CC-5D8C24689188@montx.com> <9637B0B3-06D1-42EF-9733-82987DE088F9@innotts.co.uk> Message-ID: On 8jun, 2010, at 13:19 , Dave Everitt wrote: > Rubygems still down. Rack 1.1 on Github: > > http://github.com/rack/rack.git thanks, How I cann add this repository to gem ? Currently I have: - REMOTE SOURCES: - http://gems.rubyforge.org/ I want to add: MacBook-ProII-2:~ montx$ sudo gem sources -a http://github.com Password: Error fetching http://github.com: bad response Not Found 404 (http://github.com/specs.4.8.gz) And my /etc/hosts ... 72.4.120.124 rubygems.org 72.4.120.124 gems.rubyforge.org but when I try MacBook-ProII-2:~ montx$ sudo gem install rack it can't find the server or package ... thanks, r. > > - DaveE > >> Are you able to install the latest rack (gem install rack), or is rubygems.org fully down? > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > From deveritt at innotts.co.uk Tue Jun 8 09:38:19 2010 From: deveritt at innotts.co.uk (Dave Everitt) Date: Tue, 8 Jun 2010 14:38:19 +0100 Subject: First time and first error In-Reply-To: References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <5941C24F-7662-44E6-91AC-2A5FCDBC2FD9@montx.com> <353EFD9F-9353-4CED-90CC-5D8C24689188@montx.com> <9637B0B3-06D1-42EF-9733-82987DE088F9@innotts.co.uk> Message-ID: <81382ED6-5FA7-4D96-AED4-BAF44DC5E427@innotts.co.uk> Hi Raimon Github is no longer maintaining this but the gems are still there, so try: --source http://gems.github.com DaveE >> Rubygems still down. Rack 1.1 on Github: >> >> http://github.com/rack/rack.git > > thanks, > > How I cann add this repository to gem ? > > Currently I have: > > - REMOTE SOURCES: > - http://gems.rubyforge.org/ > > I want to add: > > MacBook-ProII-2:~ montx$ sudo gem sources -a http://github.com > Password: > Error fetching http://github.com: > bad response Not Found 404 (http://github.com/specs.4.8.gz) From coder at montx.com Tue Jun 8 09:53:54 2010 From: coder at montx.com (Raimon Fernandez) Date: Tue, 8 Jun 2010 15:53:54 +0200 Subject: First time and first error In-Reply-To: <81382ED6-5FA7-4D96-AED4-BAF44DC5E427@innotts.co.uk> References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <5941C24F-7662-44E6-91AC-2A5FCDBC2FD9@montx.com> <353EFD9F-9353-4CED-90CC-5D8C24689188@montx.com> <9637B0B3-06D1-42EF-9733-82987DE088F9@innotts.co.uk> <81382ED6-5FA7-4D96-AED4-BAF44DC5E427@innotts.co.uk> Message-ID: <757E85EE-5C6C-400B-83B0-31DE7A6386E7@montx.com> 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 ERROR: could not find gem rack locally or in a repository MacBook-ProII-2:~ montx$ thanks, r. From deveritt at innotts.co.uk Tue Jun 8 10:59:45 2010 From: deveritt at innotts.co.uk (Dave Everitt) Date: Tue, 8 Jun 2010 15:59:45 +0100 Subject: First time and first error In-Reply-To: <757E85EE-5C6C-400B-83B0-31DE7A6386E7@montx.com> References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <5941C24F-7662-44E6-91AC-2A5FCDBC2FD9@montx.com> <353EFD9F-9353-4CED-90CC-5D8C24689188@montx.com> <9637B0B3-06D1-42EF-9733-82987DE088F9@innotts.co.uk> <81382ED6-5FA7-4D96-AED4-BAF44DC5E427@innotts.co.uk> <757E85EE-5C6C-400B-83B0-31DE7A6386E7@montx.com> Message-ID: <492B6672-9C90-4B93-B634-0101CBC76161@innotts.co.uk> 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 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 > ERROR: could not find gem rack locally or in a repository > MacBook-ProII-2:~ montx$ > > thanks, > > r. From dsusco at gmail.com Tue Jun 8 11:04:29 2010 From: dsusco at gmail.com (David Susco) Date: Tue, 8 Jun 2010 11:04:29 -0400 Subject: First time on Camping In-Reply-To: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> Message-ID: 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 wrote: > hi list, > > > This is my first time here, my first time reading seriously something about Camping. > > I need to create a very simple web server for serving only .xml files, extracted from a sqlite database with some queries. > > I'm quite comfortable with Ruby on Rails, but it would be too much for this project, so I've decided to take a look at Camping or Sinatra, not sure what's the best option. > > There would be only 5 tables, 100 rows per table, and the idea is fetch data from a device like iPad/iPhone/iPod, update it and persist the changes in the server. The data transfer would be in plain .xml files, no html or css. > > Any helpful directions would be great > > :-) > > thanks, > > r. > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > -- Dave From coder at montx.com Tue Jun 8 11:24:17 2010 From: coder at montx.com (Raimon Fernandez) Date: Tue, 8 Jun 2010 17:24:17 +0200 Subject: First time and first error In-Reply-To: <492B6672-9C90-4B93-B634-0101CBC76161@innotts.co.uk> References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <5941C24F-7662-44E6-91AC-2A5FCDBC2FD9@montx.com> <353EFD9F-9353-4CED-90CC-5D8C24689188@montx.com> <9637B0B3-06D1-42EF-9733-82987DE088F9@innotts.co.uk> <81382ED6-5FA7-4D96-AED4-BAF44DC5E427@innotts.co.uk> <757E85EE-5C6C-400B-83B0-31DE7A6386E7@montx.com> <492B6672-9C90-4B93-B634-0101CBC76161@innotts.co.uk> Message-ID: 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 was 'excited' to do a demo tomorrow morning with camping and the devices but ... thanks! regards, r. > > Dave > >> 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 >> ERROR: could not find gem rack locally or in a repository >> MacBook-ProII-2:~ montx$ >> >> thanks, >> >> r. > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > From deveritt at innotts.co.uk Tue Jun 8 11:47:10 2010 From: deveritt at innotts.co.uk (Dave Everitt) Date: Tue, 8 Jun 2010 16:47:10 +0100 Subject: First time and first error In-Reply-To: <492B6672-9C90-4B93-B634-0101CBC76161@innotts.co.uk> References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <5941C24F-7662-44E6-91AC-2A5FCDBC2FD9@montx.com> <353EFD9F-9353-4CED-90CC-5D8C24689188@montx.com> <9637B0B3-06D1-42EF-9733-82987DE088F9@innotts.co.uk> <81382ED6-5FA7-4D96-AED4-BAF44DC5E427@innotts.co.uk> <757E85EE-5C6C-400B-83B0-31DE7A6386E7@montx.com> <492B6672-9C90-4B93-B634-0101CBC76161@innotts.co.uk> Message-ID: <7F52E8FE-0D0F-4DF1-AB1A-707753DFE646@innotts.co.uk> 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 install rack --source http://chneukirchen.org/releases/gems/ see: http://docs.github.com/rack/rack/ (FYI the actual rack 1.1 gem is mirrored here: http:// chneukirchen.org/releases/gems/gems/ but the above install should get it) Dave > MacBook-ProII-2:~ montx$ sudo gem install rack --source http:// > gems.github.com >> > ERROR: could not find gem rack locally or in a repository From coder at montx.com Tue Jun 8 11:54:50 2010 From: coder at montx.com (Raimon Fernandez) Date: Tue, 8 Jun 2010 17:54:50 +0200 Subject: First time and first error In-Reply-To: <7F52E8FE-0D0F-4DF1-AB1A-707753DFE646@innotts.co.uk> References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <5941C24F-7662-44E6-91AC-2A5FCDBC2FD9@montx.com> <353EFD9F-9353-4CED-90CC-5D8C24689188@montx.com> <9637B0B3-06D1-42EF-9733-82987DE088F9@innotts.co.uk> <81382ED6-5FA7-4D96-AED4-BAF44DC5E427@innotts.co.uk> <757E85EE-5C6C-400B-83B0-31DE7A6386E7@montx.com> <492B6672-9C90-4B93-B634-0101CBC76161@innotts.co.uk> <7F52E8FE-0D0F-4DF1-AB1A-707753DFE646@innotts.co.uk> Message-ID: <1A5E79E8-5FB8-430D-8752-E2822F660536@montx.com> 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 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 ... thanks all! regards, r. > see: > http://docs.github.com/rack/rack/ > (FYI the actual rack 1.1 gem is mirrored here: http://chneukirchen.org/releases/gems/gems/ but the above install should get it) > > Dave > >> MacBook-ProII-2:~ montx$ sudo gem install rack --source http://gems.github.com >>> >> ERROR: could not find gem rack locally or in a repository > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > From coder at montx.com Tue Jun 8 11:55:59 2010 From: coder at montx.com (Raimon Fernandez) Date: Tue, 8 Jun 2010 17:55:59 +0200 Subject: First time on Camping In-Reply-To: References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> Message-ID: <8884225C-28E3-4374-AD8D-96D8120FFAC6@montx.com> 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. From deveritt at innotts.co.uk Tue Jun 8 12:19:27 2010 From: deveritt at innotts.co.uk (Dave Everitt) Date: Tue, 8 Jun 2010 17:19:27 +0100 Subject: First time and first error In-Reply-To: <1A5E79E8-5FB8-430D-8752-E2822F660536@montx.com> References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <5941C24F-7662-44E6-91AC-2A5FCDBC2FD9@montx.com> <353EFD9F-9353-4CED-90CC-5D8C24689188@montx.com> <9637B0B3-06D1-42EF-9733-82987DE088F9@innotts.co.uk> <81382ED6-5FA7-4D96-AED4-BAF44DC5E427@innotts.co.uk> <757E85EE-5C6C-400B-83B0-31DE7A6386E7@montx.com> <492B6672-9C90-4B93-B634-0101CBC76161@innotts.co.uk> <7F52E8FE-0D0F-4DF1-AB1A-707753DFE646@innotts.co.uk> <1A5E79E8-5FB8-430D-8752-E2822F660536@montx.com> Message-ID: 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 ... From dsusco at gmail.com Tue Jun 8 12:43:49 2010 From: dsusco at gmail.com (David Susco) Date: Tue, 8 Jun 2010 12:43:49 -0400 Subject: First time on Camping In-Reply-To: <8884225C-28E3-4374-AD8D-96D8120FFAC6@montx.com> References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <8884225C-28E3-4374-AD8D-96D8120FFAC6@montx.com> Message-ID: 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 wrote: > 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. > > > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > -- Dave From coder at montx.com Tue Jun 8 12:47:19 2010 From: coder at montx.com (Raimon Fernandez) Date: Tue, 8 Jun 2010 18:47:19 +0200 Subject: First time and first error In-Reply-To: References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <5941C24F-7662-44E6-91AC-2A5FCDBC2FD9@montx.com> <353EFD9F-9353-4CED-90CC-5D8C24689188@montx.com> <9637B0B3-06D1-42EF-9733-82987DE088F9@innotts.co.uk> <81382ED6-5FA7-4D96-AED4-BAF44DC5E427@innotts.co.uk> <757E85EE-5C6C-400B-83B0-31DE7A6386E7@montx.com> <492B6672-9C90-4B93-B634-0101CBC76161@innotts.co.uk> <7F52E8FE-0D0F-4DF1-AB1A-707753DFE646@innotts.co.uk> <1A5E79E8-5FB8-430D-8752-E2822F660536@montx.com> Message-ID: 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 reading the Reststop documentation for serving .xml data, and here comes again the same error: MacBook-ProII-2:~ montx$ sudo gem install restr Password: WARNING: RubyGems 1.2+ index not found for: http://gems.rubyforge.org/ RubyGems will revert to legacy indexes degrading performance. Bulk updating Gem source index for: http://gems.rubyforge.org/ ERROR: While executing gem ... (Gem::RemoteSourceException) Error fetching remote gem cache: SocketError: getaddrinfo: nodename nor servname provided, or not known (http://gems.rubyforge.org/yaml) So the error is general, don't know if I can just clone the git repository of restr and install it using ruby setup.rb thanks again for your help! regards, r. From coder at montx.com Tue Jun 8 12:50:50 2010 From: coder at montx.com (Raimon Fernandez) Date: Tue, 8 Jun 2010 18:50:50 +0200 Subject: Where I can find Reststop-based blog.rb? In-Reply-To: References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <5941C24F-7662-44E6-91AC-2A5FCDBC2FD9@montx.com> <353EFD9F-9353-4CED-90CC-5D8C24689188@montx.com> <9637B0B3-06D1-42EF-9733-82987DE088F9@innotts.co.uk> <81382ED6-5FA7-4D96-AED4-BAF44DC5E427@innotts.co.uk> <757E85EE-5C6C-400B-83B0-31DE7A6386E7@montx.com> <492B6672-9C90-4B93-B634-0101CBC76161@innotts.co.uk> <7F52E8FE-0D0F-4DF1-AB1A-707753DFE646@innotts.co.uk> <1A5E79E8-5FB8-430D-8752-E2822F660536@montx.com> Message-ID: <716FBCE1-2732-4C12-B661-B6AC749712AC@montx.com> 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 From deveritt at innotts.co.uk Tue Jun 8 12:55:09 2010 From: deveritt at innotts.co.uk (Dave Everitt) Date: Tue, 8 Jun 2010 17:55:09 +0100 Subject: First time and first error In-Reply-To: References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <5941C24F-7662-44E6-91AC-2A5FCDBC2FD9@montx.com> <353EFD9F-9353-4CED-90CC-5D8C24689188@montx.com> <9637B0B3-06D1-42EF-9733-82987DE088F9@innotts.co.uk> <81382ED6-5FA7-4D96-AED4-BAF44DC5E427@innotts.co.uk> <757E85EE-5C6C-400B-83B0-31DE7A6386E7@montx.com> <492B6672-9C90-4B93-B634-0101CBC76161@innotts.co.uk> <7F52E8FE-0D0F-4DF1-AB1A-707753DFE646@innotts.co.uk> <1A5E79E8-5FB8-430D-8752-E2822F660536@montx.com> Message-ID: <4F26ADAB-FC77-4573-941A-9E7B8689F079@innotts.co.uk> 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 rake and install it yourself. > So the error is general Indeed. We have no control over rubygems.org :-) DaveE From coder at montx.com Tue Jun 8 13:01:21 2010 From: coder at montx.com (Raimon Fernandez) Date: Tue, 8 Jun 2010 19:01:21 +0200 Subject: First time on Camping In-Reply-To: References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <8884225C-28E3-4374-AD8D-96D8120FFAC6@montx.com> Message-ID: <35B3041F-6646-4C63-8D4E-F369BFCCCD42@montx.com> 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. From john.beppu at gmail.com Tue Jun 8 13:33:24 2010 From: john.beppu at gmail.com (John Beppu) Date: Tue, 8 Jun 2010 10:33:24 -0700 Subject: camping-oauth is now available In-Reply-To: <4C0D90B7.8080101@monnet-usa.com> References: <4C0D90B7.8080101@monnet-usa.com> Message-ID: Philippe, Thanks for writing both the code and the blog posts. I've been meaning to learn more about OAuth, and your work will definitely help me out. --beppu On Mon, Jun 7, 2010 at 5:37 PM, Philippe Monnet wrote: > 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). > > You can find it on GitHub: http://bit.ly/campingoauth > I also wrote a blog post on how to use it (and a little about OAuth as well > as how I approached the plugin): http://bit.ly/caoapost > > Let me know if you have any questions or if you encounter any issues. > > Philippe > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: From matma.rex at gmail.com Tue Jun 8 14:31:54 2010 From: matma.rex at gmail.com (=?UTF-8?Q?Bartosz_Dziewo=C5=84ski?=) Date: Tue, 8 Jun 2010 20:31:54 +0200 Subject: Where I can find Reststop-based blog.rb? In-Reply-To: <716FBCE1-2732-4C12-B661-B6AC749712AC@montx.com> References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <5941C24F-7662-44E6-91AC-2A5FCDBC2FD9@montx.com> <353EFD9F-9353-4CED-90CC-5D8C24689188@montx.com> <9637B0B3-06D1-42EF-9733-82987DE088F9@innotts.co.uk> <81382ED6-5FA7-4D96-AED4-BAF44DC5E427@innotts.co.uk> <757E85EE-5C6C-400B-83B0-31DE7A6386E7@montx.com> <492B6672-9C90-4B93-B634-0101CBC76161@innotts.co.uk> <7F52E8FE-0D0F-4DF1-AB1A-707753DFE646@innotts.co.uk> <1A5E79E8-5FB8-430D-8752-E2822F660536@montx.com> <716FBCE1-2732-4C12-B661-B6AC749712AC@montx.com> Message-ID: 2010/6/8, Raimon Fernandez : > 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 -- Matma Rex - http://matma-rex.prv.pl/ From dsusco at gmail.com Tue Jun 8 15:18:02 2010 From: dsusco at gmail.com (David Susco) Date: Tue, 8 Jun 2010 15:18:02 -0400 Subject: First time on Camping In-Reply-To: <35B3041F-6646-4C63-8D4E-F369BFCCCD42@montx.com> References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <8884225C-28E3-4374-AD8D-96D8120FFAC6@montx.com> <35B3041F-6646-4C63-8D4E-F369BFCCCD42@montx.com> Message-ID: Is the hoe gem installed? 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 at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > -- Dave From coder at montx.com Tue Jun 8 15:33:50 2010 From: coder at montx.com (Raimon Fernandez) Date: Tue, 8 Jun 2010 21:33:50 +0200 Subject: First time on Camping In-Reply-To: References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <8884225C-28E3-4374-AD8D-96D8120FFAC6@montx.com> <35B3041F-6646-4C63-8D4E-F369BFCCCD42@montx.com> Message-ID: <54AB7D6C-DE97-44E3-AD41-306F9CB58216@montx.com> 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 at rubyforge.org >> http://rubyforge.org/mailman/listinfo/camping-list >> > > > > -- > Dave > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > From coder at montx.com Tue Jun 8 15:36:07 2010 From: coder at montx.com (Raimon Fernandez) Date: Tue, 8 Jun 2010 21:36:07 +0200 Subject: Where I can find Reststop-based blog.rb? In-Reply-To: References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <5941C24F-7662-44E6-91AC-2A5FCDBC2FD9@montx.com> <353EFD9F-9353-4CED-90CC-5D8C24689188@montx.com> <9637B0B3-06D1-42EF-9733-82987DE088F9@innotts.co.uk> <81382ED6-5FA7-4D96-AED4-BAF44DC5E427@innotts.co.uk> <757E85EE-5C6C-400B-83B0-31DE7A6386E7@montx.com> <492B6672-9C90-4B93-B634-0101CBC76161@innotts.co.uk> <7F52E8FE-0D0F-4DF1-AB1A-707753DFE646@innotts.co.uk> <1A5E79E8-5FB8-430D-8752-E2822F660536@montx.com> <716FBCE1-2732-4C12-B661-B6AC749712AC@montx.com> Message-ID: <797ACB5F-3E24-4E89-8EF7-95A72AD02521@montx.com> On 8jun, 2010, at 20:31 , Bartosz Dziewo?ski wrote: > 2010/6/8, Raimon Fernandez : >> 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 there. > You can also find it here: http://github.com/camping/camping/blob/master/examples/blog.rb thanks, raimon > > -- > Matma Rex - http://matma-rex.prv.pl/ > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > From coder at montx.com Wed Jun 9 02:31:40 2010 From: coder at montx.com (Raimon Fernandez) Date: Wed, 9 Jun 2010 08:31:40 +0200 Subject: Where I can find Reststop-based blog.rb? In-Reply-To: References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <5941C24F-7662-44E6-91AC-2A5FCDBC2FD9@montx.com> <353EFD9F-9353-4CED-90CC-5D8C24689188@montx.com> <9637B0B3-06D1-42EF-9733-82987DE088F9@innotts.co.uk> <81382ED6-5FA7-4D96-AED4-BAF44DC5E427@innotts.co.uk> <757E85EE-5C6C-400B-83B0-31DE7A6386E7@montx.com> <492B6672-9C90-4B93-B634-0101CBC76161@innotts.co.uk> <7F52E8FE-0D0F-4DF1-AB1A-707753DFE646@innotts.co.uk> <1A5E79E8-5FB8-430D-8752-E2822F660536@montx.com> <716FBCE1-2732-4C12-B661-B6AC749712AC@montx.com> Message-ID: 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, but has some errors: MacBook-ProII-2:examples montx$ camping blog.rb ** Starting Mongrel on 0.0.0.0:3301 !! Error loading /Users/montx/Documents/Camping/reststop/examples/blog.rb: NameError: uninitialized constant Logger /Library/Ruby/Site/1.8/reststop.rb:43 /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' /Users/montx/Documents/Camping/reststop/examples/blog.rb:32 /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:60:in `load' /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:60:in `load_apps' /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:105:in `reload!' /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:180:in `reload!' /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:179:in `each' /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:179:in `reload!' /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:158:in `update' /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:157:in `find_scripts' /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:161:in `reload!' /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:169:in `call' /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:47:in `_call' /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:35:in `call' /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/showexceptions.rb:24:in `call' ... So I've added: require 'Logger' and started again camping: MacBook-ProII-2:examples montx$ camping blog.rb ** Starting Mongrel on 0.0.0.0:3301 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:172: warning: already initialized constant VERSION /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:174: warning: already initialized constant ProgName /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:181: warning: already initialized constant DEBUG /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:182: warning: already initialized constant INFO /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:183: warning: already initialized constant WARN /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:184: warning: already initialized constant ERROR /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:185: warning: already initialized constant FATAL /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:186: warning: already initialized constant UNKNOWN /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:424: warning: already initialized constant SEV_LABEL /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:436: warning: already initialized constant Format /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:537: warning: already initialized constant SiD Creating RESTful controller for "posts" using Reststop pull version number here Creating RESTful controller for "comments" using Reststop pull version number here Creating RESTful controller for "sessions" using Reststop pull version number here 127.0.0.1 - - [09/Jun/2010 08:28:07] "GET / HTTP/1.1" 404 45 0.4875 And in the browser, I see: Camping problem! /not found and If I force the login: http://127.0.0.1:3301/login Plenty of errors again ... RuntimeError: Can't find template _login (eval):16:in `camping_render' /Library/Ruby/Site/1.8/reststop.rb:135:in `render' /Users/montx/Documents/Camping/reststop/examples/blog.rb:101:in `get' (eval):27:in `send' (eval):27:in `camping_service' (eval):27:in `catch' (eval):27:in `camping_service' /Library/Ruby/Site/1.8/reststop.rb:53:in `service' (eval):38:in `call' /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/session/cookie.rb:37:in `call' (eval):42:in `call' /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:176:in `call' /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:47:in `_call' /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:35:in `call' /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/showexceptions.rb:24:in `call' /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/commonlogger.rb:18:in `call' /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:242:in `call' /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/content_length.rb:13:in `call' /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/chunked.rb:15:in `call' /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/handler/mongrel.rb:67:in `process' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run' /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/handler/mongrel.rb:38:in `run' /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/server.rb:155:in `start' /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:144:in `start' /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/server.rb:83:in `start' /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/camping:9 /usr/bin/camping:19:in `load' /usr/bin/camping:19 So, this versions is 'ready for test' ???? :-) thanks, regards, raimon From ruby at monnet-usa.com Wed Jun 9 09:09:51 2010 From: ruby at monnet-usa.com (Philippe Monnet) Date: Wed, 09 Jun 2010 07:09:51 -0600 Subject: Where I can find Reststop-based blog.rb? In-Reply-To: References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <5941C24F-7662-44E6-91AC-2A5FCDBC2FD9@montx.com> <353EFD9F-9353-4CED-90CC-5D8C24689188@montx.com> <9637B0B3-06D1-42EF-9733-82987DE088F9@innotts.co.uk> <81382ED6-5FA7-4D96-AED4-BAF44DC5E427@innotts.co.uk> <757E85EE-5C6C-400B-83B0-31DE7A6386E7@montx.com> <492B6672-9C90-4B93-B634-0101CBC76161@innotts.co.uk> <7F52E8FE-0D0F-4DF1-AB1A-707753DFE646@innotts.co.uk> <1A5E79E8-5FB8-430D-8752-E2822F660536@montx.com> <716FBCE1-2732-4C12-B661-B6AC749712AC@montx.com> Message-ID: <4C0F929F.5050401@monnet-usa.com> 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 , 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, but has some errors: > > MacBook-ProII-2:examples montx$ camping blog.rb > ** Starting Mongrel on 0.0.0.0:3301 > !! Error loading /Users/montx/Documents/Camping/reststop/examples/blog.rb: > NameError: uninitialized constant Logger > /Library/Ruby/Site/1.8/reststop.rb:43 > /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' > /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' > /Users/montx/Documents/Camping/reststop/examples/blog.rb:32 > /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:60:in `load' > /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:60:in `load_apps' > /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:105:in `reload!' > /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:180:in `reload!' > /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:179:in `each' > /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:179:in `reload!' > /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:158:in `update' > /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:157:in `find_scripts' > /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:161:in `reload!' > /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:169:in `call' > /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:47:in `_call' > /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:35:in `call' > /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/showexceptions.rb:24:in `call' > ... > > So I've added: > > require 'Logger' > > and started again camping: > > MacBook-ProII-2:examples montx$ camping blog.rb > ** Starting Mongrel on 0.0.0.0:3301 > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:172: warning: already initialized constant VERSION > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:174: warning: already initialized constant ProgName > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:181: warning: already initialized constant DEBUG > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:182: warning: already initialized constant INFO > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:183: warning: already initialized constant WARN > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:184: warning: already initialized constant ERROR > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:185: warning: already initialized constant FATAL > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:186: warning: already initialized constant UNKNOWN > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:424: warning: already initialized constant SEV_LABEL > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:436: warning: already initialized constant Format > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:537: warning: already initialized constant SiD > Creating RESTful controller for "posts" using Reststop pull version number here > Creating RESTful controller for "comments" using Reststop pull version number here > Creating RESTful controller for "sessions" using Reststop pull version number here > 127.0.0.1 - - [09/Jun/2010 08:28:07] "GET / HTTP/1.1" 404 45 0.4875 > > And in the browser, I see: > > Camping problem! > /not found > > > and If I force the login: > > http://127.0.0.1:3301/login > > Plenty of errors again ... > > RuntimeError: Can't find template _login > (eval):16:in `camping_render' > /Library/Ruby/Site/1.8/reststop.rb:135:in `render' > /Users/montx/Documents/Camping/reststop/examples/blog.rb:101:in `get' > (eval):27:in `send' > (eval):27:in `camping_service' > (eval):27:in `catch' > (eval):27:in `camping_service' > /Library/Ruby/Site/1.8/reststop.rb:53:in `service' > (eval):38:in `call' > /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/session/cookie.rb:37:in `call' > (eval):42:in `call' > /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:176:in `call' > /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:47:in `_call' > /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:35:in `call' > /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/showexceptions.rb:24:in `call' > /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/commonlogger.rb:18:in `call' > /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:242:in `call' > /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/content_length.rb:13:in `call' > /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/chunked.rb:15:in `call' > /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/handler/mongrel.rb:67:in `process' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run' > /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/handler/mongrel.rb:38:in `run' > /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/server.rb:155:in `start' > /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:144:in `start' > /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/server.rb:83:in `start' > /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/camping:9 > /usr/bin/camping:19:in `load' > /usr/bin/camping:19 > > > > So, this versions is 'ready for test' ???? > > :-) > > thanks, > > > regards, > > raimon > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list -------------- next part -------------- An HTML attachment was scrubbed... URL: From coder at montx.com Wed Jun 9 11:19:24 2010 From: coder at montx.com (Raimon Fernandez) Date: Wed, 9 Jun 2010 17:19:24 +0200 Subject: Where I can find Reststop-based blog.rb? In-Reply-To: <4C0F929F.5050401@monnet-usa.com> References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <5941C24F-7662-44E6-91AC-2A5FCDBC2FD9@montx.com> <353EFD9F-9353-4CED-90CC-5D8C24689188@montx.com> <9637B0B3-06D1-42EF-9733-82987DE088F9@innotts.co.uk> <81382ED6-5FA7-4D96-AED4-BAF44DC5E427@innotts.co.uk> <757E85EE-5C6C-400B-83B0-31DE7A6386E7@montx.com> <492B6672-9C90-4B93-B634-0101CBC76161@innotts.co.uk> <7F52E8FE-0D0F-4DF1-AB1A-707753DFE646@innotts.co.uk> <1A5E79E8-5FB8-430D-8752-E2822F660536@montx.com> <716FBCE1-2732-4C12-B661-B6AC749712AC@montx.com> <4C0F929F.5050401@monnet-usa.com> Message-ID: <874D399B-A43D-4ED6-869C-B535085D8A70@montx.com> Hi Philippe, On 9jun, 2010, at 15:09 , 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 ;-) ok, uninstalled current camping 2.0.392 and installed the gem camping 2.0 and ... it's working better as before :-) the default page is never found, but if I force for example the login, all is working fine :-) now I can focus on camping and how to send xml files instead of html thanks! regards, raimon > > On 6/9/2010 12:31 AM, Raimon Fernandez wrote: >> >> 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, but has some errors: >> >> MacBook-ProII-2:examples montx$ camping blog.rb >> ** Starting Mongrel on 0.0.0.0:3301 >> !! Error loading /Users/montx/Documents/Camping/reststop/examples/blog.rb: >> NameError: uninitialized constant Logger >> /Library/Ruby/Site/1.8/reststop.rb:43 >> /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' >> /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' >> /Users/montx/Documents/Camping/reststop/examples/blog.rb:32 >> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:60:in `load' >> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:60:in `load_apps' >> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:105:in `reload!' >> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:180:in `reload!' >> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:179:in `each' >> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:179:in `reload!' >> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:158:in `update' >> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:157:in `find_scripts' >> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:161:in `reload!' >> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:169:in `call' >> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:47:in `_call' >> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:35:in `call' >> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/showexceptions.rb:24:in `call' >> ... >> >> So I've added: >> >> require 'Logger' >> >> and started again camping: >> >> MacBook-ProII-2:examples montx$ camping blog.rb >> ** Starting Mongrel on 0.0.0.0:3301 >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:172: warning: already initialized constant VERSION >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:174: warning: already initialized constant ProgName >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:181: warning: already initialized constant DEBUG >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:182: warning: already initialized constant INFO >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:183: warning: already initialized constant WARN >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:184: warning: already initialized constant ERROR >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:185: warning: already initialized constant FATAL >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:186: warning: already initialized constant UNKNOWN >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:424: warning: already initialized constant SEV_LABEL >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:436: warning: already initialized constant Format >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:537: warning: already initialized constant SiD >> Creating RESTful controller for "posts" using Reststop pull version number here >> Creating RESTful controller for "comments" using Reststop pull version number here >> Creating RESTful controller for "sessions" using Reststop pull version number here >> 127.0.0.1 - - [09/Jun/2010 08:28:07] "GET / HTTP/1.1" 404 45 0.4875 >> >> And in the browser, I see: >> >> Camping problem! >> /not found >> >> >> and If I force the login: >> >> http://127.0.0.1:3301/login >> >> Plenty of errors again ... >> >> RuntimeError: Can't find template _login >> (eval):16:in `camping_render' >> /Library/Ruby/Site/1.8/reststop.rb:135:in `render' >> /Users/montx/Documents/Camping/reststop/examples/blog.rb:101:in `get' >> (eval):27:in `send' >> (eval):27:in `camping_service' >> (eval):27:in `catch' >> (eval):27:in `camping_service' >> /Library/Ruby/Site/1.8/reststop.rb:53:in `service' >> (eval):38:in `call' >> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/session/cookie.rb:37:in `call' >> (eval):42:in `call' >> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:176:in `call' >> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:47:in `_call' >> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:35:in `call' >> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/showexceptions.rb:24:in `call' >> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/commonlogger.rb:18:in `call' >> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:242:in `call' >> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/content_length.rb:13:in `call' >> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/chunked.rb:15:in `call' >> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/handler/mongrel.rb:67:in `process' >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client' >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each' >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client' >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run' >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize' >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new' >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run' >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize' >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new' >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run' >> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/handler/mongrel.rb:38:in `run' >> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/server.rb:155:in `start' >> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:144:in `start' >> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/server.rb:83:in `start' >> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/camping:9 >> /usr/bin/camping:19:in `load' >> /usr/bin/camping:19 >> >> >> >> So, this versions is 'ready for test' ???? >> >> :-) >> >> thanks, >> >> >> regards, >> >> raimon >> _______________________________________________ >> Camping-list mailing list >> Camping-list at rubyforge.org >> http://rubyforge.org/mailman/listinfo/camping-list > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt at roughest.net Wed Jun 9 12:21:28 2010 From: matt at roughest.net (Matt Zukowski) Date: Wed, 9 Jun 2010 12:21:28 -0400 Subject: Where I can find Reststop-based blog.rb? In-Reply-To: <4C0F929F.5050401@monnet-usa.com> References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <5941C24F-7662-44E6-91AC-2A5FCDBC2FD9@montx.com> <353EFD9F-9353-4CED-90CC-5D8C24689188@montx.com> <9637B0B3-06D1-42EF-9733-82987DE088F9@innotts.co.uk> <81382ED6-5FA7-4D96-AED4-BAF44DC5E427@innotts.co.uk> <757E85EE-5C6C-400B-83B0-31DE7A6386E7@montx.com> <492B6672-9C90-4B93-B634-0101CBC76161@innotts.co.uk> <7F52E8FE-0D0F-4DF1-AB1A-707753DFE646@innotts.co.uk> <1A5E79E8-5FB8-430D-8752-E2822F660536@montx.com> <716FBCE1-2732-4C12-B661-B6AC749712AC@montx.com> <4C0F929F.5050401@monnet-usa.com> Message-ID: 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 at rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list -------------- next part -------------- An HTML attachment was scrubbed... URL: From deveritt at innotts.co.uk Wed Jun 9 16:47:20 2010 From: deveritt at innotts.co.uk (Dave Everitt) Date: Wed, 9 Jun 2010 21:47:20 +0100 Subject: Where I can find Reststop-based blog.rb? In-Reply-To: <4C0F929F.5050401@monnet-usa.com> References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <5941C24F-7662-44E6-91AC-2A5FCDBC2FD9@montx.com> <353EFD9F-9353-4CED-90CC-5D8C24689188@montx.com> <9637B0B3-06D1-42EF-9733-82987DE088F9@innotts.co.uk> <81382ED6-5FA7-4D96-AED4-BAF44DC5E427@innotts.co.uk> <757E85EE-5C6C-400B-83B0-31DE7A6386E7@montx.com> <492B6672-9C90-4B93-B634-0101CBC76161@innotts.co.uk> <7F52E8FE-0D0F-4DF1-AB1A-707753DFE646@innotts.co.uk> <1A5E79E8-5FB8-430D-8752-E2822F660536@montx.com> <716FBCE1-2732-4C12-B661-B6AC749712AC@montx.com> <4C0F929F.5050401@monnet-usa.com> Message-ID: <051F9EA0-4F53-446B-B039-0E64CE8FA2C4@innotts.co.uk> > PS - eventually I will write a blog post on this ;-) with a link on the Camping Github wiki :-) From ruby at monnet-usa.com Wed Jun 9 17:29:35 2010 From: ruby at monnet-usa.com (Philippe Monnet) Date: Wed, 09 Jun 2010 15:29:35 -0600 Subject: Where I can find Reststop-based blog.rb? In-Reply-To: References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <5941C24F-7662-44E6-91AC-2A5FCDBC2FD9@montx.com> <353EFD9F-9353-4CED-90CC-5D8C24689188@montx.com> <9637B0B3-06D1-42EF-9733-82987DE088F9@innotts.co.uk> <81382ED6-5FA7-4D96-AED4-BAF44DC5E427@innotts.co.uk> <757E85EE-5C6C-400B-83B0-31DE7A6386E7@montx.com> <492B6672-9C90-4B93-B634-0101CBC76161@innotts.co.uk> <7F52E8FE-0D0F-4DF1-AB1A-707753DFE646@innotts.co.uk> <1A5E79E8-5FB8-430D-8752-E2822F660536@montx.com> <716FBCE1-2732-4C12-B661-B6AC749712AC@montx.com> <4C0F929F.5050401@monnet-usa.com> Message-ID: <4C1007BF.5030607@monnet-usa.com> 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... > 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 at rubyforge.org >> http://rubyforge.org/mailman/listinfo/camping-list > > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list -------------- next part -------------- An HTML attachment was scrubbed... URL: From ruby at monnet-usa.com Wed Jun 9 17:45:09 2010 From: ruby at monnet-usa.com (Philippe Monnet) Date: Wed, 09 Jun 2010 15:45:09 -0600 Subject: Where I can find Reststop-based blog.rb? In-Reply-To: <4C0F929F.5050401@monnet-usa.com> References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <5941C24F-7662-44E6-91AC-2A5FCDBC2FD9@montx.com> <353EFD9F-9353-4CED-90CC-5D8C24689188@montx.com> <9637B0B3-06D1-42EF-9733-82987DE088F9@innotts.co.uk> <81382ED6-5FA7-4D96-AED4-BAF44DC5E427@innotts.co.uk> <757E85EE-5C6C-400B-83B0-31DE7A6386E7@montx.com> <492B6672-9C90-4B93-B634-0101CBC76161@innotts.co.uk> <7F52E8FE-0D0F-4DF1-AB1A-707753DFE646@innotts.co.uk> <1A5E79E8-5FB8-430D-8752-E2822F660536@montx.com> <716FBCE1-2732-4C12-B661-B6AC749712AC@montx.com> <4C0F929F.5050401@monnet-usa.com> Message-ID: <4C100B65.6030500@monnet-usa.com> 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 folder (for example to find the haml version of the view). Since in RESTstop the Views module has 2 submodules: HTML and XML, I needed to adapt the new lookup method of Camping to have a chance to look in the HTML module first and then delegate to the base Camping method. I have committed my changes and tested them with an updated version of blog.rb. Philippe On 6/9/2010 7:09 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 , 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, but has some errors: >> >> MacBook-ProII-2:examples montx$ camping blog.rb >> ** Starting Mongrel on 0.0.0.0:3301 >> !! Error loading /Users/montx/Documents/Camping/reststop/examples/blog.rb: >> NameError: uninitialized constant Logger >> /Library/Ruby/Site/1.8/reststop.rb:43 >> /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' >> /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' >> /Users/montx/Documents/Camping/reststop/examples/blog.rb:32 >> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:60:in `load' >> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:60:in `load_apps' >> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:105:in `reload!' >> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:180:in `reload!' >> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:179:in `each' >> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:179:in `reload!' >> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:158:in `update' >> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:157:in `find_scripts' >> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:161:in `reload!' >> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:169:in `call' >> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:47:in `_call' >> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:35:in `call' >> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/showexceptions.rb:24:in `call' >> ... >> >> So I've added: >> >> require 'Logger' >> >> and started again camping: >> >> MacBook-ProII-2:examples montx$ camping blog.rb >> ** Starting Mongrel on 0.0.0.0:3301 >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:172: warning: already initialized constant VERSION >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:174: warning: already initialized constant ProgName >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:181: warning: already initialized constant DEBUG >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:182: warning: already initialized constant INFO >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:183: warning: already initialized constant WARN >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:184: warning: already initialized constant ERROR >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:185: warning: already initialized constant FATAL >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:186: warning: already initialized constant UNKNOWN >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:424: warning: already initialized constant SEV_LABEL >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:436: warning: already initialized constant Format >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:537: warning: already initialized constant SiD >> Creating RESTful controller for "posts" using Reststop pull version number here >> Creating RESTful controller for "comments" using Reststop pull version number here >> Creating RESTful controller for "sessions" using Reststop pull version number here >> 127.0.0.1 - - [09/Jun/2010 08:28:07] "GET / HTTP/1.1" 404 45 0.4875 >> >> And in the browser, I see: >> >> Camping problem! >> /not found >> >> >> and If I force the login: >> >> http://127.0.0.1:3301/login >> >> Plenty of errors again ... >> >> RuntimeError: Can't find template _login >> (eval):16:in `camping_render' >> /Library/Ruby/Site/1.8/reststop.rb:135:in `render' >> /Users/montx/Documents/Camping/reststop/examples/blog.rb:101:in `get' >> (eval):27:in `send' >> (eval):27:in `camping_service' >> (eval):27:in `catch' >> (eval):27:in `camping_service' >> /Library/Ruby/Site/1.8/reststop.rb:53:in `service' >> (eval):38:in `call' >> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/session/cookie.rb:37:in `call' >> (eval):42:in `call' >> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:176:in `call' >> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:47:in `_call' >> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:35:in `call' >> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/showexceptions.rb:24:in `call' >> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/commonlogger.rb:18:in `call' >> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:242:in `call' >> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/content_length.rb:13:in `call' >> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/chunked.rb:15:in `call' >> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/handler/mongrel.rb:67:in `process' >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client' >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each' >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client' >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run' >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize' >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new' >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run' >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize' >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new' >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run' >> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/handler/mongrel.rb:38:in `run' >> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/server.rb:155:in `start' >> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:144:in `start' >> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/server.rb:83:in `start' >> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/camping:9 >> /usr/bin/camping:19:in `load' >> /usr/bin/camping:19 >> >> >> >> So, this versions is 'ready for test' ???? >> >> :-) >> >> thanks, >> >> >> regards, >> >> raimon >> _______________________________________________ >> Camping-list mailing list >> Camping-list at rubyforge.org >> http://rubyforge.org/mailman/listinfo/camping-list > > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list -------------- next part -------------- An HTML attachment was scrubbed... URL: From ruby at monnet-usa.com Wed Jun 9 19:12:27 2010 From: ruby at monnet-usa.com (Philippe Monnet) Date: Wed, 09 Jun 2010 17:12:27 -0600 Subject: Where I can find Reststop-based blog.rb? In-Reply-To: <874D399B-A43D-4ED6-869C-B535085D8A70@montx.com> References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <5941C24F-7662-44E6-91AC-2A5FCDBC2FD9@montx.com> <353EFD9F-9353-4CED-90CC-5D8C24689188@montx.com> <9637B0B3-06D1-42EF-9733-82987DE088F9@innotts.co.uk> <81382ED6-5FA7-4D96-AED4-BAF44DC5E427@innotts.co.uk> <757E85EE-5C6C-400B-83B0-31DE7A6386E7@montx.com> <492B6672-9C90-4B93-B634-0101CBC76161@innotts.co.uk> <7F52E8FE-0D0F-4DF1-AB1A-707753DFE646@innotts.co.uk> <1A5E79E8-5FB8-430D-8752-E2822F660536@montx.com> <716FBCE1-2732-4C12-B661-B6AC749712AC@montx.com> <4C0F929F.5050401@monnet-usa.com> <874D399B-A43D-4ED6-869C-B535085D8A70@montx.com> Message-ID: <4C101FDB.6080404@monnet-usa.com> 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 you will also need to replace the ::Base module with the contents from the Blog::Base (there is a new alias statement and a new method definition) Testing is easy if you use IRB + restr + TcpTrace. See the new wiki page for details. Philippe On 6/9/2010 9:19 AM, Raimon Fernandez wrote: > Hi Philippe, > > > On 9jun, 2010, at 15:09 , 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 ;-) > > ok, > > uninstalled current camping 2.0.392 and installed the gem camping 2.0 > and ... > > it's working better as before :-) > > the default page is never found, but if I force for example the login, > all is working fine > > :-) > > now I can focus on camping and how to send xml files instead of html > > thanks! > > regards, > > raimon > > >> >> On 6/9/2010 12:31 AM, Raimon Fernandez wrote: >>> 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, but has some errors: >>> >>> MacBook-ProII-2:examples montx$ camping blog.rb >>> ** Starting Mongrel on 0.0.0.0:3301 >>> !! Error loading /Users/montx/Documents/Camping/reststop/examples/blog.rb: >>> NameError: uninitialized constant Logger >>> /Library/Ruby/Site/1.8/reststop.rb:43 >>> /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' >>> /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' >>> /Users/montx/Documents/Camping/reststop/examples/blog.rb:32 >>> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:60:in `load' >>> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:60:in `load_apps' >>> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:105:in `reload!' >>> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:180:in `reload!' >>> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:179:in `each' >>> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:179:in `reload!' >>> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:158:in `update' >>> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:157:in `find_scripts' >>> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:161:in `reload!' >>> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:169:in `call' >>> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:47:in `_call' >>> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:35:in `call' >>> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/showexceptions.rb:24:in `call' >>> ... >>> >>> So I've added: >>> >>> require 'Logger' >>> >>> and started again camping: >>> >>> MacBook-ProII-2:examples montx$ camping blog.rb >>> ** Starting Mongrel on 0.0.0.0:3301 >>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:172: warning: already initialized constant VERSION >>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:174: warning: already initialized constant ProgName >>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:181: warning: already initialized constant DEBUG >>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:182: warning: already initialized constant INFO >>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:183: warning: already initialized constant WARN >>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:184: warning: already initialized constant ERROR >>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:185: warning: already initialized constant FATAL >>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:186: warning: already initialized constant UNKNOWN >>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:424: warning: already initialized constant SEV_LABEL >>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:436: warning: already initialized constant Format >>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:537: warning: already initialized constant SiD >>> Creating RESTful controller for "posts" using Reststop pull version number here >>> Creating RESTful controller for "comments" using Reststop pull version number here >>> Creating RESTful controller for "sessions" using Reststop pull version number here >>> 127.0.0.1 - - [09/Jun/2010 08:28:07] "GET / HTTP/1.1" 404 45 0.4875 >>> >>> And in the browser, I see: >>> >>> Camping problem! >>> /not found >>> >>> >>> and If I force the login: >>> >>> http://127.0.0.1:3301/login >>> >>> Plenty of errors again ... >>> >>> RuntimeError: Can't find template _login >>> (eval):16:in `camping_render' >>> /Library/Ruby/Site/1.8/reststop.rb:135:in `render' >>> /Users/montx/Documents/Camping/reststop/examples/blog.rb:101:in `get' >>> (eval):27:in `send' >>> (eval):27:in `camping_service' >>> (eval):27:in `catch' >>> (eval):27:in `camping_service' >>> /Library/Ruby/Site/1.8/reststop.rb:53:in `service' >>> (eval):38:in `call' >>> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/session/cookie.rb:37:in `call' >>> (eval):42:in `call' >>> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:176:in `call' >>> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:47:in `_call' >>> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:35:in `call' >>> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/showexceptions.rb:24:in `call' >>> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/commonlogger.rb:18:in `call' >>> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:242:in `call' >>> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/content_length.rb:13:in `call' >>> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/chunked.rb:15:in `call' >>> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/handler/mongrel.rb:67:in `process' >>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client' >>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each' >>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client' >>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run' >>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize' >>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new' >>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run' >>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize' >>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new' >>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run' >>> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/handler/mongrel.rb:38:in `run' >>> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/server.rb:155:in `start' >>> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:144:in `start' >>> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/server.rb:83:in `start' >>> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/camping:9 >>> /usr/bin/camping:19:in `load' >>> /usr/bin/camping:19 >>> >>> >>> >>> So, this versions is 'ready for test' ???? >>> >>> :-) >>> >>> thanks, >>> >>> >>> regards, >>> >>> raimon >>> _______________________________________________ >>> Camping-list mailing list >>> Camping-list at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/camping-list >> >> _______________________________________________ >> Camping-list mailing list >> Camping-list at rubyforge.org >> http://rubyforge.org/mailman/listinfo/camping-list > > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list -------------- next part -------------- An HTML attachment was scrubbed... URL: From coder at montx.com Fri Jun 11 04:46:37 2010 From: coder at montx.com (Raimon Fernandez) Date: Fri, 11 Jun 2010 10:46:37 +0200 Subject: Where I can find Reststop-based blog.rb? In-Reply-To: <4C101FDB.6080404@monnet-usa.com> References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <5941C24F-7662-44E6-91AC-2A5FCDBC2FD9@montx.com> <353EFD9F-9353-4CED-90CC-5D8C24689188@montx.com> <9637B0B3-06D1-42EF-9733-82987DE088F9@innotts.co.uk> <81382ED6-5FA7-4D96-AED4-BAF44DC5E427@innotts.co.uk> <757E85EE-5C6C-400B-83B0-31DE7A6386E7@montx.com> <492B6672-9C90-4B93-B634-0101CBC76161@innotts.co.uk> <7F52E8FE-0D0F-4DF1-AB1A-707753DFE646@innotts.co.uk> <1A5E79E8-5FB8-430D-8752-E2822F660536@montx.com> <716FBCE1-2732-4C12-B661-B6AC749712AC@montx.com> <4C0F929F.5050401@monnet-usa.com> <874D399B-A43D-4ED6-869C-B535085D8A70@montx.com> <4C101FDB.6080404@monnet-usa.com> Message-ID: <0F8DD2B2-D834-4CF9-B9D2-A55AB227C6CF@montx.com> Hi Philippe, I'm 'out' for some days, I'll give it a try ASAP thanks, r. On 10jun, 2010, at 01:12 , Philippe Monnet wrote: > 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: > Get the latest source (we'll update the gem soon) > Use the new blog.rb > If you have customized it or created your own service you will also need to replace the ::Base module with the contents from the Blog::Base (there is a new alias statement and a new method definition) > Testing is easy if you use IRB + restr + TcpTrace. See the new wiki page for details. > > Philippe > > On 6/9/2010 9:19 AM, Raimon Fernandez wrote: >> >> Hi Philippe, >> >> >> On 9jun, 2010, at 15:09 , 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 ;-) >> >> ok, >> >> uninstalled current camping 2.0.392 and installed the gem camping 2.0 and ... >> >> it's working better as before :-) >> >> the default page is never found, but if I force for example the login, all is working fine >> >> :-) >> >> now I can focus on camping and how to send xml files instead of html >> >> thanks! >> >> regards, >> >> raimon >> >> >>> >>> On 6/9/2010 12:31 AM, Raimon Fernandez wrote: >>>> >>>> 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, but has some errors: >>>> >>>> MacBook-ProII-2:examples montx$ camping blog.rb >>>> ** Starting Mongrel on 0.0.0.0:3301 >>>> !! Error loading /Users/montx/Documents/Camping/reststop/examples/blog.rb: >>>> NameError: uninitialized constant Logger >>>> /Library/Ruby/Site/1.8/reststop.rb:43 >>>> /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' >>>> /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' >>>> /Users/montx/Documents/Camping/reststop/examples/blog.rb:32 >>>> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:60:in `load' >>>> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:60:in `load_apps' >>>> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:105:in `reload!' >>>> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:180:in `reload!' >>>> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:179:in `each' >>>> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:179:in `reload!' >>>> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/reloader.rb:158:in `update' >>>> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:157:in `find_scripts' >>>> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:161:in `reload!' >>>> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:169:in `call' >>>> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:47:in `_call' >>>> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:35:in `call' >>>> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/showexceptions.rb:24:in `call' >>>> ... >>>> >>>> So I've added: >>>> >>>> require 'Logger' >>>> >>>> and started again camping: >>>> >>>> MacBook-ProII-2:examples montx$ camping blog.rb >>>> ** Starting Mongrel on 0.0.0.0:3301 >>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:172: warning: already initialized constant VERSION >>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:174: warning: already initialized constant ProgName >>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:181: warning: already initialized constant DEBUG >>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:182: warning: already initialized constant INFO >>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:183: warning: already initialized constant WARN >>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:184: warning: already initialized constant ERROR >>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:185: warning: already initialized constant FATAL >>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:186: warning: already initialized constant UNKNOWN >>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:424: warning: already initialized constant SEV_LABEL >>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:436: warning: already initialized constant Format >>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:537: warning: already initialized constant SiD >>>> Creating RESTful controller for "posts" using Reststop pull version number here >>>> Creating RESTful controller for "comments" using Reststop pull version number here >>>> Creating RESTful controller for "sessions" using Reststop pull version number here >>>> 127.0.0.1 - - [09/Jun/2010 08:28:07] "GET / HTTP/1.1" 404 45 0.4875 >>>> >>>> And in the browser, I see: >>>> >>>> Camping problem! >>>> /not found >>>> >>>> >>>> and If I force the login: >>>> >>>> http://127.0.0.1:3301/login >>>> >>>> Plenty of errors again ... >>>> >>>> RuntimeError: Can't find template _login >>>> (eval):16:in `camping_render' >>>> /Library/Ruby/Site/1.8/reststop.rb:135:in `render' >>>> /Users/montx/Documents/Camping/reststop/examples/blog.rb:101:in `get' >>>> (eval):27:in `send' >>>> (eval):27:in `camping_service' >>>> (eval):27:in `catch' >>>> (eval):27:in `camping_service' >>>> /Library/Ruby/Site/1.8/reststop.rb:53:in `service' >>>> (eval):38:in `call' >>>> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/session/cookie.rb:37:in `call' >>>> (eval):42:in `call' >>>> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:176:in `call' >>>> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:47:in `_call' >>>> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb:35:in `call' >>>> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/showexceptions.rb:24:in `call' >>>> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/commonlogger.rb:18:in `call' >>>> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:242:in `call' >>>> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/content_length.rb:13:in `call' >>>> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/chunked.rb:15:in `call' >>>> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/handler/mongrel.rb:67:in `process' >>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client' >>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each' >>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client' >>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run' >>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize' >>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new' >>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run' >>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize' >>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new' >>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run' >>>> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/handler/mongrel.rb:38:in `run' >>>> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/server.rb:155:in `start' >>>> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/../lib/camping/server.rb:144:in `start' >>>> /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/server.rb:83:in `start' >>>> /Library/Ruby/Gems/1.8/gems/camping-2.0.392/bin/camping:9 >>>> /usr/bin/camping:19:in `load' >>>> /usr/bin/camping:19 >>>> >>>> >>>> >>>> So, this versions is 'ready for test' ???? >>>> >>>> :-) >>>> >>>> thanks, >>>> >>>> >>>> regards, >>>> >>>> raimon >>>> _______________________________________________ >>>> Camping-list mailing list >>>> Camping-list at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/camping-list >>> >>> _______________________________________________ >>> Camping-list mailing list >>> Camping-list at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/camping-list >> >> >> _______________________________________________ >> Camping-list mailing list >> Camping-list at rubyforge.org >> http://rubyforge.org/mailman/listinfo/camping-list > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list -------------- next part -------------- An HTML attachment was scrubbed... URL: From coder at montx.com Sat Jun 12 06:33:54 2010 From: coder at montx.com (Raimon Fernandez) Date: Sat, 12 Jun 2010 12:33:54 +0200 Subject: Where I can find Reststop-based blog.rb? In-Reply-To: <4C101FDB.6080404@monnet-usa.com> References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <5941C24F-7662-44E6-91AC-2A5FCDBC2FD9@montx.com> <353EFD9F-9353-4CED-90CC-5D8C24689188@montx.com> <9637B0B3-06D1-42EF-9733-82987DE088F9@innotts.co.uk> <81382ED6-5FA7-4D96-AED4-BAF44DC5E427@innotts.co.uk> <757E85EE-5C6C-400B-83B0-31DE7A6386E7@montx.com> <492B6672-9C90-4B93-B634-0101CBC76161@innotts.co.uk> <7F52E8FE-0D0F-4DF1-AB1A-707753DFE646@innotts.co.uk> <1A5E79E8-5FB8-430D-8752-E2822F660536@montx.com> <716FBCE1-2732-4C12-B661-B6AC749712AC@montx.com> <4C0F929F.5050401@monnet-usa.com> <874D399B-A43D-4ED6-869C-B535085D8A70@montx.com> <4C101FDB.6080404@monnet-usa.com> Message-ID: <254E8613-C6F0-44FA-AED1-617A9A843038@montx.com> Hi Philippe, On 10jun, 2010, at 01:12 , Philippe Monnet wrote: > 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: > Get the latest source (we'll update the gem soon) How I should install from the source code ? I've just clone the git page: 77-208-180-31:Camping montx$ git clone http://github.com/camping/reststop.git Once I have the source code downloaded, should I use this ? 77-208-180-31:reststop montx$ ruby setup.rb I'm having always the same error when I start blog.rb with camping: 77-208-180-31:examples montx$ camping blog.rb ** Starting Mongrel on 0.0.0.0:3301 !! Error loading /Users/montx/Documents/Camping/reststop/examples/blog.rb: NameError: undefined method `lookup' for module `Blog::Base' /Users/montx/Documents/Camping/reststop/examples/blog.rb:47 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in `load_without_new_constant_marking' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in `load' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in `load' /Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/reloader.rb:80:in `load_apps' /Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/reloader.rb:167:in `update' /Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/reloader.rb:161:in `map' /Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/reloader.rb:161:in `update' /Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/server.rb:51:in `find_scripts' /Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/server.rb:149:in `reload!' /Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/server.rb:144:in `start' /Library/Ruby/Gems/1.8/gems/camping-2.0/bin/camping:97 /usr/bin/camping:19:in `load' /usr/bin/camping:19 !! Error loading /Users/montx/Documents/Camping/reststop/examples/blog.rb, see backtrace above > Use the new blog.rb I suppose the new one is the one that's in git > If you have customized it or created your own service you will also need to replace the ::Base module with the contents from the Blog::Base (there is a new alias statement and a new method definition) this should be related to the problem I have ... > Testing is easy if you use IRB + restr + TcpTrace. See the new wiki page for details. ok, thanks again, raimon -------------- next part -------------- An HTML attachment was scrubbed... URL: From ruby at monnet-usa.com Sat Jun 12 08:40:37 2010 From: ruby at monnet-usa.com (ruby at monnet-usa.com) Date: Sat, 12 Jun 2010 08:40:37 -0400 (EDT) Subject: Where I can find Reststop-based blog.rb? In-Reply-To: <254E8613-C6F0-44FA-AED1-617A9A843038@montx.com> References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <5941C24F-7662-44E6-91AC-2A5FCDBC2FD9@montx.com> <353EFD9F-9353-4CED-90CC-5D8C24689188@montx.com> <9637B0B3-06D1-42EF-9733-82987DE088F9@innotts.co.uk> <81382ED6-5FA7-4D96-AED4-BAF44DC5E427@innotts.co.uk> <757E85EE-5C6C-400B-83B0-31DE7A6386E7@montx.com> <492B6672-9C90-4B93-B634-0101CBC76161@innotts.co.uk> <7F52E8FE-0D0F-4DF1-AB1A-707753DFE646@innotts.co.uk> <1A5E79E8-5FB8-430D-8752-E2822F660536@montx.com> <716FBCE1-2732-4C12-B661-B6AC749712AC@montx.com> <4C0F929F.5050401@monnet-usa.com> <874D399B-A43D-4ED6-869C-B535085D8A70@montx.com> <4C101FDB.6080404@monnet-usa.com> <254E8613-C6F0-44FA-AED1-617A9A843038@montx.com> Message-ID: <1454851940.143332.1276346437203.JavaMail.open-xchange@oxusltgw11.schlund.de> ? Hi Raimon, ? Yes to install RESTstop, run ruby setup.rb - the gem will then appear in your gems folder. (I have not been able to publish the gem yet) ? It looks like you don't have the latest version of camping so you can either: ? a) gem install camping --source http://gems.judofyr.net ? b) or clone the current camping repository and do a ruby setup.rb ? (The lookup method is a new Camping method) ? Philippe ? On June 12, 2010 at 10:33 AM Raimon Fernandez wrote: > Hi Philippe, > > On 10jun, 2010, at 01:12 , Philippe Monnet wrote: > > > 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: > > Get the latest source (we'll update the gem soon) > How I should install from the source code ? > > I've just clone the git page: > > 77-208-180-31:Camping montx$ git clone http://github.com/camping/reststop.git > > Once I have the source code downloaded, should I use this ? > > 77-208-180-31:reststop montx$ ruby setup.rb > > I'm having always the same error when I start blog.rb with camping: > > 77-208-180-31:examples montx$ camping blog.rb > ** Starting Mongrel on 0.0.0.0:3301 > !! Error loading /Users/montx/Documents/Camping/reststop/examples/blog.rb: > NameError: undefined method `lookup' for module `Blog::Base' > /Users/montx/Documents/Camping/reststop/examples/blog.rb:47 > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/g > ems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in > `load_without_new_constant_marking' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/g > ems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in `load' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/g > ems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in > `new_constants_in' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/g > ems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in `load' > /Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/reloader.rb:80:in > `load_apps' > /Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/reloader.rb:167:in > `update' > /Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/reloader.rb:161:in > `map' > /Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/reloader.rb:161:in > `update' > /Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/server.rb:51:in > `find_scripts' > /Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/server.rb:149:in > `reload!' > /Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/server.rb:144:in > `start' > /Library/Ruby/Gems/1.8/gems/camping-2.0/bin/camping:97 > /usr/bin/camping:19:in `load' > /usr/bin/camping:19 > !! Error loading /Users/montx/Documents/Camping/reststop/examples/blog.rb, see > backtrace above > > > > > > > Use the new blog.rb > I suppose the new one is the one that's in git > > > >? If you have customized it or created your own service you will also need to > >replace the ::Base module with the contents from the Blog::Base (there is a > >new alias statement and a new method definition) > this should be related to the problem I have ... > > > > Testing is easy if you use IRB + restr + TcpTrace. See the new wiki page for > > details. > > ok, > > thanks again, > > raimon > -------------- next part -------------- An HTML attachment was scrubbed... URL: From coder at montx.com Mon Jun 14 03:28:47 2010 From: coder at montx.com (Raimon Fernandez) Date: Mon, 14 Jun 2010 09:28:47 +0200 Subject: Where I can find Reststop-based blog.rb? In-Reply-To: <1454851940.143332.1276346437203.JavaMail.open-xchange@oxusltgw11.schlund.de> References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <5941C24F-7662-44E6-91AC-2A5FCDBC2FD9@montx.com> <353EFD9F-9353-4CED-90CC-5D8C24689188@montx.com> <9637B0B3-06D1-42EF-9733-82987DE088F9@innotts.co.uk> <81382ED6-5FA7-4D96-AED4-BAF44DC5E427@innotts.co.uk> <757E85EE-5C6C-400B-83B0-31DE7A6386E7@montx.com> <492B6672-9C90-4B93-B634-0101CBC76161@innotts.co.uk> <7F52E8FE-0D0F-4DF1-AB1A-707753DFE646@innotts.co.uk> <1A5E79E8-5FB8-430D-8752-E2822F660536@montx.com> <716FBCE1-2732-4C12-B661-B6AC749712AC@montx.com> <4C0F929F.5050401@monnet-usa.com> <874D399B-A43D-4ED6-869C-B535085D8A70@montx.com> <4C101FDB.6080404@monnet-usa.com> <254E8613-C6F0-44FA-AED1-617A9A843038@montx.com> <1454851940.143332.1276346437203.JavaMail.open-xchange@oxusltgw11.schlund.de> Message-ID: <1F769FC3-C4B9-48D0-A2EE-7EA3E38BE375@montx.com> Philippe, On 12jun, 2010, at 14:40 , ruby at monnet-usa.com wrote: > > Hi Raimon, > > Yes to install RESTstop, run ruby setup.rb - the gem will then appear in your gems folder. > (I have not been able to publish the gem yet) > > It looks like you don't have the latest version of camping so you can either: > a) gem install camping --source http://gems.judofyr.net > b) or clone the current camping repository and do a ruby setup.rb > > (The lookup method is a new Camping method) yes, that was the issue ... now is running, thanks again, regards, r. > > Philippe > > On June 12, 2010 at 10:33 AM Raimon Fernandez wrote: > > > Hi Philippe, > > > > On 10jun, 2010, at 01:12 , Philippe Monnet wrote: > > > > > 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: > > > Get the latest source (we'll update the gem soon) > > How I should install from the source code ? > > > > I've just clone the git page: > > > > 77-208-180-31:Camping montx$ git clone http://github.com/camping/reststop.git > > > > Once I have the source code downloaded, should I use this ? > > > > 77-208-180-31:reststop montx$ ruby setup.rb > > > > I'm having always the same error when I start blog.rb with camping: > > > > 77-208-180-31:examples montx$ camping blog.rb > > ** Starting Mongrel on 0.0.0.0:3301 > > !! Error loading /Users/montx/Documents/Camping/reststop/examples/blog.rb: > > NameError: undefined method `lookup' for module `Blog::Base' > > /Users/montx/Documents/Camping/reststop/examples/blog.rb:47 > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in `load_without_new_constant_marking' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in `load' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in' > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in `load' > > /Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/reloader.rb:80:in `load_apps' > > /Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/reloader.rb:167:in `update' > > /Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/reloader.rb:161:in `map' > > /Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/reloader.rb:161:in `update' > > /Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/server.rb:51:in `find_scripts' > > /Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/server.rb:149:in `reload!' > > /Library/Ruby/Gems/1.8/gems/camping-2.0/bin/../lib/camping/server.rb:144:in `start' > > /Library/Ruby/Gems/1.8/gems/camping-2.0/bin/camping:97 > > /usr/bin/camping:19:in `load' > > /usr/bin/camping:19 > > !! Error loading /Users/montx/Documents/Camping/reststop/examples/blog.rb, see backtrace above > > > > > > > > > > > > > Use the new blog.rb > > I suppose the new one is the one that's in git > > > > > > > If you have customized it or created your own service you will also need to replace the ::Base module with the contents from the Blog::Base (there is a new alias statement and a new method definition) > > this should be related to the problem I have ... > > > > > > > Testing is easy if you use IRB + restr + TcpTrace. See the new wiki page for details. > > > > ok, > > > > thanks again, > > > > raimon > > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list -------------- next part -------------- An HTML attachment was scrubbed... URL: From judofyr at gmail.com Thu Jun 17 15:04:10 2010 From: judofyr at gmail.com (Magnus Holm) Date: Thu, 17 Jun 2010 21:04:10 +0200 Subject: First time on Camping In-Reply-To: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> Message-ID: 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 we can tackle your problem with Camping only: For serving XML, you can use Builder (http://builder.rubyforge.org/). Here's a little helper for you: require 'camping' require 'builder' Camping.goes :App module App # We include the Views module so we can call them as methods. include Views module Helpers def xml(name) # We'll need to send this as text/xml @headers["Content-Type"] = "text/xml" result = String.new # The builder takes a `target` where the XML will end up builder = Builder::XmlMarkup.new(:target => result, :indent => 2) # Generates a builder.instruct! # Calls the method you sent in, passing in the builder as an argument send(name, builder) # Return the restult result end end end ---- If you for instance want to generate this XML: Content of post You would have the following view: module App::Views def posts(xml) xml.posts do @posts.each do |post| xml.post(post.content, :title => post.title) end end end end And if you want this XML: Hiya Hey You have this view: module App::Views def posts(xml) xml.posts do @posts.each do |post| xml.post do xml.title(post.title) xml.content(post.content) end end end end end ----- You render the XML in the controller like this: module App::Controllers class Index def get # The view has access to this variable @posts = Post.all # Calls the helper, which in turn calls the view xml :posts end end end ---- 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 help you here, we need to know a few things: Is it going to fetch data from a specific place, or should it create its own database (from scratch)? Any specific database you want to use? Here's 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 wrote: > hi list, > > > This is my first time here, my first time reading seriously something about Camping. > > I need to create a very simple web server for serving only .xml files, extracted from a sqlite database with some queries. > > I'm quite comfortable with Ruby on Rails, but it would be too much for this project, so I've decided to take a look at Camping or Sinatra, not sure what's the best option. > > There would be only 5 tables, 100 rows per table, and the idea is fetch data from a device like iPad/iPhone/iPod, update it and persist the changes in the server. The data transfer would be in plain .xml files, no html or css. > > Any helpful directions would be great > > :-) > > thanks, > > r. > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > From matt at roughest.net Thu Jun 17 17:12:12 2010 From: matt at roughest.net (Matt Zukowski) Date: Thu, 17 Jun 2010 17:12:12 -0400 Subject: First time on Camping In-Reply-To: <54AB7D6C-DE97-44E3-AD41-306F9CB58216@montx.com> References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <8884225C-28E3-4374-AD8D-96D8120FFAC6@montx.com> <35B3041F-6646-4C63-8D4E-F369BFCCCD42@montx.com> <54AB7D6C-DE97-44E3-AD41-306F9CB58216@montx.com> Message-ID: 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 at rubyforge.org > >> http://rubyforge.org/mailman/listinfo/camping-list > >> > > > > > > > > -- > > Dave > > _______________________________________________ > > Camping-list mailing list > > Camping-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/camping-list > > > > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt at roughest.net Thu Jun 17 17:29:46 2010 From: matt at roughest.net (Matt Zukowski) Date: Thu, 17 Jun 2010 17:29:46 -0400 Subject: First time on Camping In-Reply-To: References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <8884225C-28E3-4374-AD8D-96D8120FFAC6@montx.com> <35B3041F-6646-4C63-8D4E-F369BFCCCD42@montx.com> <54AB7D6C-DE97-44E3-AD41-306F9CB58216@montx.com> Message-ID: 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 at rubyforge.org >> >> http://rubyforge.org/mailman/listinfo/camping-list >> >> >> > >> > >> > >> > -- >> > Dave >> > _______________________________________________ >> > Camping-list mailing list >> > Camping-list at rubyforge.org >> > http://rubyforge.org/mailman/listinfo/camping-list >> > >> >> >> _______________________________________________ >> Camping-list mailing list >> Camping-list at rubyforge.org >> http://rubyforge.org/mailman/listinfo/camping-list >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From coder at montx.com Fri Jun 18 03:16:06 2010 From: coder at montx.com (Raimon Fernandez) Date: Fri, 18 Jun 2010 09:16:06 +0200 Subject: First time on Camping In-Reply-To: References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> Message-ID: Hi Magnus, On 17jun, 2010, at 21:04 , Magnus Holm wrote: > 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 we can tackle your problem with > Camping only: Thanks for your code. It's true that if I can do what I want with fewer tools/gems, it's a better starter, and once I'm confident I can go further. > That's (hopefully) the simplest way to generate XML with Camping. yes! > You still need to create a model to store/retrieve the data. Before we > can help you here, we need to know a few things: Is it going to fetch > data from a specific place, or should it create its own database (from > scratch)? Any specific database you want to use? Not sure yet, but maybe Sqlite or PostgreSQL. Normally I use PostgreSQL for all of my RoR projects, but in this case Sqlite would be simpler. The initial data will come from some xml files but I can update the database from another file with Ruby code. In some examples of Camping they just created the database but I couldn't find where they are storing it ... So, the best option is to provide to Camping an existing SQLite database. > Here's a Pastie with all the code: http://pastie.org/1008983 (Should > work on any version of Camping). thanks, it works and it's very simple :-) Now I'm playing with your code and examples, thanks again! regards, raimon From deveritt at innotts.co.uk Fri Jun 18 04:25:05 2010 From: deveritt at innotts.co.uk (Dave Everitt) Date: Fri, 18 Jun 2010 09:25:05 +0100 Subject: First time on Camping In-Reply-To: References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <8884225C-28E3-4374-AD8D-96D8120FFAC6@montx.com> <35B3041F-6646-4C63-8D4E-F369BFCCCD42@montx.com> <54AB7D6C-DE97-44E3-AD41-306F9CB58216@montx.com> Message-ID: <302915F2-B239-4A01-8DEA-662D9BD4DDCD@innotts.co.uk> Rubygems.org was playing up recently (gems.rubyforge.org forwards to it - see previous posts), and this looks like the same issue... Dave E. > Something's not right with your rubygems install.... maybe try `gem > update --system` first? From coder at montx.com Fri Jun 18 04:55:53 2010 From: coder at montx.com (Raimon Fernandez) Date: Fri, 18 Jun 2010 10:55:53 +0200 Subject: First time on Camping In-Reply-To: <302915F2-B239-4A01-8DEA-662D9BD4DDCD@innotts.co.uk> References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <8884225C-28E3-4374-AD8D-96D8120FFAC6@montx.com> <35B3041F-6646-4C63-8D4E-F369BFCCCD42@montx.com> <54AB7D6C-DE97-44E3-AD41-306F9CB58216@montx.com> <302915F2-B239-4A01-8DEA-662D9BD4DDCD@innotts.co.uk> Message-ID: <9DFA32A0-1D61-4A3F-A55C-6EDED8116DCF@montx.com> On 18jun, 2010, at 10:25 , Dave Everitt wrote: > Rubygems.org was playing up recently (gems.rubyforge.org forwards to it - see previous posts), and this looks like the same issue... Dave E. > >> Something's not right with your rubygems install.... maybe try `gem update --system` first? yes, now it's working ok ... thanks, r. From coder at montx.com Fri Jun 18 05:09:06 2010 From: coder at montx.com (Raimon Fernandez) Date: Fri, 18 Jun 2010 11:09:06 +0200 Subject: First time on Camping In-Reply-To: References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> Message-ID: <8D2C70CC-E459-43F7-81FB-844924A7BC3F@montx.com> 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 help you here, we need to know a few things: Is it going to fetch > data from a specific place, or should it create its own database (from > scratch)? Any specific database you want to use? > > Here's a Pastie with all the code: http://pastie.org/1008983 (Should > work on any version of Camping). I'm trying to adapt your pastie to use a sqlite databse, but I'm having some errors that I can't see ... Here's a Pastie with all code: http://pastie.org/1009797 I'm just trying to create with code a simple table called Persons with some fields but ... :-) Also, I can't find where is creating the database ... thanks, regards, r. From judofyr at gmail.com Fri Jun 18 06:33:57 2010 From: judofyr at gmail.com (Magnus Holm) Date: Fri, 18 Jun 2010 12:33:57 +0200 Subject: First time on Camping In-Reply-To: <8D2C70CC-E459-43F7-81FB-844924A7BC3F@montx.com> References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <8D2C70CC-E459-43F7-81FB-844924A7BC3F@montx.com> Message-ID: Yeah, people always get a little confused because you don't need to define your database when you're using bin/camping (it has a default SQLite database at ~/.camping.db). I also see that there's some old, database code here; we definitely need to update our documentation (yes, I'm working on it!) First of all, the table name should be "list_people" (since "people" is the plural to "person" and the table names are always in lowercase), but you should rather do `create_table Person.table_name` and `drop_table Person.table_name` because then you don't need to think about it at all :-) Secondly, you only need this in order to create the database: def List.create List::Models.create_schema end Then it will use a SQLite database at ~/.camping.db (as long as you start it with `camping list.rb`). This is perfect for just testing things out (you can also run `camping -C list.rb` to get an IRB console). Please note that if you only run `camping list.rb`, you'll have to load the page in the browser before the migrations run. If you want to use a specific database, you can add this: def List.create List::Models::Base.establish_connection( :adapter => "postgresql", :username => "root", :password => "toor, :database => "list" ) List::Models.create_schema end Or you might want to add the information in a database.yml file: --- adapter: postgresql username: root password: toor database: list And then rather do: require 'yaml' def List.create List::Models::Base.establish_connection(YAML.load(File.read("database.yml"))) List::Models.create_schema end Please note that if you connect to a database which already has the tables, DON'T run `List::Models.create_schema` as this will probably delete the whole database. General rule: you only need migrations to setup the database. -- And thirdly: Yes, we are aware of that the migration support isn't very nice. In the future we hope to have something like: module List::Models class Person t.string :name end end def List.create List::Models.setup! end Until then, you'll have to stick with the current solution :-) // Magnus Holm On Fri, Jun 18, 2010 at 11:09, Raimon Fernandez 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 help you here, we need to know a few things: Is it going to fetch >> data from a specific place, or should it create its own database (from >> scratch)? Any specific database you want to use? >> >> Here's a Pastie with all the code: http://pastie.org/1008983 (Should >> work on any version of Camping). > > I'm trying to adapt your pastie to use a sqlite databse, but I'm having some errors that I can't see ... > > Here's a Pastie with all code: http://pastie.org/1009797 > > I'm just trying to create with code a simple table called Persons with some fields but ... > > :-) > > Also, ?I can't find where is creating the database ... > > thanks, > > regards, > > r. > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > From coder at montx.com Fri Jun 18 07:23:25 2010 From: coder at montx.com (Raimon Fernandez) Date: Fri, 18 Jun 2010 13:23:25 +0200 Subject: First time on Camping In-Reply-To: References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <8D2C70CC-E459-43F7-81FB-844924A7BC3F@montx.com> Message-ID: <011ABE8E-CAF7-42E9-AA68-1BCA62992A1F@montx.com> 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 databse, and is working also. I've created a new sqlite3 from terminal and filled-up with some data and now I can use this databse from Camping, cool! And, caping is serving the data with .xml format and I can get it from my devices, cool! I'm going to play more with thise, sure I'll come back with more questions ... :-) ah, I always use Thin with Nginx for my RoR instead of Mongrel, I suppose there would be no problem with camping ? and speed: normally it's all very fast, but sometimes, it takes a little bit (3 or more seconds) to respond camping, and I'm not doing 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 database when you're using bin/camping (it has a default > SQLite database at ~/.camping.db). > > I also see that there's some old, database code here; we definitely > need to update our documentation (yes, I'm working on it!) > > First of all, the table name should be "list_people" (since "people" > is the plural to "person" and the table names are always in > lowercase), but you should rather do `create_table Person.table_name` > and `drop_table Person.table_name` because then you don't need to > think about it at all :-) > > Secondly, you only need this in order to create the database: > > def List.create > List::Models.create_schema > end > > Then it will use a SQLite database at ~/.camping.db (as long as you > start it with `camping list.rb`). This is perfect for just testing > things out (you can also run `camping -C list.rb` to get an IRB > console). Please note that if you only run `camping list.rb`, you'll > have to load the page in the browser before the migrations run. > > If you want to use a specific database, you can add this: > > def List.create > List::Models::Base.establish_connection( > :adapter => "postgresql", > :username => "root", > :password => "toor, > :database => "list" > ) > List::Models.create_schema > end > > Or you might want to add the information in a database.yml file: > > --- > adapter: postgresql > username: root > password: toor > database: list > > And then rather do: > > require 'yaml' > > def List.create > List::Models::Base.establish_connection(YAML.load(File.read("database.yml"))) > List::Models.create_schema > end > > Please note that if you connect to a database which already has the > tables, DON'T run `List::Models.create_schema` as this will probably > delete the whole database. General rule: you only need migrations to > setup the database. > > -- > > And thirdly: Yes, we are aware of that the migration support isn't > very nice. In the future we hope to have something like: > > module List::Models > class Person > t.string :name > end > end > > def List.create > List::Models.setup! > end > > Until then, you'll have to stick with the current solution :-) > > > // Magnus Holm > > > > On Fri, Jun 18, 2010 at 11:09, Raimon Fernandez 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 help you here, we need to know a few things: Is it going to fetch >>> data from a specific place, or should it create its own database (from >>> scratch)? Any specific database you want to use? >>> >>> Here's a Pastie with all the code: http://pastie.org/1008983 (Should >>> work on any version of Camping). >> >> I'm trying to adapt your pastie to use a sqlite databse, but I'm having some errors that I can't see ... >> >> Here's a Pastie with all code: http://pastie.org/1009797 >> >> I'm just trying to create with code a simple table called Persons with some fields but ... >> >> :-) >> >> Also, I can't find where is creating the database ... >> >> thanks, >> >> regards, >> >> r. >> _______________________________________________ >> Camping-list mailing list >> Camping-list at rubyforge.org >> http://rubyforge.org/mailman/listinfo/camping-list >> > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list From deveritt at innotts.co.uk Fri Jun 18 07:30:34 2010 From: deveritt at innotts.co.uk (Dave Everitt) Date: Fri, 18 Jun 2010 12:30:34 +0100 Subject: First time on Camping In-Reply-To: References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <8D2C70CC-E459-43F7-81FB-844924A7BC3F@montx.com> Message-ID: <43EC65F9-A806-4158-BC78-D411640A2209@innotts.co.uk> Raimon a few things you probably already know but... just in case! 1. because of the preceding '.' in '.camping.db' you'll need to use ls - al to see the file listed (in the ~ home dir) in your file system. 2. In Magnus' example settings (database => "list") you can also add a path to your database as well as its name (unless something's changed since I last did it!) e.g.: database => "./data/mydata.db" 3. The Firefox SQLite Manager is handy for errr.. managing your SQLite database: https://addons.mozilla.org/en-US/firefox/addon/5817/ Note: with SQLite you cannot change column names once they're in the database (unless anyone knows better?). Dave E. > Yeah, people always get a little confused because you don't need to > define your database when you're using bin/camping (it has a > default SQLite database at ~/.camping.db). From judofyr at gmail.com Fri Jun 18 07:41:47 2010 From: judofyr at gmail.com (Magnus Holm) Date: Fri, 18 Jun 2010 13:41:47 +0200 Subject: First time on Camping In-Reply-To: <011ABE8E-CAF7-42E9-AA68-1BCA62992A1F@montx.com> References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <8D2C70CC-E459-43F7-81FB-844924A7BC3F@montx.com> <011ABE8E-CAF7-42E9-AA68-1BCA62992A1F@montx.com> Message-ID: 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 start` (when you're in the app directory) One thing you'll have to remember is that any exceptions which are raised, won't be rescued inside Camping, but rather be raised all the way up. Thin (hopefully) catches it somewhere, but you should probably handle it yourself: module List def r500(klass, method, exception) # Do some funky things "There was an exception in #{klass}.#{method}: #{exception}" end end You could also use something like http://hoptoadapp.com/ (they have free plans) which gives you a nice dashboard and sends you an email every time an exception is raised. Just create an account, run `gem install toadhopper` and add this to your app: require 'toadhopper' module List ExceptionHandler = Toadhopper.new("YOUR API KEY") def r500(klass, method, exception) # Send the exception to Hoptoad: ExceptionHandler.post!(exception) # Render something for the user. 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 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 databse, and is working also. > > I've created a new sqlite3 from terminal and filled-up with some data and now I can use this databse from Camping, cool! > > And, caping is serving the data with .xml format and I can get it from my devices, cool! > > I'm going to play more with thise, sure I'll come back with more questions ... > > :-) > > ah, I always use Thin with Nginx for my RoR instead of Mongrel, I suppose there would be no problem with camping ? > > and speed: normally it's all very fast, but sometimes, it takes a little bit (3 or more seconds) to respond camping, and I'm not doing 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 database when you're using bin/camping (it has a default >> SQLite database at ~/.camping.db). >> >> I also see that there's some old, database code here; we definitely >> need to update our documentation (yes, I'm working on it!) >> >> First of all, the table name should be "list_people" (since "people" >> is the plural to "person" and the table names are always in >> lowercase), but you should rather do `create_table Person.table_name` >> and `drop_table Person.table_name` because then you don't need to >> think about it at all :-) >> >> Secondly, you only need this in order to create the database: >> >> def List.create >> ?List::Models.create_schema >> end >> >> Then it will use a SQLite database at ~/.camping.db (as long as you >> start it with `camping list.rb`). This is perfect for just testing >> things out (you can also run `camping -C list.rb` to get an IRB >> console). Please note that if you only run `camping list.rb`, you'll >> have to load the page in the browser before the migrations run. >> >> If you want to use a specific database, you can add this: >> >> def List.create >> ?List::Models::Base.establish_connection( >> ? ?:adapter => "postgresql", >> ? ?:username => "root", >> ? ?:password => "toor, >> ? ?:database => "list" >> ?) >> ?List::Models.create_schema >> end >> >> Or you might want to add the information in a database.yml file: >> >> --- >> adapter: postgresql >> username: root >> password: toor >> database: list >> >> And then rather do: >> >> require 'yaml' >> >> def List.create >> ?List::Models::Base.establish_connection(YAML.load(File.read("database.yml"))) >> ?List::Models.create_schema >> end >> >> Please note that if you connect to a database which already has the >> tables, DON'T run `List::Models.create_schema` as this will probably >> delete the whole database. General rule: you only need migrations to >> setup the database. >> >> -- >> >> And thirdly: Yes, we are aware of that the migration support isn't >> very nice. In the future we hope to have something like: >> >> module List::Models >> ?class Person >> ? ?t.string :name >> ?end >> end >> >> def List.create >> ?List::Models.setup! >> end >> >> Until then, you'll have to stick with the current solution :-) >> >> >> // Magnus Holm >> >> >> >> On Fri, Jun 18, 2010 at 11:09, Raimon Fernandez 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 help you here, we need to know a few things: Is it going to fetch >>>> data from a specific place, or should it create its own database (from >>>> scratch)? Any specific database you want to use? >>>> >>>> Here's a Pastie with all the code: http://pastie.org/1008983 (Should >>>> work on any version of Camping). >>> >>> I'm trying to adapt your pastie to use a sqlite databse, but I'm having some errors that I can't see ... >>> >>> Here's a Pastie with all code: http://pastie.org/1009797 >>> >>> I'm just trying to create with code a simple table called Persons with some fields but ... >>> >>> :-) >>> >>> Also, ?I can't find where is creating the database ... >>> >>> thanks, >>> >>> regards, >>> >>> r. >>> _______________________________________________ >>> Camping-list mailing list >>> Camping-list at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/camping-list >>> >> _______________________________________________ >> Camping-list mailing list >> Camping-list at rubyforge.org >> http://rubyforge.org/mailman/listinfo/camping-list > > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > From judofyr at gmail.com Fri Jun 18 09:34:35 2010 From: judofyr at gmail.com (Magnus Holm) Date: Fri, 18 Jun 2010 15:34:35 +0200 Subject: First time on Camping In-Reply-To: <011ABE8E-CAF7-42E9-AA68-1BCA62992A1F@montx.com> References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <8D2C70CC-E459-43F7-81FB-844924A7BC3F@montx.com> <011ABE8E-CAF7-42E9-AA68-1BCA62992A1F@montx.com> Message-ID: 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 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 databse, and is working also. > > I've created a new sqlite3 from terminal and filled-up with some data and now I can use this databse from Camping, cool! > > And, caping is serving the data with .xml format and I can get it from my devices, cool! > > I'm going to play more with thise, sure I'll come back with more questions ... > > :-) > > ah, I always use Thin with Nginx for my RoR instead of Mongrel, I suppose there would be no problem with camping ? > > and speed: normally it's all very fast, but sometimes, it takes a little bit (3 or more seconds) to respond camping, and I'm not doing 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 database when you're using bin/camping (it has a default >> SQLite database at ~/.camping.db). >> >> I also see that there's some old, database code here; we definitely >> need to update our documentation (yes, I'm working on it!) >> >> First of all, the table name should be "list_people" (since "people" >> is the plural to "person" and the table names are always in >> lowercase), but you should rather do `create_table Person.table_name` >> and `drop_table Person.table_name` because then you don't need to >> think about it at all :-) >> >> Secondly, you only need this in order to create the database: >> >> def List.create >> ?List::Models.create_schema >> end >> >> Then it will use a SQLite database at ~/.camping.db (as long as you >> start it with `camping list.rb`). This is perfect for just testing >> things out (you can also run `camping -C list.rb` to get an IRB >> console). Please note that if you only run `camping list.rb`, you'll >> have to load the page in the browser before the migrations run. >> >> If you want to use a specific database, you can add this: >> >> def List.create >> ?List::Models::Base.establish_connection( >> ? ?:adapter => "postgresql", >> ? ?:username => "root", >> ? ?:password => "toor, >> ? ?:database => "list" >> ?) >> ?List::Models.create_schema >> end >> >> Or you might want to add the information in a database.yml file: >> >> --- >> adapter: postgresql >> username: root >> password: toor >> database: list >> >> And then rather do: >> >> require 'yaml' >> >> def List.create >> ?List::Models::Base.establish_connection(YAML.load(File.read("database.yml"))) >> ?List::Models.create_schema >> end >> >> Please note that if you connect to a database which already has the >> tables, DON'T run `List::Models.create_schema` as this will probably >> delete the whole database. General rule: you only need migrations to >> setup the database. >> >> -- >> >> And thirdly: Yes, we are aware of that the migration support isn't >> very nice. In the future we hope to have something like: >> >> module List::Models >> ?class Person >> ? ?t.string :name >> ?end >> end >> >> def List.create >> ?List::Models.setup! >> end >> >> Until then, you'll have to stick with the current solution :-) >> >> >> // Magnus Holm >> >> >> >> On Fri, Jun 18, 2010 at 11:09, Raimon Fernandez 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 help you here, we need to know a few things: Is it going to fetch >>>> data from a specific place, or should it create its own database (from >>>> scratch)? Any specific database you want to use? >>>> >>>> Here's a Pastie with all the code: http://pastie.org/1008983 (Should >>>> work on any version of Camping). >>> >>> I'm trying to adapt your pastie to use a sqlite databse, but I'm having some errors that I can't see ... >>> >>> Here's a Pastie with all code: http://pastie.org/1009797 >>> >>> I'm just trying to create with code a simple table called Persons with some fields but ... >>> >>> :-) >>> >>> Also, ?I can't find where is creating the database ... >>> >>> thanks, >>> >>> regards, >>> >>> r. >>> _______________________________________________ >>> Camping-list mailing list >>> Camping-list at rubyforge.org >>> ? -- // Magnus Holm From coder at montx.com Fri Jun 18 09:49:50 2010 From: coder at montx.com (Raimon Fernandez) Date: Fri, 18 Jun 2010 15:49:50 +0200 Subject: First time on Camping In-Reply-To: References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <8D2C70CC-E459-43F7-81FB-844924A7BC3F@montx.com> <011ABE8E-CAF7-42E9-AA68-1BCA62992A1F@montx.com> Message-ID: <9F5DB7B3-4416-40E5-974B-444AB4363DCE@montx.com> On 18jun, 2010, at 15:34 , Magnus Holm wrote: > Oh, and I also have the speed issue! That's definitely a bug. I'll > have a look at it later... uffff, I was thinking it was my code ... :-) thanks ! regards, r. > > On Friday, June 18, 2010, Raimon Fernandez 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 databse, and is working also. >> >> I've created a new sqlite3 from terminal and filled-up with some data and now I can use this databse from Camping, cool! >> >> And, caping is serving the data with .xml format and I can get it from my devices, cool! >> >> I'm going to play more with thise, sure I'll come back with more questions ... >> >> :-) >> >> ah, I always use Thin with Nginx for my RoR instead of Mongrel, I suppose there would be no problem with camping ? >> >> and speed: normally it's all very fast, but sometimes, it takes a little bit (3 or more seconds) to respond camping, and I'm not doing 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 database when you're using bin/camping (it has a default >>> SQLite database at ~/.camping.db). >>> >>> I also see that there's some old, database code here; we definitely >>> need to update our documentation (yes, I'm working on it!) >>> >>> First of all, the table name should be "list_people" (since "people" >>> is the plural to "person" and the table names are always in >>> lowercase), but you should rather do `create_table Person.table_name` >>> and `drop_table Person.table_name` because then you don't need to >>> think about it at all :-) >>> >>> Secondly, you only need this in order to create the database: >>> >>> def List.create >>> List::Models.create_schema >>> end >>> >>> Then it will use a SQLite database at ~/.camping.db (as long as you >>> start it with `camping list.rb`). This is perfect for just testing >>> things out (you can also run `camping -C list.rb` to get an IRB >>> console). Please note that if you only run `camping list.rb`, you'll >>> have to load the page in the browser before the migrations run. >>> >>> If you want to use a specific database, you can add this: >>> >>> def List.create >>> List::Models::Base.establish_connection( >>> :adapter => "postgresql", >>> :username => "root", >>> :password => "toor, >>> :database => "list" >>> ) >>> List::Models.create_schema >>> end >>> >>> Or you might want to add the information in a database.yml file: >>> >>> --- >>> adapter: postgresql >>> username: root >>> password: toor >>> database: list >>> >>> And then rather do: >>> >>> require 'yaml' >>> >>> def List.create >>> List::Models::Base.establish_connection(YAML.load(File.read("database.yml"))) >>> List::Models.create_schema >>> end >>> >>> Please note that if you connect to a database which already has the >>> tables, DON'T run `List::Models.create_schema` as this will probably >>> delete the whole database. General rule: you only need migrations to >>> setup the database. >>> >>> -- >>> >>> And thirdly: Yes, we are aware of that the migration support isn't >>> very nice. In the future we hope to have something like: >>> >>> module List::Models >>> class Person >>> t.string :name >>> end >>> end >>> >>> def List.create >>> List::Models.setup! >>> end >>> >>> Until then, you'll have to stick with the current solution :-) >>> >>> >>> // Magnus Holm >>> >>> >>> >>> On Fri, Jun 18, 2010 at 11:09, Raimon Fernandez 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 help you here, we need to know a few things: Is it going to fetch >>>>> data from a specific place, or should it create its own database (from >>>>> scratch)? Any specific database you want to use? >>>>> >>>>> Here's a Pastie with all the code: http://pastie.org/1008983 (Should >>>>> work on any version of Camping). >>>> >>>> I'm trying to adapt your pastie to use a sqlite databse, but I'm having some errors that I can't see ... >>>> >>>> Here's a Pastie with all code: http://pastie.org/1009797 >>>> >>>> I'm just trying to create with code a simple table called Persons with some fields but ... >>>> >>>> :-) >>>> >>>> Also, I can't find where is creating the database ... >>>> >>>> thanks, >>>> >>>> regards, >>>> >>>> r. >>>> _______________________________________________ >>>> Camping-list mailing list >>>> Camping-list at rubyforge.org >>>> > > -- > // Magnus Holm > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list From coder at montx.com Fri Jun 18 10:59:56 2010 From: coder at montx.com (Raimon Fernandez) Date: Fri, 18 Jun 2010 16:59:56 +0200 Subject: First time on Camping In-Reply-To: References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> Message-ID: <60A8C21C-E669-48AA-8E08-D54752E0DCE6@montx.com> 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: Jim Fern?ndez 555-1234 but camping is formatting like this: Jim Fernández 555-1234 The main difference is the encoding for some chars: ? => á I can't find in builder how to write values without escaping them ... thanks, r. On 17jun, 2010, at 21:04 , Magnus Holm wrote: > And if you want this XML: > > > > > Hiya > Hey > > > > You have this view: > > module App::Views > def posts(xml) > xml.posts do > @posts.each do |post| > xml.post do > xml.title(post.title) > xml.content(post.content) > end > end > end > end > end From deveritt at innotts.co.uk Fri Jun 18 11:47:25 2010 From: deveritt at innotts.co.uk (Dave Everitt) Date: Fri, 18 Jun 2010 16:47:25 +0100 Subject: First time on Camping In-Reply-To: <60A8C21C-E669-48AA-8E08-D54752E0DCE6@montx.com> References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <60A8C21C-E669-48AA-8E08-D54752E0DCE6@montx.com> Message-ID: <85EB0612-C205-4059-AA9A-F8A8AA9983ED@innotts.co.uk> 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 difference is the encoding for some chars: > > ? => á From judofyr at gmail.com Fri Jun 18 11:51:07 2010 From: judofyr at gmail.com (Magnus Holm) Date: Fri, 18 Jun 2010 17:51:07 +0200 Subject: First time on Camping In-Reply-To: <60A8C21C-E669-48AA-8E08-D54752E0DCE6@montx.com> References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <60A8C21C-E669-48AA-8E08-D54752E0DCE6@montx.com> Message-ID: 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 wrote: > 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: > > > > > ?Jim Fern?ndez > ?555-1234 > > > > but camping is formatting like this: > > > > ?Jim Fernández > ?555-1234 > > > > The main difference is the encoding for some chars: > > ? => á > > I can't find in builder how to write values without escaping them ... > > thanks, > > r. > > On 17jun, 2010, at 21:04 , Magnus Holm wrote: > >> And if you want this XML: >> >> >> >> ? >> ? ?Hiya >> ? ?Hey >> ? >> >> >> You have this view: >> >> module App::Views >> ?def posts(xml) >> ? ?xml.posts do >> ? ? ?@posts.each do |post| >> ? ? ? ?xml.post do >> ? ? ? ? ?xml.title(post.title) >> ? ? ? ? ?xml.content(post.content) >> ? ? ? ?end >> ? ? ?end >> ? ?end >> ?end >> end > > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > -- // Magnus Holm From coder at montx.com Sat Jun 19 09:53:25 2010 From: coder at montx.com (Raimon Fernandez) Date: Sat, 19 Jun 2010 15:53:25 +0200 Subject: First time on Camping In-Reply-To: References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <60A8C21C-E669-48AA-8E08-D54752E0DCE6@montx.com> Message-ID: Hi all, On 18jun, 2010, at 17:51 , Magnus Holm wrote: > 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... But in this case, it's an ASCII ?, well, the extended ASCII, and all .xml files that I've created never added this encoded, always the char itself, like ? ? ? ? I'm using the TBMXML parser http://www.tbxml.co.uk/TBXML/TBXML_Free.html And because the xml file has the encoding="UTF-8" I suppose that those chars can be added as they are without encoding. And also I'm using other C libraries in other projects that they do not escape those chars ... Thanks! regards, r. > > // Magnus Holm (from my phone) > > On Friday, June 18, 2010, Raimon Fernandez wrote: >> 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: >> >> >> >> >> Jim Fern?ndez >> 555-1234 >> >> >> >> but camping is formatting like this: >> >> >> >> Jim Fernández >> 555-1234 >> >> >> >> The main difference is the encoding for some chars: >> >> ? => á >> >> I can't find in builder how to write values without escaping them ... >> >> thanks, >> >> r. >> >> On 17jun, 2010, at 21:04 , Magnus Holm wrote: >> >>> And if you want this XML: >>> >>> >>> >>> >>> Hiya >>> Hey >>> >>> >>> >>> You have this view: >>> >>> module App::Views >>> def posts(xml) >>> xml.posts do >>> @posts.each do |post| >>> xml.post do >>> xml.title(post.title) >>> xml.content(post.content) >>> end >>> end >>> end >>> end >>> end >> >> >> _______________________________________________ >> Camping-list mailing list >> Camping-list at rubyforge.org >> http://rubyforge.org/mailman/listinfo/camping-list >> > > -- > // Magnus Holm > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list From judofyr at gmail.com Sat Jun 19 10:34:08 2010 From: judofyr at gmail.com (Magnus Holm) Date: Sat, 19 Jun 2010 16:34:08 +0200 Subject: First time on Camping In-Reply-To: References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <60A8C21C-E669-48AA-8E08-D54752E0DCE6@montx.com> Message-ID: 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 á as ?. // Magnus Holm On Sat, Jun 19, 2010 at 15:53, Raimon Fernandez wrote: > Hi all, > > On 18jun, 2010, at 17:51 , Magnus Holm wrote: > >> 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... > > But in this case, it's an ASCII ?, well, the extended ASCII, and all .xml files that I've created never added this encoded, always the char itself, like ? ? ? ? > > I'm using the TBMXML parser http://www.tbxml.co.uk/TBXML/TBXML_Free.html > > And because the xml file has the encoding="UTF-8" I suppose that those chars can be added as they are without encoding. > > And also I'm using other C libraries in other projects that they do not escape those chars ... > > Thanks! > > regards, > > r. > > >> >> // Magnus Holm (from my phone) >> >> On Friday, June 18, 2010, Raimon Fernandez wrote: >>> 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: >>> >>> >>> >>> >>> ?Jim Fern?ndez >>> ?555-1234 >>> >>> >>> >>> but camping is formatting like this: >>> >>> >>> >>> ?Jim Fernández >>> ?555-1234 >>> >>> >>> >>> The main difference is the encoding for some chars: >>> >>> ? => á >>> >>> I can't find in builder how to write values without escaping them ... >>> >>> thanks, >>> >>> r. >>> >>> On 17jun, 2010, at 21:04 , Magnus Holm wrote: >>> >>>> And if you want this XML: >>>> >>>> >>>> >>>> ? >>>> ? ?Hiya >>>> ? ?Hey >>>> ? >>>> >>>> >>>> You have this view: >>>> >>>> module App::Views >>>> ?def posts(xml) >>>> ? ?xml.posts do >>>> ? ? ?@posts.each do |post| >>>> ? ? ? ?xml.post do >>>> ? ? ? ? ?xml.title(post.title) >>>> ? ? ? ? ?xml.content(post.content) >>>> ? ? ? ?end >>>> ? ? ?end >>>> ? ?end >>>> ?end >>>> end >>> >>> >>> _______________________________________________ >>> Camping-list mailing list >>> Camping-list at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/camping-list >>> >> >> -- >> // Magnus Holm >> _______________________________________________ >> Camping-list mailing list >> Camping-list at rubyforge.org >> http://rubyforge.org/mailman/listinfo/camping-list > > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > From coder at montx.com Sat Jun 19 11:19:33 2010 From: coder at montx.com (Raimon Fernandez) Date: Sat, 19 Jun 2010 17:19:33 +0200 Subject: First time on Camping In-Reply-To: References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <60A8C21C-E669-48AA-8E08-D54752E0DCE6@montx.com> Message-ID: <0CC6AB50-3224-4423-9A00-08EFD74E0202@montx.com> On 19jun, 2010, at 16:34 , Magnus Holm wrote: > 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 á as ?. yes, but don't know why the parser doesn't treat it, I'll try to find another XML parser ... thanks, r. > > // Magnus Holm > > > > On Sat, Jun 19, 2010 at 15:53, Raimon Fernandez wrote: >> Hi all, >> >> On 18jun, 2010, at 17:51 , Magnus Holm wrote: >> >>> 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... >> >> But in this case, it's an ASCII ?, well, the extended ASCII, and all .xml files that I've created never added this encoded, always the char itself, like ? ? ? ? >> >> I'm using the TBMXML parser http://www.tbxml.co.uk/TBXML/TBXML_Free.html >> >> And because the xml file has the encoding="UTF-8" I suppose that those chars can be added as they are without encoding. >> >> And also I'm using other C libraries in other projects that they do not escape those chars ... >> >> Thanks! >> >> regards, >> >> r. >> >> >>> >>> // Magnus Holm (from my phone) >>> >>> On Friday, June 18, 2010, Raimon Fernandez wrote: >>>> 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: >>>> >>>> >>>> >>>> >>>> Jim Fern?ndez >>>> 555-1234 >>>> >>>> >>>> >>>> but camping is formatting like this: >>>> >>>> >>>> >>>> Jim Fernández >>>> 555-1234 >>>> >>>> >>>> >>>> The main difference is the encoding for some chars: >>>> >>>> ? => á >>>> >>>> I can't find in builder how to write values without escaping them ... >>>> >>>> thanks, >>>> >>>> r. >>>> >>>> On 17jun, 2010, at 21:04 , Magnus Holm wrote: >>>> >>>>> And if you want this XML: >>>>> >>>>> >>>>> >>>>> >>>>> Hiya >>>>> Hey >>>>> >>>>> >>>>> >>>>> You have this view: >>>>> >>>>> module App::Views >>>>> def posts(xml) >>>>> xml.posts do >>>>> @posts.each do |post| >>>>> xml.post do >>>>> xml.title(post.title) >>>>> xml.content(post.content) >>>>> end >>>>> end >>>>> end >>>>> end >>>>> end >>>> >>>> >>>> _______________________________________________ >>>> Camping-list mailing list >>>> Camping-list at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/camping-list >>>> >>> >>> -- >>> // Magnus Holm >>> _______________________________________________ >>> Camping-list mailing list >>> Camping-list at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/camping-list >> >> >> _______________________________________________ >> Camping-list mailing list >> Camping-list at rubyforge.org >> http://rubyforge.org/mailman/listinfo/camping-list >> > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list From coder at montx.com Sun Jun 20 17:38:27 2010 From: coder at montx.com (Raimon Fernandez) Date: Sun, 20 Jun 2010 23:38:27 +0200 Subject: Speed issue In-Reply-To: References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <8D2C70CC-E459-43F7-81FB-844924A7BC3F@montx.com> <011ABE8E-CAF7-42E9-AA68-1BCA62992A1F@montx.com> Message-ID: <3ED558E6-0FF5-4E90-928D-D5610DE15129@montx.com> On 18jun, 2010, at 15:34 , Magnus Holm wrote: > Oh, and I also have the speed issue! That's definitely a bug. I'll > have a look at it later... I'm making some progress with Camping and well, it's impressive, really !!!! :-) Wich version can I use that has not the bug for speed issue ? I would like to do some demo and I prefer to avoid this bug ... :-) thanks! regards, r. From coder at montx.com Mon Jun 21 02:28:34 2010 From: coder at montx.com (Raimon Fernandez) Date: Mon, 21 Jun 2010 08:28:34 +0200 Subject: Speed issue In-Reply-To: <3ED558E6-0FF5-4E90-928D-D5610DE15129@montx.com> References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <8D2C70CC-E459-43F7-81FB-844924A7BC3F@montx.com> <011ABE8E-CAF7-42E9-AA68-1BCA62992A1F@montx.com> <3ED558E6-0FF5-4E90-928D-D5610DE15129@montx.com> Message-ID: On 20jun, 2010, at 23:38 , Raimon Fernandez wrote: > > On 18jun, 2010, at 15:34 , Magnus Holm wrote: > >> Oh, and I also have the speed issue! That's definitely a bug. I'll >> have a look at it later... > > I'm making some progress with Camping and well, it's impressive, really !!!! > > :-) > > Wich version can I use that has not the bug for speed issue ? > > I would like to do some demo and I prefer to avoid this bug ... :-) Just observed that when I run camping with Thin I'm not getting the speed issue, only with Mongrel ... thanks, r. From judofyr at gmail.com Mon Jun 21 06:56:38 2010 From: judofyr at gmail.com (Magnus Holm) Date: Mon, 21 Jun 2010 12:56:38 +0200 Subject: Speed issue In-Reply-To: References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <8D2C70CC-E459-43F7-81FB-844924A7BC3F@montx.com> <011ABE8E-CAF7-42E9-AA68-1BCA62992A1F@montx.com> <3ED558E6-0FF5-4E90-928D-D5610DE15129@montx.com> Message-ID: What if you run Thin with `camping -s thin app.rb`? Do you have the speed issue then? Thanks, Magnus On Monday, June 21, 2010, Raimon Fernandez wrote: > > On 20jun, 2010, at 23:38 , Raimon Fernandez wrote: > >> >> On 18jun, 2010, at 15:34 , Magnus Holm wrote: >> >>> Oh, and I also have the speed issue! That's definitely a bug. I'll >>> have a look at it later... >> >> I'm making some progress with Camping and well, it's impressive, really !!!! >> >> :-) >> >> Wich version can I use that has not the bug for speed issue ? >> >> I would like to do some demo and I prefer to avoid this bug ... :-) > > Just observed that when I run camping with Thin I'm not getting the speed issue, only with Mongrel ... > > thanks, > > r. > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > -- // Magnus Holm From coder at montx.com Mon Jun 21 07:31:02 2010 From: coder at montx.com (Raimon Fernandez) Date: Mon, 21 Jun 2010 13:31:02 +0200 Subject: Speed issue In-Reply-To: References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <8D2C70CC-E459-43F7-81FB-844924A7BC3F@montx.com> <011ABE8E-CAF7-42E9-AA68-1BCA62992A1F@montx.com> <3ED558E6-0FF5-4E90-928D-D5610DE15129@montx.com> Message-ID: <5007AD05-A4A6-4751-AD82-FC827B9D4913@montx.com> On 21jun, 2010, at 12:56 , Magnus Holm wrote: > What if you run Thin with `camping -s thin app.rb`? Do you have the > speed issue then? No, with Thin I don't have the speed issue ... thanks, r. > > Thanks, Magnus > > On Monday, June 21, 2010, Raimon Fernandez wrote: >> >> On 20jun, 2010, at 23:38 , Raimon Fernandez wrote: >> >>> >>> On 18jun, 2010, at 15:34 , Magnus Holm wrote: >>> >>>> Oh, and I also have the speed issue! That's definitely a bug. I'll >>>> have a look at it later... >>> >>> I'm making some progress with Camping and well, it's impressive, really !!!! >>> >>> :-) >>> >>> Wich version can I use that has not the bug for speed issue ? >>> >>> I would like to do some demo and I prefer to avoid this bug ... :-) >> >> Just observed that when I run camping with Thin I'm not getting the speed issue, only with Mongrel ... >> >> thanks, >> >> r. >> _______________________________________________ >> Camping-list mailing list >> Camping-list at rubyforge.org >> http://rubyforge.org/mailman/listinfo/camping-list >> > > -- > // Magnus Holm > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > From judofyr at gmail.com Mon Jun 21 07:49:08 2010 From: judofyr at gmail.com (Magnus Holm) Date: Mon, 21 Jun 2010 13:49:08 +0200 Subject: Speed issue In-Reply-To: <5007AD05-A4A6-4751-AD82-FC827B9D4913@montx.com> References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <8D2C70CC-E459-43F7-81FB-844924A7BC3F@montx.com> <011ABE8E-CAF7-42E9-AA68-1BCA62992A1F@montx.com> <3ED558E6-0FF5-4E90-928D-D5610DE15129@montx.com> <5007AD05-A4A6-4751-AD82-FC827B9D4913@montx.com> Message-ID: 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 wrote: > > On 21jun, 2010, at 12:56 , Magnus Holm wrote: > >> What if you run Thin with `camping -s thin app.rb`? Do you have the >> speed issue then? > > No, with Thin I don't have the speed issue ... > > thanks, > > r. > >> >> Thanks, Magnus >> >> On Monday, June 21, 2010, Raimon Fernandez wrote: >>> >>> On 20jun, 2010, at 23:38 , Raimon Fernandez wrote: >>> >>>> >>>> On 18jun, 2010, at 15:34 , Magnus Holm wrote: >>>> >>>>> Oh, and I also have the speed issue! That's definitely a bug. I'll >>>>> have a look at it later... >>>> >>>> I'm making some progress with Camping and well, it's impressive, really !!!! >>>> >>>> :-) >>>> >>>> Wich version can I use that has not the bug for speed issue ? >>>> >>>> I would like to do some demo and I prefer to avoid this bug ... :-) >>> >>> Just observed that when I run camping with Thin I'm not getting the speed issue, only with Mongrel ... >>> >>> thanks, >>> >>> r. >>> _______________________________________________ >>> Camping-list mailing list >>> Camping-list at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/camping-list >>> >> >> -- >> // Magnus Holm >> _______________________________________________ >> Camping-list mailing list >> Camping-list at rubyforge.org >> http://rubyforge.org/mailman/listinfo/camping-list >> > > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > -- // Magnus Holm From coder at montx.com Mon Jun 21 10:10:23 2010 From: coder at montx.com (Raimon Fernandez) Date: Mon, 21 Jun 2010 16:10:23 +0200 Subject: Speed issue In-Reply-To: References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <8D2C70CC-E459-43F7-81FB-844924A7BC3F@montx.com> <011ABE8E-CAF7-42E9-AA68-1BCA62992A1F@montx.com> <3ED558E6-0FF5-4E90-928D-D5610DE15129@montx.com> <5007AD05-A4A6-4751-AD82-FC827B9D4913@montx.com> Message-ID: 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 apparently the issue exists > only with the reloader+Mongrel... What's the reloader ? When I make some changes in the app.rb file ? thanks, regards. r. > > On Monday, June 21, 2010, Raimon Fernandez wrote: >> >> On 21jun, 2010, at 12:56 , Magnus Holm wrote: >> >>> What if you run Thin with `camping -s thin app.rb`? Do you have the >>> speed issue then? >> >> No, with Thin I don't have the speed issue ... >> >> thanks, >> >> r. >> >>> >>> Thanks, Magnus >>> >>> On Monday, June 21, 2010, Raimon Fernandez wrote: >>>> >>>> On 20jun, 2010, at 23:38 , Raimon Fernandez wrote: >>>> >>>>> >>>>> On 18jun, 2010, at 15:34 , Magnus Holm wrote: >>>>> >>>>>> Oh, and I also have the speed issue! That's definitely a bug. I'll >>>>>> have a look at it later... >>>>> >>>>> I'm making some progress with Camping and well, it's impressive, really !!!! >>>>> >>>>> :-) >>>>> >>>>> Wich version can I use that has not the bug for speed issue ? >>>>> >>>>> I would like to do some demo and I prefer to avoid this bug ... :-) >>>> >>>> Just observed that when I run camping with Thin I'm not getting the speed issue, only with Mongrel ... >>>> >>>> thanks, >>>> >>>> r. >>>> _______________________________________________ >>>> Camping-list mailing list >>>> Camping-list at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/camping-list >>>> >>> >>> -- >>> // Magnus Holm >>> _______________________________________________ >>> Camping-list mailing list >>> Camping-list at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/camping-list >>> >> >> >> _______________________________________________ >> Camping-list mailing list >> Camping-list at rubyforge.org >> http://rubyforge.org/mailman/listinfo/camping-list >> > > -- > // Magnus Holm > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > From judofyr at gmail.com Mon Jun 21 15:40:59 2010 From: judofyr at gmail.com (Magnus Holm) Date: Mon, 21 Jun 2010 21:40:59 +0200 Subject: Speed issue In-Reply-To: References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <8D2C70CC-E459-43F7-81FB-844924A7BC3F@montx.com> <011ABE8E-CAF7-42E9-AA68-1BCA62992A1F@montx.com> <3ED558E6-0FF5-4E90-928D-D5610DE15129@montx.com> <5007AD05-A4A6-4751-AD82-FC827B9D4913@montx.com> Message-ID: Yep, The reloader (located in camping/reloader.rb) watches a file and then reloads the server whenever the file changes. It's what makes it possible to just run `camping app.rb` and always have the latest version served. I can't reproduce it at my machine at the moment :( Could you send me an example app which has the speed issues on your machine? // Magnus Holm On Mon, Jun 21, 2010 at 16:10, Raimon Fernandez 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 apparently the issue exists >> only with the reloader+Mongrel... > > What's the reloader ? > > When I make some changes in the app.rb file ? > > thanks, > > regards. > > r. > > >> >> On Monday, June 21, 2010, Raimon Fernandez wrote: >>> >>> On 21jun, 2010, at 12:56 , Magnus Holm wrote: >>> >>>> What if you run Thin with `camping -s thin app.rb`? Do you have the >>>> speed issue then? >>> >>> No, with Thin I don't have the speed issue ... >>> >>> thanks, >>> >>> r. >>> >>>> >>>> Thanks, Magnus >>>> >>>> On Monday, June 21, 2010, Raimon Fernandez wrote: >>>>> >>>>> On 20jun, 2010, at 23:38 , Raimon Fernandez wrote: >>>>> >>>>>> >>>>>> On 18jun, 2010, at 15:34 , Magnus Holm wrote: >>>>>> >>>>>>> Oh, and I also have the speed issue! That's definitely a bug. I'll >>>>>>> have a look at it later... >>>>>> >>>>>> I'm making some progress with Camping and well, it's impressive, really !!!! >>>>>> >>>>>> :-) >>>>>> >>>>>> Wich version can I use that has not the bug for speed issue ? >>>>>> >>>>>> I would like to do some demo and I prefer to avoid this bug ... :-) >>>>> >>>>> Just observed that when I run camping with Thin I'm not getting the speed issue, only with Mongrel ... >>>>> >>>>> thanks, >>>>> >>>>> r. >>>>> _______________________________________________ >>>>> Camping-list mailing list >>>>> Camping-list at rubyforge.org >>>>> http://rubyforge.org/mailman/listinfo/camping-list >>>>> >>>> >>>> -- >>>> // Magnus Holm >>>> _______________________________________________ >>>> Camping-list mailing list >>>> Camping-list at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/camping-list >>>> >>> >>> >>> _______________________________________________ >>> Camping-list mailing list >>> Camping-list at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/camping-list >>> >> >> -- >> // Magnus Holm >> _______________________________________________ >> Camping-list mailing list >> Camping-list at rubyforge.org >> http://rubyforge.org/mailman/listinfo/camping-list >> > > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > From coder at montx.com Tue Jun 22 12:40:52 2010 From: coder at montx.com (Raimon Fernandez) Date: Tue, 22 Jun 2010 18:40:52 +0200 Subject: Speed issue In-Reply-To: References: <58F1EA48-1263-4005-838E-CA65DFD04E01@montx.com> <8D2C70CC-E459-43F7-81FB-844924A7BC3F@montx.com> <011ABE8E-CAF7-42E9-AA68-1BCA62992A1F@montx.com> <3ED558E6-0FF5-4E90-928D-D5610DE15129@montx.com> <5007AD05-A4A6-4751-AD82-FC827B9D4913@montx.com> Message-ID: Hi Magnus, On 21jun, 2010, at 21:40 , Magnus Holm wrote: > Yep, > > The reloader (located in camping/reloader.rb) watches a file and then > reloads the server whenever the file changes. It's what makes it > possible to just run `camping app.rb` and always have the latest > version served. if I start with camping list.rb and enter this url http://127.0.0.1:3301/people/list and I hit the reload continuosly, you will see how if 'freezes' ... if I start with camping -s thin list.rb and enter this url http://127.0.0.1:3301/people/list and I hit the reload continuosly, it's always fast and responsive > > I can't reproduce it at my machine at the moment :( Could you send me > an example app which has the speed issues on your machine? Where I can send a .db also ? I can put the code in the pastie but the database ? It has some rows that I fetch ... thanks, regards, r. > > // Magnus Holm > > > > On Mon, Jun 21, 2010 at 16:10, Raimon Fernandez 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 apparently the issue exists >>> only with the reloader+Mongrel... >> >> What's the reloader ? >> >> When I make some changes in the app.rb file ? >> >> thanks, >> >> regards. >> >> r. >> >> >>> >>> On Monday, June 21, 2010, Raimon Fernandez wrote: >>>> >>>> On 21jun, 2010, at 12:56 , Magnus Holm wrote: >>>> >>>>> What if you run Thin with `camping -s thin app.rb`? Do you have the >>>>> speed issue then? >>>> >>>> No, with Thin I don't have the speed issue ... >>>> >>>> thanks, >>>> >>>> r. >>>> >>>>> >>>>> Thanks, Magnus >>>>> >>>>> On Monday, June 21, 2010, Raimon Fernandez wrote: >>>>>> >>>>>> On 20jun, 2010, at 23:38 , Raimon Fernandez wrote: >>>>>> >>>>>>> >>>>>>> On 18jun, 2010, at 15:34 , Magnus Holm wrote: >>>>>>> >>>>>>>> Oh, and I also have the speed issue! That's definitely a bug. I'll >>>>>>>> have a look at it later... >>>>>>> >>>>>>> I'm making some progress with Camping and well, it's impressive, really !!!! >>>>>>> >>>>>>> :-) >>>>>>> >>>>>>> Wich version can I use that has not the bug for speed issue ? >>>>>>> >>>>>>> I would like to do some demo and I prefer to avoid this bug ... :-) >>>>>> >>>>>> Just observed that when I run camping with Thin I'm not getting the speed issue, only with Mongrel ... >>>>>> >>>>>> thanks, >>>>>> >>>>>> r. >>>>>> _______________________________________________ >>>>>> Camping-list mailing list >>>>>> Camping-list at rubyforge.org >>>>>> http://rubyforge.org/mailman/listinfo/camping-list >>>>>> >>>>> >>>>> -- >>>>> // Magnus Holm >>>>> _______________________________________________ >>>>> Camping-list mailing list >>>>> Camping-list at rubyforge.org >>>>> http://rubyforge.org/mailman/listinfo/camping-list >>>>> >>>> >>>> >>>> _______________________________________________ >>>> Camping-list mailing list >>>> Camping-list at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/camping-list >>>> >>> >>> -- >>> // Magnus Holm >>> _______________________________________________ >>> Camping-list mailing list >>> Camping-list at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/camping-list >>> >> >> >> _______________________________________________ >> Camping-list mailing list >> Camping-list at rubyforge.org >> http://rubyforge.org/mailman/listinfo/camping-list >> > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > From ruby at monnet-usa.com Wed Jun 23 09:11:59 2010 From: ruby at monnet-usa.com (Philippe Monnet) Date: Wed, 23 Jun 2010 07:11:59 -0600 Subject: Updated version of RESTstop and RESTr plus bonus blog post Message-ID: <4C22081F.3020501@monnet-usa.com> 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) -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt at roughest.net Wed Jun 23 09:27:29 2010 From: matt at roughest.net (Matt Zukowski) Date: Wed, 23 Jun 2010 09:27:29 -0400 Subject: Updated version of RESTstop and RESTr plus bonus blog post In-Reply-To: <4C22081F.3020501@monnet-usa.com> References: <4C22081F.3020501@monnet-usa.com> Message-ID: 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 at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt at roughest.net Wed Jun 23 09:31:34 2010 From: matt at roughest.net (Matt Zukowski) Date: Wed, 23 Jun 2010 09:31:34 -0400 Subject: Updated version of RESTstop and RESTr plus bonus blog post In-Reply-To: References: <4C22081F.3020501@monnet-usa.com> Message-ID: 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 at rubyforge.org >> http://rubyforge.org/mailman/listinfo/camping-list >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From deveritt at innotts.co.uk Wed Jun 23 09:45:00 2010 From: deveritt at innotts.co.uk (Dave Everitt) Date: Wed, 23 Jun 2010 14:45:00 +0100 Subject: Updated version of RESTstop and RESTr plus bonus blog post In-Reply-To: <4C22081F.3020501@monnet-usa.com> References: <4C22081F.3020501@monnet-usa.com> Message-ID: Added to the Github Camping wiki (with your growing number of links...) - guides these are really useful! - Dave Everitt > I also ended up writing a blog post on how to implement REST > services with RESTstop. See http://bit.ly/tareststop From coder at montx.com Wed Jun 23 10:29:40 2010 From: coder at montx.com (Raimon Fernandez) Date: Wed, 23 Jun 2010 16:29:40 +0200 Subject: Updated version of RESTstop and RESTr plus bonus blog post In-Reply-To: <4C22081F.3020501@monnet-usa.com> References: <4C22081F.3020501@monnet-usa.com> Message-ID: great !!! thanks, r. On 23jun, 2010, at 15:11 , 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 at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list -------------- next part -------------- An HTML attachment was scrubbed... URL: From coder at montx.com Fri Jun 25 04:39:12 2010 From: coder at montx.com (Raimon Fernandez) Date: Fri, 25 Jun 2010 10:39:12 +0200 Subject: Relations on Camping In-Reply-To: References: <4C22081F.3020501@monnet-usa.com> Message-ID: <246117F8-E93A-4C97-938D-05D9C41631F3@montx.com> 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. From ruby at monnet-usa.com Fri Jun 25 07:33:08 2010 From: ruby at monnet-usa.com (Philippe Monnet) Date: Fri, 25 Jun 2010 05:33:08 -0600 Subject: Relations on Camping In-Reply-To: <246117F8-E93A-4C97-938D-05D9C41631F3@montx.com> References: <4C22081F.3020501@monnet-usa.com> <246117F8-E93A-4C97-938D-05D9C41631F3@montx.com> Message-ID: <4C2493F4.2000500@monnet-usa.com> Raimon, I suspect that your relationship column (foreign key) should actually be called _*group_id*_ not *list_*group_id like in: def self.up create_table :list_groups, :force => true do |t| t.string :name end create_table :list_people, :force => true do |t| t.integer :group_id, :null => false t.string :username end Philippe On 6/25/2010 2:39 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 at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt at roughest.net Fri Jun 25 07:52:32 2010 From: matt at roughest.net (Matt Zukowski) Date: Fri, 25 Jun 2010 07:52:32 -0400 Subject: Relations on Camping In-Reply-To: <246117F8-E93A-4C97-938D-05D9C41631F3@montx.com> References: <4C22081F.3020501@monnet-usa.com> <246117F8-E93A-4C97-938D-05D9C41631F3@montx.com> Message-ID: 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 at rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list -------------- next part -------------- An HTML attachment was scrubbed... URL: From coder at montx.com Fri Jun 25 15:04:32 2010 From: coder at montx.com (Raimon Fernandez) Date: Fri, 25 Jun 2010 21:04:32 +0200 Subject: Relations on Camping In-Reply-To: <4C2493F4.2000500@monnet-usa.com> References: <4C22081F.3020501@monnet-usa.com> <246117F8-E93A-4C97-938D-05D9C41631F3@montx.com> <4C2493F4.2000500@monnet-usa.com> Message-ID: yes, you're right !!!!!! I've been caight by the pre-pend table name in the field name ... :-) thanks, r. On 25jun, 2010, at 13:33 , Philippe Monnet wrote: > Raimon, > > I suspect that your relationship column (foreign key) should actually be called group_id not list_group_id like in: > > def self.up > create_table :list_groups, :force => true do |t| > t.string :name > end > > create_table :list_people, :force => true do |t| > t.integer :group_id, :null => false > t.string :username > end > > Philippe > > On 6/25/2010 2:39 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 at rubyforge.org >> http://rubyforge.org/mailman/listinfo/camping-list >> >> > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list -------------- next part -------------- An HTML attachment was scrubbed... URL: From coder at montx.com Fri Jun 25 15:04:53 2010 From: coder at montx.com (Raimon Fernandez) Date: Fri, 25 Jun 2010 21:04:53 +0200 Subject: Relations on Camping In-Reply-To: References: <4C22081F.3020501@monnet-usa.com> <246117F8-E93A-4C97-938D-05D9C41631F3@montx.com> Message-ID: hi, it's working with and without it, but you are right that must be there ... thanks! r. On 25jun, 2010, at 13:52 , Matt Zukowski wrote: > 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 at rubyforge.org >> http://rubyforge.org/mailman/listinfo/camping-list > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list -------------- next part -------------- An HTML attachment was scrubbed... URL: From ruby at monnet-usa.com Fri Jun 25 16:52:19 2010 From: ruby at monnet-usa.com (Philippe Monnet) Date: Fri, 25 Jun 2010 14:52:19 -0600 Subject: _why day Message-ID: <4C251703.9070503@monnet-usa.com> I was just listening to Ruby5 (http://ruby5.envylabs.com/episodes/88-episode-86-june-18-2010) and found that there is a Why Day on Aug. 19th. See site: http://whyday.org/ Did you guys know about that? Should we plan something? -------------- next part -------------- An HTML attachment was scrubbed... URL: From dsusco at gmail.com Tue Jun 29 11:56:39 2010 From: dsusco at gmail.com (David Susco) Date: Tue, 29 Jun 2010 11:56:39 -0400 Subject: versioning alternatives Message-ID: Has anyone had any experience with vestal_versions, has_versioning, or another similar gem with camping? I'm currently fooling around with vestal_versions ( :P ) trying to figure out how to create the version table. Apparently this is handled via a script/db migration in Rails, and without something similar to the handy create_versioned_table call that's in acts_as_versioned. -- Dave From judofyr at gmail.com Tue Jun 29 19:15:18 2010 From: judofyr at gmail.com (Magnus Holm) Date: Wed, 30 Jun 2010 01:15:18 +0200 Subject: versioning alternatives In-Reply-To: References: Message-ID: 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 29, 2010 at 17:56, David Susco wrote: > Has anyone had any experience with vestal_versions, has_versioning, or > another similar gem with camping? > > I'm currently fooling around with vestal_versions ( :P ) trying to > figure out how to create the version table. Apparently this is handled > via a script/db migration in Rails, and without something similar to > the handy create_versioned_table call that's in acts_as_versioned. > > -- > Dave > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > From judofyr at gmail.com Wed Jun 30 07:08:55 2010 From: judofyr at gmail.com (Magnus Holm) Date: Wed, 30 Jun 2010 13:08:55 +0200 Subject: Camping 2.1 and whywentcamping.com Message-ID: Hey campers! I think it's about time to release Camping 2.1, which features: * Support for other template engines (Haml, ERB, etc) out of the box * No longer depends on ActiveRecord (this was a bug) * Camping.options is now a Hash where you can put all sorts of configuration stuff * Camping::Server now uses Rack::Server (got rid of some code) * See all changes here: http://github.com/camping/camping/compare/2.0...master -- There's still one thing I want to improve before we release 2.1 though, and that is the website. Currently it only redirects to the RDoc, but I believe we can do better. Checkout this: http://whywentcamping.judofyr.net/ (also see the GitHub repo for some more information: http://github.com/camping/whywentcamping.com) Better? Worse? You tell me :-) Have a look at the issues I'm aware of (http://github.com/camping/whywentcamping.com/issues) and please add your own too. // Magnus Holm From judofyr at gmail.com Wed Jun 30 07:18:49 2010 From: judofyr at gmail.com (Magnus Holm) Date: Wed, 30 Jun 2010 13:18:49 +0200 Subject: Access to github.com/camping Message-ID: Hey, I've converted the camping account into an organization (see http://github.com/blog/674-introducing-organizations), which means that it's a lot easier to manage it. There's currently two teams at the moment: Owners: These have full admin access (can create repos etc.) - Magnus - Philippe Developers: These can push to all the repos at github.com/camping - Magnus - Philippe - busbey - Dave Everitt - zuk - zimbatm I'm *very* open to add more users to the developers team. Just say what you intend to do (on the mailing list), and I'll add you. If you have a Camping related project which 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 From ruby at monnet-usa.com Wed Jun 30 08:57:01 2010 From: ruby at monnet-usa.com (Philippe Monnet) Date: Wed, 30 Jun 2010 06:57:01 -0600 Subject: Camping 2.1 and whywentcamping.com In-Reply-To: References: Message-ID: <4C2B3F1D.3060606@monnet-usa.com> Thanks Magnus! I love the idea of working on the web site for 2.1. I am still not crazy about the web site name though - as it is not easy for people to remember if they don't know the connection with _why. I personally would have preferred rubycamping.com or something linking Camping to Ruby somehow. But if everyone prefers that name I am fine with that. A couple ideas for the site: * Keep the home page simple with all content fitting within 1280 x 1024 * Use a catchy design (need some help here) * Accentuate that Camping is about Ruby (maybe also include the ruby logo somewhere) * Have a brief note about the connection to _why and a link to a page explaining the history of Camping with further links to _why's other sites * Encourage people to try it by capitalizing on some of Camping's strengths: o Fast to learn - requires only basic Ruby skills o Much simpler than Rails but more structure than Sinatra/Padrino o Lightning fast and memory efficient allowing fast and efficient sites o Can evolve from simple file to organized directory structure o Can layer in more features later using persistence and choice of view engines * How about using some kind of an animated (auto advancing) slideshow to highlight some of the benefits? See an example at: http://blog.monnet-usa.com/?p=276 * How about a page on learning with a link to the book as well as a list of links for other tutorials or short explanations on key topics (e.g. how to do migrations, how to use include/extend, how to use different view engines, etc.)? * How about a page about plugins with some brief description of their intent? * I would love for us to include _why's cartoons in some of the sub pages ;-) Who would be interested in working together on the site? Could we do a couple graphic mockups of the main page? How should we exchange them? Via the mailing list? I am ready and excited to help with that. I think it would be great to launch the site in time for _Why Day (Aug 19th)! Philippe On 6/30/2010 5:08 AM, Magnus Holm wrote: > Hey campers! > > I think it's about time to release Camping 2.1, which features: > > * Support for other template engines (Haml, ERB, etc) out of the box > * No longer depends on ActiveRecord (this was a bug) > * Camping.options is now a Hash where you can put all sorts of > configuration stuff > * Camping::Server now uses Rack::Server (got rid of some code) > * See all changes here: http://github.com/camping/camping/compare/2.0...master > > -- > > There's still one thing I want to improve before we release 2.1 > though, and that is the website. Currently it only redirects to the > RDoc, but I believe we can do better. > > Checkout this: http://whywentcamping.judofyr.net/ (also see the GitHub > repo for some more information: > http://github.com/camping/whywentcamping.com) > > Better? Worse? You tell me :-) > > Have a look at the issues I'm aware of > (http://github.com/camping/whywentcamping.com/issues) and please add > your own too. > > // Magnus Holm > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sean at manvsbeard.com Wed Jun 30 09:03:45 2010 From: sean at manvsbeard.com (Sean Busbey) Date: Wed, 30 Jun 2010 14:03:45 +0100 Subject: Camping 2.1 and whywentcamping.com In-Reply-To: <4C2B3F1D.3060606@monnet-usa.com> References: <4C2B3F1D.3060606@monnet-usa.com> Message-ID: kylekyle and I have planned to use http://thelittlewheels.com/ as a showcase for camping stuff. probably even more confusing to new people than whywentcamping On Wed, Jun 30, 2010 at 13:57, Philippe Monnet wrote: > Thanks Magnus! I love the idea of working on the web site for 2.1. > I am still not crazy about the web site name though - as it is not easy for > people to remember if they don't know the connection with _why. I personally > would have preferred rubycamping.com or something linking Camping to Ruby > somehow. But if everyone prefers that name I am fine with that. > > A couple ideas for the site: > > Keep the home page simple with all content fitting within 1280 x 1024 > Use a catchy design (need some help here) > Accentuate that Camping is about Ruby (maybe also include the ruby logo > somewhere) > Have a brief note about the connection to _why and a link to a page > explaining the history of Camping with further links to _why's other sites > Encourage people to try it by capitalizing on some of Camping's strengths: > > Fast to learn - requires only basic Ruby skills > Much simpler than Rails but more structure than Sinatra/Padrino > Lightning fast and memory efficient allowing fast and efficient sites > Can evolve from simple file to organized directory structure > Can layer in more features later using persistence and choice of view > engines > > How about using some kind of an animated (auto advancing) slideshow to > highlight some of the benefits? See an example at: > http://blog.monnet-usa.com/?p=276 > How about a page on learning with a link to the book as well as a list of > links for other tutorials or short explanations on key topics (e.g. how to > do migrations, how to use include/extend, how to use different view engines, > etc.)? > How about a page about plugins with some brief description of their intent? > I would love for us to include _why's cartoons in some of the sub pages ;-) > > Who would be interested in working together on the site? > Could we do a couple graphic mockups of the main page? How should we > exchange them? Via the mailing list? > I am ready and excited to help with that. I think it would be great to > launch the site in time for _Why Day (Aug 19th)! > > Philippe > > On 6/30/2010 5:08 AM, Magnus Holm wrote: > > Hey campers! > > I think it's about time to release Camping 2.1, which features: > > * Support for other template engines (Haml, ERB, etc) out of the box > * No longer depends on ActiveRecord (this was a bug) > * Camping.options is now a Hash where you can put all sorts of > configuration stuff > * Camping::Server now uses Rack::Server (got rid of some code) > * See all changes here: > http://github.com/camping/camping/compare/2.0...master > > -- > > There's still one thing I want to improve before we release 2.1 > though, and that is the website. Currently it only redirects to the > RDoc, but I believe we can do better. > > Checkout this: http://whywentcamping.judofyr.net/ (also see the GitHub > repo for some more information: > http://github.com/camping/whywentcamping.com) > > Better? Worse? You tell me :-) > > Have a look at the issues I'm aware of > (http://github.com/camping/whywentcamping.com/issues) and please add > your own too. > > // Magnus Holm > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > > > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > -- Sean From judofyr at gmail.com Wed Jun 30 09:25:50 2010 From: judofyr at gmail.com (Magnus Holm) Date: Wed, 30 Jun 2010 15:25:50 +0200 Subject: Camping 2.1 and whywentcamping.com In-Reply-To: References: <4C2B3F1D.3060606@monnet-usa.com> Message-ID: Awesome domain name! And as long as you include the image, it probably makes sense for new people too. You know, the password to the camping github account was actually "littlewheels" :-) // Magnus Holm On Wed, Jun 30, 2010 at 15:03, Sean Busbey wrote: > kylekyle and I have planned to use http://thelittlewheels.com/ as a > showcase for camping stuff. ?probably even more confusing to new > people than whywentcamping > > On Wed, Jun 30, 2010 at 13:57, Philippe Monnet wrote: >> Thanks Magnus! I love the idea of working on the web site for 2.1. >> I am still not crazy about the web site name though - as it is not easy for >> people to remember if they don't know the connection with _why. I personally >> would have preferred rubycamping.com or something linking Camping to Ruby >> somehow. But if everyone prefers that name I am fine with that. >> >> A couple ideas for the site: >> >> Keep the home page simple with all content fitting within 1280 x 1024 >> Use a catchy design (need some help here) >> Accentuate that Camping is about Ruby (maybe also include the ruby logo >> somewhere) >> Have a brief note about the connection to _why and a link to a page >> explaining the history of Camping with further links to _why's other sites >> Encourage people to try it by capitalizing on some of Camping's strengths: >> >> Fast to learn - requires only basic Ruby skills >> Much simpler than Rails but more structure than Sinatra/Padrino >> Lightning fast and memory efficient allowing fast and efficient sites >> Can evolve from simple file to organized directory structure >> Can layer in more features later using persistence and choice of view >> engines >> >> How about using some kind of an animated (auto advancing) slideshow to >> highlight some of the benefits? See an example at: >> http://blog.monnet-usa.com/?p=276 >> How about a page on learning with a link to the book as well as a list of >> links for other tutorials or short explanations on key topics (e.g. how to >> do migrations, how to use include/extend, how to use different view engines, >> etc.)? >> How about a page about plugins with some brief description of their intent? >> I would love for us to include _why's cartoons in some of the sub pages ;-) >> >> Who would be interested in working together on the site? >> Could we do a couple graphic mockups of the main page? How should we >> exchange them? Via the mailing list? >> I am ready and excited to help with that. I think it would be great to >> launch the site in time for _Why Day (Aug 19th)! >> >> Philippe >> >> On 6/30/2010 5:08 AM, Magnus Holm wrote: >> >> Hey campers! >> >> I think it's about time to release Camping 2.1, which features: >> >> * Support for other template engines (Haml, ERB, etc) out of the box >> * No longer depends on ActiveRecord (this was a bug) >> * Camping.options is now a Hash where you can put all sorts of >> configuration stuff >> * Camping::Server now uses Rack::Server (got rid of some code) >> * See all changes here: >> http://github.com/camping/camping/compare/2.0...master >> >> -- >> >> There's still one thing I want to improve before we release 2.1 >> though, and that is the website. Currently it only redirects to the >> RDoc, but I believe we can do better. >> >> Checkout this: http://whywentcamping.judofyr.net/ (also see the GitHub >> repo for some more information: >> http://github.com/camping/whywentcamping.com) >> >> Better? Worse? You tell me :-) >> >> Have a look at the issues I'm aware of >> (http://github.com/camping/whywentcamping.com/issues) and please add >> your own too. >> >> // Magnus Holm >> _______________________________________________ >> Camping-list mailing list >> Camping-list at rubyforge.org >> http://rubyforge.org/mailman/listinfo/camping-list >> >> >> >> _______________________________________________ >> Camping-list mailing list >> Camping-list at rubyforge.org >> http://rubyforge.org/mailman/listinfo/camping-list >> > > > > -- > Sean > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > From ruby at monnet-usa.com Wed Jun 30 09:44:44 2010 From: ruby at monnet-usa.com (Philippe Monnet) Date: Wed, 30 Jun 2010 07:44:44 -0600 Subject: Camping 2.1 and whywentcamping.com In-Reply-To: References: <4C2B3F1D.3060606@monnet-usa.com> Message-ID: <4C2B4A4C.4040900@monnet-usa.com> So maybe another thing we need on the main site is a "Camping Ring" feature to tie in all Camping fan sites! :-) On 6/30/2010 7:03 AM, Sean Busbey wrote: > kylekyle and I have planned to use http://thelittlewheels.com/ as a > showcase for camping stuff. probably even more confusing to new > people than whywentcamping > > On Wed, Jun 30, 2010 at 13:57, Philippe Monnet wrote: > >> Thanks Magnus! I love the idea of working on the web site for 2.1. >> I am still not crazy about the web site name though - as it is not easy for >> people to remember if they don't know the connection with _why. I personally >> would have preferred rubycamping.com or something linking Camping to Ruby >> somehow. But if everyone prefers that name I am fine with that. >> >> A couple ideas for the site: >> >> Keep the home page simple with all content fitting within 1280 x 1024 >> Use a catchy design (need some help here) >> Accentuate that Camping is about Ruby (maybe also include the ruby logo >> somewhere) >> Have a brief note about the connection to _why and a link to a page >> explaining the history of Camping with further links to _why's other sites >> Encourage people to try it by capitalizing on some of Camping's strengths: >> >> Fast to learn - requires only basic Ruby skills >> Much simpler than Rails but more structure than Sinatra/Padrino >> Lightning fast and memory efficient allowing fast and efficient sites >> Can evolve from simple file to organized directory structure >> Can layer in more features later using persistence and choice of view >> engines >> >> How about using some kind of an animated (auto advancing) slideshow to >> highlight some of the benefits? See an example at: >> http://blog.monnet-usa.com/?p=276 >> How about a page on learning with a link to the book as well as a list of >> links for other tutorials or short explanations on key topics (e.g. how to >> do migrations, how to use include/extend, how to use different view engines, >> etc.)? >> How about a page about plugins with some brief description of their intent? >> I would love for us to include _why's cartoons in some of the sub pages ;-) >> >> Who would be interested in working together on the site? >> Could we do a couple graphic mockups of the main page? How should we >> exchange them? Via the mailing list? >> I am ready and excited to help with that. I think it would be great to >> launch the site in time for _Why Day (Aug 19th)! >> >> Philippe >> >> On 6/30/2010 5:08 AM, Magnus Holm wrote: >> >> Hey campers! >> >> I think it's about time to release Camping 2.1, which features: >> >> * Support for other template engines (Haml, ERB, etc) out of the box >> * No longer depends on ActiveRecord (this was a bug) >> * Camping.options is now a Hash where you can put all sorts of >> configuration stuff >> * Camping::Server now uses Rack::Server (got rid of some code) >> * See all changes here: >> http://github.com/camping/camping/compare/2.0...master >> >> -- >> >> There's still one thing I want to improve before we release 2.1 >> though, and that is the website. Currently it only redirects to the >> RDoc, but I believe we can do better. >> >> Checkout this: http://whywentcamping.judofyr.net/ (also see the GitHub >> repo for some more information: >> http://github.com/camping/whywentcamping.com) >> >> Better? Worse? You tell me :-) >> >> Have a look at the issues I'm aware of >> (http://github.com/camping/whywentcamping.com/issues) and please add >> your own too. >> >> // Magnus Holm >> _______________________________________________ >> Camping-list mailing list >> Camping-list at rubyforge.org >> http://rubyforge.org/mailman/listinfo/camping-list >> >> >> >> _______________________________________________ >> Camping-list mailing list >> Camping-list at rubyforge.org >> http://rubyforge.org/mailman/listinfo/camping-list >> >> > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dsusco at gmail.com Wed Jun 30 09:46:38 2010 From: dsusco at gmail.com (David Susco) Date: Wed, 30 Jun 2010 09:46:38 -0400 Subject: using reststop with tilt Message-ID: I'm trying to use the new Tilt integration with reststop. All the aliases and whatnot under "Implementing your own service" (http://wiki.github.com/camping/reststop/) are there and :views has been set in the options hash. I tried creating sub-directories in the views directory (html, HTML) but I still couldn't get it to work. I can get my haml template to display if I get rid of the alias for reststop_render. All the other render calls to markaby still work when I do this too. However, I'm assuming I'm loosing the second argument for render in reststop when I do this. Am I missing some other setting/configuration option to get this to work with the alias for reststop_render? -- Dave From judofyr at gmail.com Wed Jun 30 09:46:54 2010 From: judofyr at gmail.com (Magnus Holm) Date: Wed, 30 Jun 2010 15:46:54 +0200 Subject: Camping 2.1 and whywentcamping.com In-Reply-To: <4C2B3F1D.3060606@monnet-usa.com> References: <4C2B3F1D.3060606@monnet-usa.com> Message-ID: On Wed, Jun 30, 2010 at 14:57, Philippe Monnet wrote: > Thanks Magnus! I love the idea of working on the web site for 2.1. > I am still not crazy about the web site name though - as it is not easy for > people to remember if they don't know the connection with _why. I personally > would have preferred rubycamping.com or something linking Camping to Ruby > somehow. But if everyone prefers that name I am fine with that. Sure, I don't care what's the domain name will be. > A couple ideas for the site: > Keep the home page simple with all content fitting within 1280 x 1024 I don't necessarily agree with this: users are used to scroll on the internet (e.g. http://vowsjs.org/) > Use a catchy design (need some help here) Of course! Unfortunately, I can't really help here either. > Accentuate that Camping is about Ruby (maybe also include the ruby logo > somewhere) Agree. > Have a brief note about the connection to _why and a link to a page > explaining the history of Camping with further links to _why's other sites Agree. I feel these kind of pages should end up at the wiki (but we might want to move away from GitHub's wiki). > Encourage people to try it by capitalizing on some of Camping's strengths: > > Fast to learn - requires only basic Ruby skills > Much simpler than Rails but more structure than Sinatra/Padrino > Lightning fast and memory efficient allowing fast and efficient sites > Can evolve from simple file to organized directory structure > Can layer in more features later using persistence and choice of view > engines Totally agree! > How about using some kind of an animated (auto advancing) slideshow to > highlight some of the benefits? See an example at: > http://blog.monnet-usa.com/?p=276 Interesting. We'll have to check that out. > How about a page on learning with a link to the book as well as a list of > links for other tutorials or short explanations on key topics (e.g. how to > do migrations, how to use include/extend, how to use different view engines, > etc.)? This should hopefully be a part of the reference section > How about a page about plugins with some brief description of their intent? Wiki material? > I would love for us to include _why's cartoons in some of the sub pages ;-) Agree. > Who would be interested in working together on the site? I'm always interested, but I'm that good at design? > Could we do a couple graphic mockups of the main page? How should we > exchange them? Via the mailing list? Not sure? > I am ready and excited to help with that. I think it would be great to > launch the site in time for _Why Day (Aug 19th)! > > Philippe > Also, I think we should store a lot of information on a wiki; Camping is after all a pretty much "public" project. I still think we should have a separate website though (which should both work as a place where you can find Camping-related resources AND where we "advertise" to new people). From dsusco at gmail.com Wed Jun 30 09:51:31 2010 From: dsusco at gmail.com (David Susco) Date: Wed, 30 Jun 2010 09:51:31 -0400 Subject: Camping 2.1 and whywentcamping.com In-Reply-To: <4C2B3F1D.3060606@monnet-usa.com> References: <4C2B3F1D.3060606@monnet-usa.com> Message-ID: >From an SEO standpoint rubycamping is probably the better choice over whywentcamping. Although changing the header to "Camping, a Ruby Microframwork" would probably be enough anyway. Dave On Wed, Jun 30, 2010 at 8:57 AM, Philippe Monnet wrote: > Thanks Magnus! I love the idea of working on the web site for 2.1. > I am still not crazy about the web site name though - as it is not easy for > people to remember if they don't know the connection with _why. I personally > would have preferred rubycamping.com or something linking Camping to Ruby > somehow. But if everyone prefers that name I am fine with that. > > A couple ideas for the site: > > Keep the home page simple with all content fitting within 1280 x 1024 > Use a catchy design (need some help here) > Accentuate that Camping is about Ruby (maybe also include the ruby logo > somewhere) > Have a brief note about the connection to _why and a link to a page > explaining the history of Camping with further links to _why's other sites > Encourage people to try it by capitalizing on some of Camping's strengths: > > Fast to learn - requires only basic Ruby skills > Much simpler than Rails but more structure than Sinatra/Padrino > Lightning fast and memory efficient allowing fast and efficient sites > Can evolve from simple file to organized directory structure > Can layer in more features later using persistence and choice of view > engines > > How about using some kind of an animated (auto advancing) slideshow to > highlight some of the benefits? See an example at: > http://blog.monnet-usa.com/?p=276 > How about a page on learning with a link to the book as well as a list of > links for other tutorials or short explanations on key topics (e.g. how to > do migrations, how to use include/extend, how to use different view engines, > etc.)? > How about a page about plugins with some brief description of their intent? > I would love for us to include _why's cartoons in some of the sub pages ;-) > > Who would be interested in working together on the site? > Could we do a couple graphic mockups of the main page? How should we > exchange them? Via the mailing list? > I am ready and excited to help with that. I think it would be great to > launch the site in time for _Why Day (Aug 19th)! > > Philippe > > On 6/30/2010 5:08 AM, Magnus Holm wrote: > > Hey campers! > > I think it's about time to release Camping 2.1, which features: > > * Support for other template engines (Haml, ERB, etc) out of the box > * No longer depends on ActiveRecord (this was a bug) > * Camping.options is now a Hash where you can put all sorts of > configuration stuff > * Camping::Server now uses Rack::Server (got rid of some code) > * See all changes here: > http://github.com/camping/camping/compare/2.0...master > > -- > > There's still one thing I want to improve before we release 2.1 > though, and that is the website. Currently it only redirects to the > RDoc, but I believe we can do better. > > Checkout this: http://whywentcamping.judofyr.net/ (also see the GitHub > repo for some more information: > http://github.com/camping/whywentcamping.com) > > Better? Worse? You tell me :-) > > Have a look at the issues I'm aware of > (http://github.com/camping/whywentcamping.com/issues) and please add > your own too. > > // Magnus Holm > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > > > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > -- Dave From ruby at monnet-usa.com Wed Jun 30 10:21:04 2010 From: ruby at monnet-usa.com (Philippe Monnet) Date: Wed, 30 Jun 2010 08:21:04 -0600 Subject: Camping 2.1 and whywentcamping.com In-Reply-To: References: <4C2B3F1D.3060606@monnet-usa.com> Message-ID: <4C2B52D0.4090202@monnet-usa.com> Sorry I actually meant to say that all key content and navigation should be visible in the top 1084 pixels (and maybe less). It's not so much that we can make the page longer but you loose visitor's attention span (see http://browsersize.googlelabs.com/). On 6/30/2010 7:46 AM, Magnus Holm wrote: > On Wed, Jun 30, 2010 at 14:57, Philippe Monnet wrote: > >> Thanks Magnus! I love the idea of working on the web site for 2.1. >> I am still not crazy about the web site name though - as it is not easy for >> people to remember if they don't know the connection with _why. I personally >> would have preferred rubycamping.com or something linking Camping to Ruby >> somehow. But if everyone prefers that name I am fine with that. >> > Sure, I don't care what's the domain name will be. > > >> A couple ideas for the site: >> Keep the home page simple with all content fitting within 1280 x 1024 >> > I don't necessarily agree with this: users are used to scroll on the > internet (e.g. http://vowsjs.org/) > > >> Use a catchy design (need some help here) >> > Of course! Unfortunately, I can't really help here either. > > >> Accentuate that Camping is about Ruby (maybe also include the ruby logo >> somewhere) >> > Agree. > > >> Have a brief note about the connection to _why and a link to a page >> explaining the history of Camping with further links to _why's other sites >> > Agree. I feel these kind of pages should end up at the wiki (but we > might want to move away from GitHub's wiki). > > >> Encourage people to try it by capitalizing on some of Camping's strengths: >> >> Fast to learn - requires only basic Ruby skills >> Much simpler than Rails but more structure than Sinatra/Padrino >> Lightning fast and memory efficient allowing fast and efficient sites >> Can evolve from simple file to organized directory structure >> Can layer in more features later using persistence and choice of view >> engines >> > Totally agree! > > >> How about using some kind of an animated (auto advancing) slideshow to >> highlight some of the benefits? See an example at: >> http://blog.monnet-usa.com/?p=276 >> > Interesting. We'll have to check that out. > > >> How about a page on learning with a link to the book as well as a list of >> links for other tutorials or short explanations on key topics (e.g. how to >> do migrations, how to use include/extend, how to use different view engines, >> etc.)? >> > This should hopefully be a part of the reference section > > >> How about a page about plugins with some brief description of their intent? >> > Wiki material? > > >> I would love for us to include _why's cartoons in some of the sub pages ;-) >> > Agree. > > >> Who would be interested in working together on the site? >> > I'm always interested, but I'm that good at design? > > >> Could we do a couple graphic mockups of the main page? How should we >> exchange them? Via the mailing list? >> > Not sure? > > >> I am ready and excited to help with that. I think it would be great to >> launch the site in time for _Why Day (Aug 19th)! >> >> Philippe >> >> > Also, I think we should store a lot of information on a wiki; Camping > is after all a pretty much "public" project. I still think we should > have a separate website though (which should both work as a place > where you can find Camping-related resources AND where we "advertise" > to new people). > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list -------------- next part -------------- An HTML attachment was scrubbed... URL: From deveritt at innotts.co.uk Wed Jun 30 12:29:33 2010 From: deveritt at innotts.co.uk (Dave Everitt) Date: Wed, 30 Jun 2010 17:29:33 +0100 Subject: Camping 2.1 and whywentcamping.com In-Reply-To: <4C2B3F1D.3060606@monnet-usa.com> References: <4C2B3F1D.3060606@monnet-usa.com> Message-ID: > On 30 Jun 2010, at 13:57, Philippe Monnet wrote: > Who would be interested in working together on the site? [briefly] I would. Busy today, will process latest emails and respond later :-) A great new step for Camping all round, though! Dave E