A Webfinger utility for Ruby
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Go to file
dependabot[bot] d013213138
Bump rake from 12.0.0 to 12.3.3 (#14)
4 years ago
.github/workflows Update gempush.yml 4 years ago
lib Upgrade to HTTP.rb v4 (#9) 5 years ago
spec Update dependencies, do not mask HTTP/OpenSSL exceptions, do not fallback to HTTP (#4) 6 years ago
.gitignore Add timeouts to requests, update dependencies, bump to 1.0.3 7 years ago
.rspec Add timeouts to requests, update dependencies, bump to 1.0.3 7 years ago
.rubocop.yml Update dependencies, do not mask HTTP/OpenSSL exceptions, do not fallback to HTTP (#4) 6 years ago
.ruby-version Update dependencies and bump to 2.1.0 6 years ago
.travis.yml Update dependencies, do not mask HTTP/OpenSSL exceptions, do not fallback to HTTP (#4) 6 years ago
Gemfile Add timeouts to requests, update dependencies, bump to 1.0.3 7 years ago
Gemfile.lock Bump rake from 12.0.0 to 12.3.3 (#14) 4 years ago
LICENSE Adding gem version badge to README 8 years ago
README.md Bump version to 2.1.1 (#12) 4 years ago
Rakefile Adding travis CI 8 years ago
goldfinger.gemspec Bump version to 2.1.1 (#12) 4 years ago

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.