Class: GitHubPages::Dependencies

Inherits:
Object
  • Object
show all
Defined in:
lib/github-pages/dependencies.rb

Overview

Dependencies is where all the public dependencies for GitHub Pages are defined, and versions locked. Any plugin for Pages must be specified here with a corresponding version to which it shall be locked in the runtime dependencies.

Constant Summary collapse

VERSIONS =
{
  # Jekyll
  "jekyll" => "4.3.4",
  "jekyll-sass-converter" => "3.0.0",

  # Converters
  "kramdown" => "2.4.0",
  "kramdown-parser-gfm" => "1.1.0",
  # "jekyll-commonmark-ghpages" => "0.3.0",

  # Misc
  "liquid" => "4.0.4",
  "rouge" => "4.4.0",
  "github-pages-health-check" => "1.18.5",

  # Plugins
  "jekyll-redirect-from" => "0.16.0",
  "jekyll-sitemap" => "1.4.0",
  "jekyll-feed" => "0.17.0",
  "jekyll-gist" => "1.5.0",
  "jekyll-paginate" => "1.1.0",
  "jekyll-coffeescript" => "2.0.0",
  "jekyll-seo-tag" => "2.8.0",
  "jekyll-github-metadata" => "2.16.1",
  "jekyll-avatar" => "0.8.0",
  "jekyll-remote-theme" => "0.4.3",
  "jekyll-include-cache" => "0.2.1",
  "jekyll-octicons" => "19.8.0",

  # Plugins to match GitHub.com Markdown
  "jemoji" => "0.13.0",
  "jekyll-mentions" => "1.6.0",
  "jekyll-relative-links" => "0.7.0",
  "jekyll-optional-front-matter" => "0.3.2",
  "jekyll-readme-index" => "0.3.0",
  "jekyll-default-layout" => "0.1.5",
  "jekyll-titles-from-headings" => "0.5.3",
  "jekyll-github-alerts" => "0.1.0",
}.freeze

Class Method Summary collapse

Class Method Details

.gemsObject

Jekyll and related dependency versions as used by GitHub Pages. For more information see: help.github.com/articles/using-jekyll-with-pages



51
52
53
# File 'lib/github-pages/dependencies.rb', line 51

def self.gems
  VERSIONS.merge(GitHubPages::Plugins::THEMES)
end

.version_reportObject



61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# File 'lib/github-pages/dependencies.rb', line 61

def self.version_report
  require "html/pipeline/version"
  require "sass-embedded"
  require "safe_yaml/version"
  require "nokogiri"

  {
    "ruby" => RUBY_VERSION,

    # Gem versions we're curious about
    "jekyll-v4-github-pages" => VERSION.to_s,
    "html-pipeline" => HTML::Pipeline::VERSION,
    "sass" => Sass::Embedded::VERSION,
    "safe_yaml" => SafeYAML::VERSION,
    "nokogiri" => Nokogiri::VERSION,
  }
end

.versionsObject

Versions used by GitHub Pages, including github-pages gem and ruby version Useful for programmatically querying for the current-running version



57
58
59
# File 'lib/github-pages/dependencies.rb', line 57

def self.versions
  gems.merge version_report
end