Project

nosh

0.0
No commit activity in last 3 years
No release in over 3 years
A very simple Typhoeus/Nokogiri wrapper. Conceptually based on the eat library.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0.0

Runtime

~> 1.4.6
~> 0.2.4
 Project Readme

nosh

Description

A very simple Typhoeus/Nokogiri wrapper. Conceptually based on the eat library.

Usage

require 'nosh'

nosh("http://www.google.com/")        #=> Response body as string
"http://www.google.com/".nosh         #=> same

nosh("http://www.google.com/", true)  #=> Parsed Nokogiri XML/HTML document
"http://www.google.com/".nosh(true)   #=> same

nosh("http://httpstat.us/301")        #=> Prints status code and message
"http://httpstat.us/301".nosh         #=> same

Requirements

  • Typhoeus (v0.2.4)
  • Nokogiri (v1.4.6)

Install

$ gem install nosh

Copyright

Copyright (c) 2011 Ezekiel Templin

See LICENSE.txt for details.