Module: Bridgetown::Webfinger
- Defined in:
- lib/bridgetown-webfinger.rb,
lib/bridgetown/webfinger/jrd.rb,
lib/bridgetown/webfinger/href.rb,
lib/bridgetown/webfinger/link.rb,
lib/bridgetown/webfinger/alias.rb,
lib/bridgetown/webfinger/model.rb,
lib/bridgetown/webfinger/titles.rb,
lib/bridgetown/webfinger/builder.rb,
lib/bridgetown/webfinger/logging.rb,
lib/bridgetown/webfinger/version.rb,
lib/bridgetown/webfinger/parameters.rb,
lib/bridgetown/webfinger/properties.rb,
lib/bridgetown/webfinger/link_relation_type.rb
Overview
A Bridgetown plugin that adds support for serving [Webfinger] requests
The plugin handles either static or dynamic requests, served with data backed by your Bridgetown site’s data.
Defined Under Namespace
Modules: Logging Classes: Alias, Builder, Href, JRD, Link, LinkRelationType, Model, Parameters, Properties, Titles
Constant Summary collapse
- Loader =
The Zeitwerk loader responsible for auto-loading constants
Zeitwerk::Loader.for_gem(warn_on_extra_files: false).tap do |loader| loader.ignore(__FILE__) loader.ignore(File.join(__dir__, "roda", "plugins", "bridgetown_webfinger")) loader.ignore(File.join(__dir__, "bridgetown", "webfinger", "initializer")) loader.ignore(File.join(__dir__, "bridgetown", "webfinger", "uri", "acct")) loader.inflector.inflect("jrd" => "JRD") loader.setup end
- VERSION =
The version of the bridgetown-webfinger gem
"0.1.0"
Class Method Summary collapse
-
.uri?(uri) ⇒ Boolean
private
Checks whether a given string is a URI of a registered type.
Class Method Details
.uri?(uri) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Checks whether a given string is a URI of a registered type
This will not convert the item into a URI object and it is able to properly handle when there are multiple URIs in the string (by returning false).
42 43 44 45 |
# File 'lib/bridgetown-webfinger.rb', line 42 def self.uri?(uri) uri.is_a?(String) && uri == URI.extract(uri).first end |