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