dependabot[bot] 4cd0650dbf Bump addressable from 2.5.2 to 2.8.0 | 3 anos atrás | |
---|---|---|
.github | 4 anos atrás | |
lib | 5 anos atrás | |
spec | 7 anos atrás | |
.gitignore | 8 anos atrás | |
.rspec | 8 anos atrás | |
.rubocop.yml | 7 anos atrás | |
.ruby-version | 6 anos atrás | |
.travis.yml | 7 anos atrás | |
Gemfile | 8 anos atrás | |
Gemfile.lock | 3 anos atrás | |
LICENSE | 8 anos atrás | |
README.md | 4 anos atrás | |
Rakefile | 8 anos atrás | |
goldfinger.gemspec | 4 anos atrás |
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.