This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Derek and Matt (author)
Wed Oct 14 10:51:24 -0700 2009
curb-fu /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Tue Jul 14 11:40:01 -0700 2009 | |
| |
LICENSE | Wed May 20 08:33:27 -0700 2009 | |
| |
README | Wed May 20 08:33:27 -0700 2009 | |
| |
Rakefile | Wed May 20 08:33:27 -0700 2009 | |
| |
curb-fu.gemspec | Wed Oct 14 10:49:31 -0700 2009 | |
| |
lib/ | Mon Sep 28 09:44:58 -0700 2009 | |
| |
spec/ | Fri Oct 09 11:10:27 -0700 2009 |
README
== curb-fu - easy-to-use wrapper around curb - the ruby wrapper around libcurl * http://github.com/curb-fu Curb can be found at http://github.com/taf2/curb === License This gem is released under the terms of the Ruby license. See the LICENSE file for details. === Prerequisites * Ruby (tested on 1.8.7, 1.9.1) * The Curb gem (and its libcurl dependency) * http://github.com/taf2/curb === Installation $ gem install curb-fu --source http://gems.github.com Or, if you ahve the source: $ cd <source-dir> $ rake gem $ gem install pkg/ === Examples Urls can be requested using hashes of options or strings. The GET, POST, PUT, and DELETE methods are supported through their respective methods on CurbFu and CurbFu::Request. ==== String Examples response = CurbFu.get('http://slashdot.org') puts response.body response = CurbFu.post('http://example.com/some/resource', { :color => 'red', :shape => 'sphere' }) puts response.body unless response.success? ==== Hash Examples response = CurbFu.get(:host => 'github.com', :path => '/gdi/curb-fu') puts response.body response = CurbFu.post({:host => 'example.com', :path => '/some/resource'}, { :color => 'red', :shape => 'sphere' }) puts response.body unless response.success? Have fun!







