From 7ed3bef1b1fcceb506fb266a27f4ba71d781e4e6 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sat, 23 Jan 2021 21:14:31 +0800 Subject: [PATCH] Add gem-based settings --- .gitignore | 5 +++++ Gemfile | 14 +++++++------- Gemfile.lock | 16 ++++++++-------- jekyll-theme-chirpy.gemspec | 26 ++++++++++++++++++++++++++ 4 files changed, 46 insertions(+), 15 deletions(-) create mode 100644 jekyll-theme-chirpy.gemspec diff --git a/.gitignore b/.gitignore index 2cc94c7..32c314a 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,11 @@ _site vendor +# rubygem +*.gem +# yard docs +doc + # npm dependencies node_modules package-lock.json diff --git a/Gemfile b/Gemfile index 2c6581e..54686cc 100644 --- a/Gemfile +++ b/Gemfile @@ -1,18 +1,18 @@ source "https://rubygems.org" -gem "jekyll", ">= 4.1.0", "< 5.0" +gem "jekyll", "~> 4.1" # plugins group :jekyll_plugins do - gem "jekyll-paginate" - gem "jekyll-redirect-from" - gem "jekyll-seo-tag" - gem "jekyll-archives" - gem "jekyll-sitemap" + gem "jekyll-paginate", "~> 1.1" + gem "jekyll-redirect-from", "~> 0.16" + gem "jekyll-seo-tag", "~> 2.7" + gem "jekyll-archives", "~> 2.2" + gem "jekyll-sitemap", "~> 1.4" end group :test do - gem "html-proofer" + gem "html-proofer", "~> 3.18" end # Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem diff --git a/Gemfile.lock b/Gemfile.lock index 5f9d07f..d129072 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -98,16 +98,16 @@ PLATFORMS ruby DEPENDENCIES - html-proofer - jekyll (>= 4.1.0, < 5.0) - jekyll-archives - jekyll-paginate - jekyll-redirect-from - jekyll-seo-tag - jekyll-sitemap + html-proofer (~> 3.18) + jekyll (~> 4.1) + jekyll-archives (~> 2.2) + jekyll-paginate (~> 1.1) + jekyll-redirect-from (~> 0.16) + jekyll-seo-tag (~> 2.7) + jekyll-sitemap (~> 1.4) tzinfo (~> 1.2) tzinfo-data wdm (~> 0.1.1) BUNDLED WITH - 2.1.4 + 2.2.4 diff --git a/jekyll-theme-chirpy.gemspec b/jekyll-theme-chirpy.gemspec new file mode 100644 index 0000000..488baea --- /dev/null +++ b/jekyll-theme-chirpy.gemspec @@ -0,0 +1,26 @@ +# frozen_string_literal: true + +Gem::Specification.new do |spec| + spec.name = "jekyll-theme-chirpy" + spec.version = "2.7.2" + spec.authors = ["Cotes Chung"] + spec.email = ["cotes.chung@gmail.com"] + + spec.summary = "Chirpy is a minimal, sidebar, responsive web design Jekyll theme that focuses on text presentation." + spec.homepage = "https://github.com/cotes2020/jekyll-theme-chirpy#readme" + spec.license = "MIT" + + spec.files = `git ls-files -z`.split("\x0").select { |f| + f.match(%r!^((assets\/(css|img|js\/[a-z])|_(includes|layouts|sass|config|data|tabs|plugins))|README|LICENSE|index|feed|app|sw|404|robots)!i) + } + + spec.add_runtime_dependency "jekyll", "~> 4.1" + spec.add_runtime_dependency "jekyll-paginate", "~> 1.1" + spec.add_runtime_dependency "jekyll-redirect-from", "~> 0.16" + spec.add_runtime_dependency "jekyll-seo-tag", "~> 2.7" + spec.add_runtime_dependency "jekyll-archives", "~> 2.2" + spec.add_runtime_dependency "jekyll-sitemap", "~> 1.4" + + spec.add_development_dependency "html-proofer", "~> 3.18" + +end