A Webfinger utility for Ruby
Go to file
dependabot[bot] d013213138
Bump rake from 12.0.0 to 12.3.3 (#14)
Bumps [rake](https://github.com/ruby/rake) from 12.0.0 to 12.3.3.
- [Release notes](https://github.com/ruby/rake/releases)
- [Changelog](https://github.com/ruby/rake/blob/master/History.rdoc)
- [Commits](https://github.com/ruby/rake/compare/v12.0.0...v12.3.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-03-19 18:21:48 +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 rake from 12.0.0 to 12.3.3 (#14) 2020-03-19 18:21:48 +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.