dependabot[bot] d013213138 Bump rake from 12.0.0 to 12.3.3 (#14) | il y a 4 ans | |
---|---|---|
.github | il y a 4 ans | |
lib | il y a 5 ans | |
spec | il y a 7 ans | |
.gitignore | il y a 8 ans | |
.rspec | il y a 8 ans | |
.rubocop.yml | il y a 7 ans | |
.ruby-version | il y a 6 ans | |
.travis.yml | il y a 7 ans | |
Gemfile | il y a 8 ans | |
Gemfile.lock | il y a 4 ans | |
LICENSE | il y a 8 ans | |
README.md | il y a 4 ans | |
Rakefile | il y a 8 ans | |
goldfinger.gemspec | il y a 4 ans |
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.