A Webfinger utility for Ruby
Go to file
Eugen Rochko eddf330c22 The Webfinger spec now mandates a standard URL. Check that URL first, instead of
checking host-meta first (which may actually not be present). Bump to 1.2.0
2017-04-27 16:25:20 +02:00
lib The Webfinger spec now mandates a standard URL. Check that URL first, instead of 2017-04-27 16:25:20 +02:00
spec The Webfinger spec now mandates a standard URL. Check that URL first, instead of 2017-04-27 16:25:20 +02:00
.gitignore Add timeouts to requests, update dependencies, bump to 1.0.3 2016-09-20 01:09:05 +02:00
.rspec Add timeouts to requests, update dependencies, bump to 1.0.3 2016-09-20 01:09:05 +02:00
.ruby-version Add timeouts to requests, update dependencies, bump to 1.0.3 2016-09-20 01:09:05 +02:00
.travis.yml Adding travis CI 2016-02-18 01:44:36 +01:00
Gemfile Add timeouts to requests, update dependencies, bump to 1.0.3 2016-09-20 01:09:05 +02:00
Gemfile.lock The Webfinger spec now mandates a standard URL. Check that URL first, instead of 2017-04-27 16:25:20 +02:00
LICENSE Adding gem version badge to README 2016-02-17 16:36:19 +01:00
README.md Fix readme badges 2016-02-18 01:46:25 +01:00
Rakefile Adding travis CI 2016-02-18 01:44:36 +01:00
goldfinger.gemspec The Webfinger spec now mandates a standard URL. Check that URL first, instead of 2017-04-27 16:25:20 +02:00

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.