dependabot[bot] d013213138 Bump rake from 12.0.0 to 12.3.3 (#14) | %!s(int64=4) %!d(string=hai) anos | |
---|---|---|
.github | %!s(int64=4) %!d(string=hai) anos | |
lib | %!s(int64=5) %!d(string=hai) anos | |
spec | %!s(int64=7) %!d(string=hai) anos | |
.gitignore | %!s(int64=8) %!d(string=hai) anos | |
.rspec | %!s(int64=8) %!d(string=hai) anos | |
.rubocop.yml | %!s(int64=7) %!d(string=hai) anos | |
.ruby-version | %!s(int64=6) %!d(string=hai) anos | |
.travis.yml | %!s(int64=7) %!d(string=hai) anos | |
Gemfile | %!s(int64=8) %!d(string=hai) anos | |
Gemfile.lock | %!s(int64=4) %!d(string=hai) anos | |
LICENSE | %!s(int64=8) %!d(string=hai) anos | |
README.md | %!s(int64=4) %!d(string=hai) anos | |
Rakefile | %!s(int64=8) %!d(string=hai) anos | |
goldfinger.gemspec | %!s(int64=4) %!d(string=hai) anos |
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.
gem install goldfinger
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"
The official WebFinger RFC is 7033.