From fc46b972025fdc37631d6dd6e6fd8aeca28235a8 Mon Sep 17 00:00:00 2001 From: toshimaru Date: Fri, 3 May 2024 18:08:16 +0900 Subject: [PATCH 1/6] ci: CI against Ruby v3.3 --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ca52763..5e48efa 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,7 +10,7 @@ jobs: test: strategy: matrix: - ruby: ['2.7', '3.0', '3.1', '3.2'] + ruby: ['2.7', '3.0', '3.1', '3.2', '3.3'] gemfile: - gemfiles/jekyll_3.9.gemfile - gemfiles/jekyll_4.0.gemfile @@ -30,7 +30,7 @@ jobs: - name: Run Test run: bundle exec rake - coverate: + coverage: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 From 53e782ea832fc390c174d95de8fef2c9e604f7cc Mon Sep 17 00:00:00 2001 From: toshimaru Date: Fri, 3 May 2024 18:16:09 +0900 Subject: [PATCH 2/6] Update LICENSE.txt --- LICENSE.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE.txt b/LICENSE.txt index 9fd5529..ef4045b 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2016-2023 Toshimaru +Copyright (c) 2016-2024 Toshimaru Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal From c8e5e97113526e742907b0d1050fb73947cb54a5 Mon Sep 17 00:00:00 2001 From: toshimaru Date: Fri, 3 May 2024 18:16:18 +0900 Subject: [PATCH 3/6] chore: fix comment --- lib/jekyll-tagging-related_posts.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jekyll-tagging-related_posts.rb b/lib/jekyll-tagging-related_posts.rb index 65b4922..e236eb0 100644 --- a/lib/jekyll-tagging-related_posts.rb +++ b/lib/jekyll-tagging-related_posts.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# requiring `jekyll/document` first to overide `Jekyll::Document` +# Require `jekyll/document` to override `Jekyll::Document` require "jekyll/document" require "jekyll/tagging/related_posts/version" From e1413f77521e85e2add6acf461c3ab7b917e2c21 Mon Sep 17 00:00:00 2001 From: toshimaru Date: Fri, 3 May 2024 18:16:48 +0900 Subject: [PATCH 4/6] chore: Modenize Ruby hash --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index ac60dc6..2dea543 100644 --- a/Rakefile +++ b/Rakefile @@ -9,4 +9,4 @@ Rake::TestTask.new(:test) do |t| t.test_files = FileList['test/**/*_test.rb'] end -task :default => :test +task default: :test From 20e4964ca617e785a4d11cbdc724e2003bebf481 Mon Sep 17 00:00:00 2001 From: toshimaru Date: Fri, 3 May 2024 18:22:50 +0900 Subject: [PATCH 5/6] Update binstubs --- bin/console | 7 ++----- bin/setup | 3 ++- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/bin/console b/bin/console index 56bb66d..952a2d7 100755 --- a/bin/console +++ b/bin/console @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# frozen_string_literal: true require "bundler/setup" require "jekyll-tagging-related_posts" @@ -6,9 +7,5 @@ require "jekyll-tagging-related_posts" # You can add fixtures and/or initialization code here to make experimenting # with your gem easier. You can also use a different console, if you like. -# (If you use this, don't forget to add pry to your Gemfile!) -# require "pry" -# Pry.start - require "irb" -IRB.start +IRB.start(__FILE__) diff --git a/bin/setup b/bin/setup index b65ed50..dce67d8 100755 --- a/bin/setup +++ b/bin/setup @@ -1,6 +1,7 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail IFS=$'\n\t' +set -vx bundle install From b811ca611b6c2901ed0d553e93b76ebc10ebd3ee Mon Sep 17 00:00:00 2001 From: toshimaru Date: Fri, 3 May 2024 18:22:59 +0900 Subject: [PATCH 6/6] docs: Update CI badge --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4fd9d6a..4a125e8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # jekyll-tagging-related_posts -[![Build Status](https://travis-ci.org/toshimaru/jekyll-tagging-related_posts.svg?branch=master)](https://travis-ci.org/toshimaru/jekyll-tagging-related_posts) +[![Test](https://github.com/toshimaru/jekyll-tagging-related_posts/actions/workflows/test.yml/badge.svg)](https://github.com/toshimaru/jekyll-tagging-related_posts/actions/workflows/test.yml) [![Gem Version](https://badge.fury.io/rb/jekyll-tagging-related_posts.svg)](https://badge.fury.io/rb/jekyll-tagging-related_posts) [![Test Coverage](https://codeclimate.com/github/toshimaru/jekyll-tagging-related_posts/badges/coverage.svg)](https://codeclimate.com/github/toshimaru/jekyll-tagging-related_posts/coverage) [![Code Climate](https://codeclimate.com/github/toshimaru/jekyll-tagging-related_posts/badges/gpa.svg)](https://codeclimate.com/github/toshimaru/jekyll-tagging-related_posts) @@ -11,7 +11,7 @@ The calculation algorithm is based on [related\_posts-jekyll\_plugin](https://gi ## Installation -Add this line to your application's Gemfile: +Add this line to your application's `Gemfile`: ```ruby gem 'jekyll-tagging-related_posts'