Skip to content

zeevallin/urifetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Urifetch

Match URL's to request strategies and retrieve them in a usable format. Urifetch allows you to fetch data from any URL using pattern matching. The library allows for dynamically adding match handlers as well as build your own strategies.

Install

Simply install them gem through RubyGems

gem install urifetch

Or through Bundler

Gemfile:

gem 'urifetch' Run: ~$ bundle install

Basic Usage

Require the library

require 'urifetch'

Start using

response = Urifetch.fetch_from("http://www.github.com") response.status => ["200","ok"] response.data => { title: 'Google' }

Contributing to Urifetch

Coming soon...

Copyright

Copyright (c) 2012 Philip Vieira. See LICENSE.txt for further details.

About

Matches URL with request strategies and returns the responses in usable formats.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages