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 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 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' 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 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 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"