A Webfinger utility for Ruby
Go to file
Eugen Rochko 75f1b1faf9 Add handling for SSL errors, bump version to 0.1.1 2016-02-17 16:59:57 +01:00
lib Add handling for SSL errors, bump version to 0.1.1 2016-02-17 16:59:57 +01:00
spec Add handling for SSL errors, bump version to 0.1.1 2016-02-17 16:59:57 +01:00
.rspec Initial commit 2016-02-17 15:13:19 +01:00
.ruby-version Initial commit 2016-02-17 15:13:19 +01:00
Gemfile Adding tests 2016-02-17 16:02:27 +01:00
Gemfile.lock Adding error handling and more test cases 2016-02-17 16:18:46 +01:00
LICENSE Adding gem version badge to README 2016-02-17 16:36:19 +01:00
README.md Add handling for SSL errors, bump version to 0.1.1 2016-02-17 16:59:57 +01:00
goldfinger.gemspec Add handling for SSL errors, bump version to 0.1.1 2016-02-17 16:59:57 +01:00

README.md

Goldfinger, a Webfinger client for Ruby

Gem Version

A Webfinger client for Ruby. Supports application/xrd+xml and application/jrd+json responses. Raises Goldfinger::NotFoundError on failure to fetch the Webfinger or XRD data, or Goldfinger::SSLError if something is wrong with the HTTPS connection it uses.

Installation

gem install goldfinger

Usage

data = Goldfinger.finger('acct:gargron@quitter.no')
data.link('http://schemas.google.com/g/2010#updates-from')[:href]
# => "https://quitter.no/api/statuses/user_timeline/7477.atom"

RFC support

The gem only parses link data. It does not currently parse aliases, properties, or more complex structures.