mirror of https://github.com/mastodon/goldfinger
d013213138
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> |
||
---|---|---|
.github/workflows | ||
lib | ||
spec | ||
.gitignore | ||
.rspec | ||
.rubocop.yml | ||
.ruby-version | ||
.travis.yml | ||
Gemfile | ||
Gemfile.lock | ||
LICENSE | ||
README.md | ||
Rakefile | ||
goldfinger.gemspec |
README.md
Goldfinger, a WebFinger client for Ruby
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.