A Webfinger utility for Ruby

Eugen Rochko 0e6d7f3be0 Fix wrong dependency group for pry 9 years ago
lib f127a1f30f Implement RFC 7033, bump version to 1.0.0, add some documentation 9 years ago
spec f127a1f30f Implement RFC 7033, bump version to 1.0.0, add some documentation 9 years ago
.rspec 724f0c6a80 Initial commit 9 years ago
.ruby-version 724f0c6a80 Initial commit 9 years ago
.travis.yml 237a9c2e81 Adding travis CI 9 years ago
Gemfile b2b1b5c252 Fix wrong dependency group for pry 9 years ago
Gemfile.lock 237a9c2e81 Adding travis CI 9 years ago
LICENSE 8b0d7af683 Adding gem version badge to README 9 years ago
README.md 8eb4e350b1 Fix readme badges 9 years ago
Rakefile 237a9c2e81 Adding travis CI 9 years ago
goldfinger.gemspec b2b1b5c252 Fix wrong dependency group for pry 9 years ago

README.md

Goldfinger, a Webfinger client for Ruby

Gem Version Build Status Dependency Status

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"

data.aliases
# => ["https://quitter.no/user/7477", "https://quitter.no/gargron"]

data.subject
# => "acct:gargron@quitter.no"

RFC support

The official Webfinger RFC is 7033.