A Webfinger utility for Ruby
Go to file
Eugen Rochko 4f585464ba
Update gempush.yml
2020-01-12 15:31:29 +01:00
.github/workflows Update gempush.yml 2020-01-12 15:31:29 +01:00
lib Upgrade to HTTP.rb v4 (#9) 2019-01-14 09:23:20 +00:00
spec Update dependencies, do not mask HTTP/OpenSSL exceptions, do not fallback to HTTP (#4) 2017-07-19 23:36:11 +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
.rubocop.yml Update dependencies, do not mask HTTP/OpenSSL exceptions, do not fallback to HTTP (#4) 2017-07-19 23:36:11 +02:00
.ruby-version Update dependencies and bump to 2.1.0 2018-01-23 05:23:16 +01:00
.travis.yml Update dependencies, do not mask HTTP/OpenSSL exceptions, do not fallback to HTTP (#4) 2017-07-19 23:36:11 +02:00
Gemfile Add timeouts to requests, update dependencies, bump to 1.0.3 2016-09-20 01:09:05 +02:00
Gemfile.lock Bump nokogiri from 1.8.5 to 1.10.5 (#11) 2019-11-14 13:48:16 +01:00
LICENSE Adding gem version badge to README 2016-02-17 16:36:19 +01:00
README.md Bump version to 2.1.1 (#12) 2020-01-12 15:25:22 +01:00
Rakefile Adding travis CI 2016-02-18 01:44:36 +01:00
goldfinger.gemspec Bump version to 2.1.1 (#12) 2020-01-12 15:25:22 +01:00

README.md

Goldfinger, a WebFinger client for Ruby

Gem Version Build 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, can also raise HTTP:Error or OpenSSL::SSL::SSLError if something is wrong with the HTTPS connection it uses.

  • Does not fall back to HTTP if HTTPS is not available
  • Does check host-meta XRD, but only if the standard WebFinger path yielded no result

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.