Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require rubocop v0.81+ / Update rubocop configuration (#112) #7

Open
wants to merge 46 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
e2b10e2
Require rubocop v0.81+ / Update rubocop configuration (#112)
toshimaru May 4, 2020
af89f4f
URL-Encoding for anchor link inside toc (#113)
toshimaru May 5, 2020
9ff88c0
Require jekyll v3.8+ / nokogiri v1.10+ (#114)
toshimaru May 5, 2020
3f912d6
RuboCop: Ignore vendor directory (#115)
toshimaru May 5, 2020
7ce8677
v0.14.0
toshimaru May 5, 2020
5c93fa9
Support Jekyll v3.9 and v4.1 / Modify workflow trigger event (#121)
toshimaru Oct 12, 2020
d6c4d04
Add configuration to enable ordered list
zsyed91 Jun 26, 2020
a74a637
Ordered list support (#122)
toshimaru Oct 13, 2020
f8cb603
v0.15.0.rc
toshimaru Oct 13, 2020
e5d721d
Create dependabot.yml
toshimaru Oct 20, 2020
d85d366
Update rubocop / Introduce rubocop-performance, rubocop-minitest (#123)
toshimaru Oct 20, 2020
c196bc6
Configure GitHub Actions dependabot / Use actions/setup-ruby (#125)
toshimaru Oct 20, 2020
f3edeff
Fix invalid dependabot.yml format
toshimaru Oct 20, 2020
3f9a7f1
Bump paambaati/codeclimate-action from v2.4.0 to v2.7.4 (#126)
dependabot[bot] Oct 20, 2020
0326e85
Update README (#127)
toshimaru Oct 25, 2020
bb31f2f
v0.15.0
toshimaru Oct 25, 2020
39b9cf3
Fix rubocop offenses / gem rubocop-rake (#136)
toshimaru Dec 16, 2020
5655efc
Bump paambaati/codeclimate-action from v2.7.4 to v2.7.5 (#134)
dependabot[bot] Dec 18, 2020
f36debc
Allow custom id for list (#137)
toshimaru Dec 18, 2020
85c08e5
v0.16.0
toshimaru Dec 18, 2020
0c7ad09
Support Jekyll 4.2 (#138)
toshimaru Dec 20, 2020
ec19577
v0.16.1
toshimaru Dec 20, 2020
48b0970
Support Ruby 3 / Drop Jekyll v3.8 / Drop Ruby v2.4 (#140)
toshimaru Jan 27, 2021
c3d18cb
Require Ruby v2.5+ and nokogiri v1.11 (#143)
toshimaru May 16, 2021
22b07a3
v0.17.1
toshimaru May 16, 2021
3f6764e
Update simplecov requirement from ~> 0.17.1 to ~> 0.21.2 (#144)
dependabot[bot] May 16, 2021
bc38b83
Set bundler-cache instead of bundle-install
toshimaru May 16, 2021
dc3f2da
license year update
toshimaru May 16, 2021
0f3bcae
Appraisals gemfiles update
toshimaru May 16, 2021
d3f9deb
Merge pull request #145 from toshimaru/ci-chores
toshimaru May 16, 2021
baa3113
Bump paambaati/codeclimate-action from 2.7.5 to 3.0.0
dependabot[bot] Oct 4, 2021
e961a81
Merge pull request #148 from toshimaru/dependabot/github_actions/paam…
toshimaru Oct 31, 2021
359feb7
Bump actions/checkout from 2 to 3 (#153)
dependabot[bot] May 26, 2022
eb23895
test: use hash explicitly for Struct initializer for ruby 3.2
mtasaka Dec 27, 2022
da25af0
Bump paambaati/codeclimate-action from 3.0.0 to 3.2.0 (#161)
dependabot[bot] Jan 6, 2023
0d5f56c
Merge pull request #165 from mtasaka/ruby32-fix-hash-for-struct-init
toshimaru Jan 22, 2023
6655fe4
chore: Fix rubocop errors (#167)
toshimaru Jan 22, 2023
cab9c65
Test against latest Ruby
voxik Dec 22, 2022
01e7196
Versions needs to be quoted
voxik Dec 22, 2022
3d0f671
ci: Use Ruby 3.2 on CI
toshimaru Jan 22, 2023
1158931
Merge pull request #168 from toshimaru/test-against-latest-ruby
toshimaru Jan 22, 2023
be63afc
Update simplecov requirement from ~> 0.21.2 to ~> 0.22.0 (#163)
dependabot[bot] Jan 22, 2023
3ba41f7
Drop Ruby 2.5 support / refactoring gemspec file
toshimaru Jan 22, 2023
4b22747
Add jekyll 4.3 support
toshimaru Jan 22, 2023
4caf13d
deps: require nokogiri v1.12
toshimaru Jan 22, 2023
748f584
Merge pull request #169 from toshimaru/drop-ruby-2.5
toshimaru Jan 22, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "bundler"
directory: "/"
schedule:
interval: "weekly"
reviewers:
- toshimaru
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
reviewers:
- toshimaru
42 changes: 22 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@
name: CI
on: [push]

on:
push:
branches:
- main
pull_request:

jobs:
build:
test:
strategy:
matrix:
ruby: [2.4, 2.5, 2.6, 2.7]
ruby: ['2.6', '2.7', '3.0', '3.1', '3.2']
gemfile:
- gemfiles/jekyll_4.0.gemfile
- gemfiles/jekyll_3.8.gemfile
- gemfiles/jekyll_3.7.gemfile
exclude:
- ruby: 2.4
gemfile: gemfiles/jekyll_4.0.gemfile
- gemfiles/jekyll_3.9.gemfile
- gemfiles/jekyll_4.0.gemfile
- gemfiles/jekyll_4.1.gemfile
- gemfiles/jekyll_4.2.gemfile
- gemfiles/jekyll_4.3.gemfile
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby ${{ matrix.ruby }}
uses: eregon/use-ruby-action@master
with:
ruby-version: ${{ matrix.ruby }}
- name: bundle install
run: |
gem install bundler
bundle install --jobs 4 --retry 3
- name: Run Test
run: bundle exec rake
- uses: actions/checkout@v3
- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run Test
run: bundle exec rake
27 changes: 14 additions & 13 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
name: Coverage
on: [push]

on:
push:
branches:
- main
pull_request:

jobs:
build:
strategy:
matrix:
ruby: [2.6]
coverage:
runs-on: ubuntu-latest
name: coverage
steps:
- uses: actions/checkout@v2
- name: Set up Ruby ${{ matrix.ruby }}
uses: eregon/use-ruby-action@master
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: bundle install
run: bundle install --jobs 4 --retry 3
- uses: paambaati/[email protected]
ruby-version: 3.2
bundler-cache: true
- uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: 6b81e393ea6ad38560386f650ea2fb0e57a7beb5e20f8c8364fabee30d5bff07
with:
Expand Down
25 changes: 13 additions & 12 deletions .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
name: RuboCop
on: [push]

on:
push:
branches:
- main
pull_request:

jobs:
build:
strategy:
matrix:
ruby: [2.6]
rubocop:
runs-on: ubuntu-latest
name: rubocop
steps:
- uses: actions/checkout@v2
- name: Set up Ruby ${{ matrix.ruby }}
uses: eregon/use-ruby-action@master
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: bundle install
run: bundle install --jobs 4 --retry 3
ruby-version: 3.2
bundler-cache: true
- name: Run RuboCop
run: bundle exec rubocop
25 changes: 17 additions & 8 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,43 @@
AllCops:
TargetRubyVersion: 2.4
TargetRubyVersion: 2.6
NewCops: enable
Exclude:
- "*.gemspec"
- "gemfiles/*"
- "vendor/**/*"
- Rakefile
- Gemfile
require:
- rubocop-performance
- rubocop-minitest

Metrics/MethodLength:
Enabled: false

Metrics/AbcSize:
Enabled: false

Metrics/ClassLength:
Enabled: false

Style/WordArray:
Enabled: false

Naming/FileName:
Enabled: false

Layout/LineLength:
Enabled: false
Layout/SpaceAroundMethodCallOperator:
Enabled: true

Style/HashEachMethods:
Lint/RaiseException:
Enabled: true
Lint/StructNewOverride:
Enabled: true

Style/WordArray:
Enabled: false
Style/HashEachMethods:
Enabled: true
Style/HashTransformKeys:
Enabled: true

Style/HashTransformValues:
Enabled: true
Style/ExponentialNotation:
Enabled: true
14 changes: 5 additions & 9 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
# frozen_string_literal: true

appraise 'jekyll-4.0' do
gem 'jekyll', '4.0'
end

appraise 'jekyll-3.8' do
gem 'jekyll', '3.8'
end
SUPPORTED_VERSIONS = %w[3.9 4.0 4.1 4.2 4.3].freeze

appraise 'jekyll-3.7' do
gem 'jekyll', '3.7'
SUPPORTED_VERSIONS.each do |version|
appraise "jekyll-#{version}" do
gem 'jekyll', version
end
end
5 changes: 4 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ gem 'minitest-reporters'
gem 'minitest'
gem 'pry'
gem 'rake'
gem 'rubocop-minitest'
gem 'rubocop-performance'
gem 'rubocop-rake'
gem 'rubocop'
gem 'simplecov', '~> 0.17.1'
gem 'simplecov', '~> 0.22.0'
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2020 Toshimaru
Copyright (c) 2020-2021 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
Expand Down
Loading