From b9ab94d9fb1ef1774fbbcba4927eb0d543ae1610 Mon Sep 17 00:00:00 2001 From: Cyril Kato Date: Tue, 9 Jan 2024 21:27:31 +0100 Subject: [PATCH] chore(gem): drop Ruby 3.1 support --- .github/workflows/main.yml | 1 - .rubocop.yml | 4 +-- .rubocop.yml.erb | 2 +- .ruby-version | 2 +- CODE_OF_CONDUCT.md | 2 +- Gemfile.lock | 46 ++++++++++++++++++---------------- LICENSE.md | 2 +- VERSION.semver | 2 +- accept_language.gemspec | 2 +- lib/accept_language/matcher.rb | 2 -- 10 files changed, 32 insertions(+), 33 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b5db987..adb631f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,7 +9,6 @@ jobs: strategy: matrix: ruby: - - 3.1 - 3.2 - head diff --git a/.rubocop.yml b/.rubocop.yml index bd6f730..a477d5b 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -18,11 +18,9 @@ AllCops: - doc/ - - pkg/ - NewCops: enable - TargetRubyVersion: 3.1 + TargetRubyVersion: 3.2 inherit_from: - https://raw.githubusercontent.com/sashite/sashite-rubocop.rb/v1.0.3/config/rubocop.yml diff --git a/.rubocop.yml.erb b/.rubocop.yml.erb index b7e076b..6c27daf 100644 --- a/.rubocop.yml.erb +++ b/.rubocop.yml.erb @@ -6,7 +6,7 @@ AllCops: <% end %> NewCops: enable - TargetRubyVersion: 3.1 + TargetRubyVersion: 3.2 inherit_from: - https://raw.githubusercontent.com/sashite/sashite-rubocop.rb/v1.0.3/config/rubocop.yml diff --git a/.ruby-version b/.ruby-version index 0aec50e..be94e6f 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.1.4 +3.2.2 diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 35b5167..67fe8ce 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -52,7 +52,7 @@ decisions when appropriate. This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. -Examples of representing our community include using an official e-mail address, +Examples of representing our community include using an official email address, posting via an official social media account, or acting as an appointed representative at an online or offline event. diff --git a/Gemfile.lock b/Gemfile.lock index 04b0d05..3be68ee 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - accept_language (2.0.4) + accept_language (2.0.5) GEM remote: https://rubygems.org/ @@ -12,48 +12,52 @@ GEM aw (~> 0.2.0) docile (1.4.0) expresenter (1.4.0) - json (2.6.3) + json (2.7.1) + language_server-protocol (3.17.0.3) matchi (3.3.1) - parallel (1.23.0) - parser (3.2.2.1) + parallel (1.24.0) + parser (3.3.0.2) ast (~> 2.4.1) + racc r_spec (1.0.5) r_spec-clone r_spec-clone (1.7.0) expresenter (~> 1.4.0) matchi (~> 3.3.1) test_tube (~> 2.1.3) + racc (1.7.3) rainbow (3.1.1) - rake (13.0.6) - regexp_parser (2.8.0) - rexml (3.2.5) - rubocop (1.51.0) + rake (13.1.0) + regexp_parser (2.9.0) + rexml (3.2.6) + rubocop (1.59.0) json (~> 2.3) + language_server-protocol (>= 3.17.0) parallel (~> 1.10) - parser (>= 3.2.0.0) + parser (>= 3.2.2.4) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 1.8, < 3.0) rexml (>= 3.2.5, < 4.0) - rubocop-ast (>= 1.28.0, < 2.0) + rubocop-ast (>= 1.30.0, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 3.0) - rubocop-ast (1.28.1) + rubocop-ast (1.30.0) parser (>= 3.2.1.0) - rubocop-capybara (2.18.0) + rubocop-capybara (2.20.0) + rubocop (~> 1.41) + rubocop-factory_bot (2.25.1) rubocop (~> 1.41) - rubocop-factory_bot (2.23.1) - rubocop (~> 1.33) rubocop-gitlab-security (0.1.1) rubocop (>= 0.51) - rubocop-md (1.2.0) + rubocop-md (1.2.2) rubocop (>= 1.0) - rubocop-performance (1.18.0) - rubocop (>= 1.7.0, < 2.0) - rubocop-ast (>= 0.4.0) + rubocop-performance (1.20.2) + rubocop (>= 1.48.1, < 2.0) + rubocop-ast (>= 1.30.0, < 2.0) rubocop-rake (0.6.0) rubocop (~> 1.0) - rubocop-rspec (2.22.0) - rubocop (~> 1.33) + rubocop-rspec (2.26.1) + rubocop (~> 1.40) rubocop-capybara (~> 2.17) rubocop-factory_bot (~> 2.22) rubocop-thread_safety (0.5.1) @@ -67,7 +71,7 @@ GEM simplecov_json_formatter (0.1.4) test_tube (2.1.3) defi (~> 2.0.6) - unicode-display_width (2.4.2) + unicode-display_width (2.5.0) yard (0.9.34) PLATFORMS diff --git a/LICENSE.md b/LICENSE.md index 00695dd..d95b1c5 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ # The MIT License -Copyright (c) 2019-2023 Cyril Kato +Copyright (c) 2019-2024 Cyril Kato 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/VERSION.semver b/VERSION.semver index 2165f8f..e010258 100644 --- a/VERSION.semver +++ b/VERSION.semver @@ -1 +1 @@ -2.0.4 +2.0.5 diff --git a/accept_language.gemspec b/accept_language.gemspec index df0a6fa..85e0cf8 100644 --- a/accept_language.gemspec +++ b/accept_language.gemspec @@ -12,7 +12,7 @@ Gem::Specification.new do |spec| spec.license = "MIT" spec.files = Dir["LICENSE.md", "README.md", "lib/**/*"] - spec.required_ruby_version = ">= 3.1.4" + spec.required_ruby_version = ">= 3.2.2" spec.metadata["rubygems_mfa_required"] = "true" end diff --git a/lib/accept_language/matcher.rb b/lib/accept_language/matcher.rb index ca9c3bd..25a52bf 100644 --- a/lib/accept_language/matcher.rb +++ b/lib/accept_language/matcher.rb @@ -91,5 +91,3 @@ def wildcard?(value) end end end - -require "set"