public
Description: Addressable is a replacement for the URI implementation that is part of Ruby's standard library. It more closely conforms to the relevant RFCs and adds support for IRIs and URI templates.
Homepage: http://addressable.rubyforge.org/
Clone URL: git://github.com/sporkmonger/addressable.git
Search Repo:
name age message
folder .gitignore Thu Jun 05 12:03:32 -0700 2008 Updated .gitignore to include .DS_Store directory. [sporkmonger]
folder CHANGELOG Thu Jun 05 12:36:34 -0700 2008 URI class now can correctly handle Hash values. [sporkmonger]
folder LICENSE Thu Jun 05 11:29:57 -0700 2008 Updated copyright date. [sporkmonger]
folder README Wed Sep 05 13:46:23 -0700 2007 Updated to 0.1.0. [sporkmonger]
folder Rakefile Thu Jun 05 12:02:30 -0700 2008 Completely reworked rake tasks. [sporkmonger]
folder lib/ Thu Jun 05 12:36:34 -0700 2008 URI class now can correctly handle Hash values. [sporkmonger]
folder spec/ Thu Jun 05 12:36:34 -0700 2008 URI class now can correctly handle Hash values. [sporkmonger]
folder tasks/ Thu Jun 05 12:02:30 -0700 2008 Completely reworked rake tasks. [sporkmonger]
folder website/ Thu Jun 05 12:37:47 -0700 2008 Updated website to include link to github page. [sporkmonger]
README
Addressable is a replacement for the URI implementation that is part of
Ruby's standard library. It more closely conforms to the relevant RFCs and
adds support for IRIs and URI templates.

Example usage:
 
 require 'addressable/uri'
 
 uri = Addressable::URI.parse("http://example.com/path/to/resource/")
 uri.scheme
 => "http"
 uri.host
 => "example.com"
 uri.path
 => "/path/to/resource/"
 
 Addressable::URI.expand_template("http://example.com/{query}/", {
   "query" => "an+example+query"
 })
 => #<Addressable::URI:0x123456 URI:http://example.com/an+example+query/>
 
 uri = Addressable::URI.parse("http://www.詹姆斯.com/")
 uri.normalize
 => #<Addressable::URI:0x654321 URI:http://www.xn--8ws00zhy3a.com/>