Dave Everitt | 2 Jun 13:32 2010
Picon

markaby

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
Philippe Monnet | 8 Jun 02:37 2010

camping-oauth is now available

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@...
http://rubyforge.org/mailman/listinfo/camping-list
Raimon Fernandez | 8 Jun 08:25 2010

First time on Camping

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.
Raimon Fernandez | 8 Jun 09:18 2010

First time and first error

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.
Raimon Fernandez | 8 Jun 10:59 2010

Re: First time and first error


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@...
> http://rubyforge.org/mailman/listinfo/camping-list
> 
Magnus Holm | 8 Jun 11:34 2010
Picon

Re: First time and first error

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 <coder <at> montx.com> wrote:
>
> On 8jun, 2010, at 09:18 , Raimon Fernandez wrote:
>
>> Hi again,
>>
>>
>> I'm trying to install Camping on my OS X but I'm getting 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
>
_______________________________________________
Camping-list mailing list
Camping-list <at> rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list
Dave Everitt | 8 Jun 11:52 2010
Picon

Re: First time and first error

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$
Dave Everitt | 8 Jun 12:03 2010
Picon

Re: First time and first error

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
Raimon Fernandez | 8 Jun 12:17 2010

Re: First time and first error

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.
Raimon Fernandez | 8 Jun 12:25 2010

Re: First time and first error


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.

Gmane