Module: Jekyll::WebmentionIO
- Defined in:
- lib/jekyll/caches.rb,
lib/jekyll/config.rb,
lib/jekyll/templates.rb,
lib/jekyll/tags/count.rb,
lib/jekyll/tags/likes.rb,
lib/jekyll/tags/links.rb,
lib/jekyll/tags/posts.rb,
lib/jekyll/tags/rsvps.rb,
lib/jekyll/webmentions.rb,
lib/jekyll/tags/replies.rb,
lib/jekyll/tags/reposts.rb,
lib/jekyll/webmention_io.rb,
lib/jekyll/network_client.rb,
lib/jekyll/tags/bookmarks.rb,
lib/jekyll/tags/webmention.rb,
lib/jekyll/tags/webmentions.rb,
lib/jekyll/webmention_policy.rb,
lib/jekyll/commands/webmention.rb,
lib/jekyll/tags/webmentions_js.rb,
lib/jekyll/tags/webmention_type.rb,
lib/jekyll/generators/compile_js.rb,
lib/jekyll/tags/webmentions_head.rb,
lib/jekyll/webmention_io/version.rb,
lib/jekyll/webmention_io/js_handler.rb,
lib/jekyll/generators/queue_webmentions.rb,
lib/jekyll/generators/gather_webmentions.rb,
lib/jekyll/webmention_io/webmention_item.rb
Defined Under Namespace
Modules: Commands Classes: Caches, CompileJS, Config, GatherWebmentions, JSHandler, JavaScriptFile, NetworkClient, QueueWebmentions, Templates, WebmentionBookmarksTag, WebmentionCountTag, WebmentionHeadTag, WebmentionItem, WebmentionJSTag, WebmentionLikesTag, WebmentionLinksTag, WebmentionPolicy, WebmentionPostsTag, WebmentionRepliesTag, WebmentionRepostsTag, WebmentionRsvpsTag, WebmentionTag, WebmentionTypeTag, Webmentions, WebmentionsTag
Constant Summary collapse
- VERSION =
'4.2.0'
Class Attribute Summary collapse
-
.cache_files ⇒ Object
readonly
define simple getters and setters.
-
.caches ⇒ Object
readonly
define simple getters and setters.
-
.config ⇒ Object
readonly
define simple getters and setters.
-
.js_handler ⇒ Object
readonly
define simple getters and setters.
-
.policy ⇒ Object
readonly
define simple getters and setters.
-
.templates ⇒ Object
readonly
define simple getters and setters.
-
.types ⇒ Object
readonly
define simple getters and setters.
-
.webmentions ⇒ Object
readonly
define simple getters and setters.
Class Method Summary collapse
- .bootstrap(site, config = nil, caches = nil, policy = nil, webmentions = nil, templates = nil) ⇒ Object
- .log(type, message) ⇒ Object
Class Attribute Details
.cache_files ⇒ Object (readonly)
define simple getters and setters
22 23 24 |
# File 'lib/jekyll/webmention_io.rb', line 22 def cache_files @cache_files end |
.caches ⇒ Object (readonly)
define simple getters and setters
22 23 24 |
# File 'lib/jekyll/webmention_io.rb', line 22 def caches @caches end |
.config ⇒ Object (readonly)
define simple getters and setters
22 23 24 |
# File 'lib/jekyll/webmention_io.rb', line 22 def config @config end |
.js_handler ⇒ Object (readonly)
define simple getters and setters
22 23 24 |
# File 'lib/jekyll/webmention_io.rb', line 22 def js_handler @js_handler end |
.policy ⇒ Object (readonly)
define simple getters and setters
22 23 24 |
# File 'lib/jekyll/webmention_io.rb', line 22 def policy @policy end |
.templates ⇒ Object (readonly)
define simple getters and setters
22 23 24 |
# File 'lib/jekyll/webmention_io.rb', line 22 def templates @templates end |
.types ⇒ Object (readonly)
define simple getters and setters
22 23 24 |
# File 'lib/jekyll/webmention_io.rb', line 22 def types @types end |
.webmentions ⇒ Object (readonly)
define simple getters and setters
22 23 24 |
# File 'lib/jekyll/webmention_io.rb', line 22 def webmentions @webmentions end |
Class Method Details
.bootstrap(site, config = nil, caches = nil, policy = nil, webmentions = nil, templates = nil) ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/jekyll/webmention_io.rb', line 30 def self.bootstrap(site, config = nil, caches = nil, policy = nil, webmentions = nil, templates = nil) @site = site @config = config || Config.new(@site) @caches = caches || Caches.new(@config) @policy = policy || WebmentionPolicy.new(@config, @caches) @webmentions = webmentions || Webmentions.new(@policy, NetworkClient.new, @config.api_url) @templates = templates || Templates.new(site) @js_handler = WebmentionIO::JSHandler.new end |
.log(type, message) ⇒ Object
42 43 44 45 46 47 |
# File 'lib/jekyll/webmention_io.rb', line 42 def self.log(type, ) return unless @config.nil? || @config.debug || %w(error msg).include?(type) type = 'info' if type == 'msg' Jekyll.logger.method(type).call("#{@logger_prefix} #{}") end |