Sha256: c67672cbb874a0c89cfd72c3c727ed524f28eddfcdc7f62e5bf6e11f9593915b
Contents?: true
Size: 1.01 KB
Versions: 19
Compression:
Stored size: 1.01 KB
Contents
# (c) Copyright 2020 Ribose Inc. # require "jekyll" module Jekyll module Geolexica # Loads Rake tasks which are provided in this gem. # # In order to load these tasks, following lines should be added to given # site's Rakefile: # # require "jekyll-geolexica" # ::Jekyll::Geolexica.load_tasks def self.load_tasks tasks_path = File.expand_path("../tasks", __dir__) Rake.add_rakelib(tasks_path) end end end # Unfortunately, Zeitwerk::Loader.for_gem doesn't work well when gem's main # namespace is compound. # Also, Jekyll::Geolexica must be defined prior passing it to #push_dir. require "zeitwerk" loader = Zeitwerk::Loader.new loader.tag = "jekyll-geolexica" loader.push_dir(File.join(__dir__, "geolexica"), namespace: Jekyll::Geolexica) loader.inflector = Zeitwerk::GemInflector.new(__FILE__) loader.setup # Jekyll-Geolexica must be loaded eagerly because Jekyll has no other way # to learn about gem's features. loader.eager_load Jekyll::Geolexica::Hooks.register_all_hooks
Version data entries
19 entries across 19 versions & 1 rubygems