From 778dd7a821d4ea6a81748a3f19a1b0898037efc3 Mon Sep 17 00:00:00 2001 From: Duncan Robertson Date: Wed, 9 Oct 2024 22:15:47 +0100 Subject: [PATCH] chore: Updating dependencies and drop Ruby < 3 --- .github/workflows/ruby.yml | 2 +- Gemfile.lock | 30 ++++++++++++++---------------- README.md | 2 +- rqrcode.gemspec | 8 +++----- 4 files changed, 19 insertions(+), 23 deletions(-) diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 05006cb..532fd0d 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -14,7 +14,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest] - ruby: ['2.7', '3.0', '3.1', '3.2', '3.3'] + ruby: ['3.0', '3.1', '3.2', '3.3'] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 diff --git a/Gemfile.lock b/Gemfile.lock index 4314be1..4b524b5 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -15,14 +15,13 @@ GEM language_server-protocol (3.17.0.3) lint_roller (1.1.0) parallel (1.26.3) - parser (3.3.4.2) + parser (3.3.5.0) ast (~> 2.4.1) racc racc (1.8.1) rainbow (3.1.1) rake (13.2.1) regexp_parser (2.9.2) - rexml (3.3.7) rqrcode_core (1.2.0) rspec (3.13.0) rspec-core (~> 3.13.0) @@ -37,48 +36,47 @@ GEM diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.13.0) rspec-support (3.13.1) - rubocop (1.64.1) + rubocop (1.66.1) json (~> 2.3) language_server-protocol (>= 3.17.0) parallel (~> 1.10) parser (>= 3.3.0.2) rainbow (>= 2.2.2, < 4.0) - regexp_parser (>= 1.8, < 3.0) - rexml (>= 3.2.5, < 4.0) - rubocop-ast (>= 1.31.1, < 2.0) + regexp_parser (>= 2.4, < 3.0) + rubocop-ast (>= 1.32.2, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 3.0) - rubocop-ast (1.32.2) + rubocop-ast (1.32.3) parser (>= 3.3.1.0) - rubocop-performance (1.21.1) + rubocop-performance (1.22.1) rubocop (>= 1.48.1, < 2.0) rubocop-ast (>= 1.31.1, < 2.0) ruby-progressbar (1.13.0) - standard (1.37.0) + standard (1.41.0) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.0) - rubocop (~> 1.64.0) + rubocop (~> 1.66.0) standard-custom (~> 1.0.0) - standard-performance (~> 1.4) + standard-performance (~> 1.5) standard-custom (1.0.2) lint_roller (~> 1.0) rubocop (~> 1.50) - standard-performance (1.4.0) + standard-performance (1.5.0) lint_roller (~> 1.1) - rubocop-performance (~> 1.21.0) - unicode-display_width (2.5.0) + rubocop-performance (~> 1.22.0) + unicode-display_width (2.6.0) PLATFORMS + aarch64-linux ruby x86_64-linux - aarch64-linux DEPENDENCIES bundler (~> 2.0) rake (~> 13.0) rqrcode! rspec (~> 3.5) - standard (= 1.37) + standard (~> 1.41) BUNDLED WITH 2.4.10 diff --git a/README.md b/README.md index 41ddb75..5f78960 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ [RQRCode](https://github.com/whomwah/rqrcode) is a library for creating and rendering QR codes into various formats. It has a simple interface with all the standard QR code options. It was adapted from the Javascript library by Kazuhiko Arase. * QR code is trademarked by Denso Wave inc -* Minimum Ruby version is `>= 2.7` +* Minimum Ruby version is `>= 3.0.0` * For `rqrcode` releases `< 2.0.0` please use [this README](https://github.com/whomwah/rqrcode/blob/v1.2.0/README.md) * For `rqrcode` releases `< 1.0.0` please use [this README](https://github.com/whomwah/rqrcode/blob/v0.9.0/README.md) diff --git a/rqrcode.gemspec b/rqrcode.gemspec index e2acc22..ee70662 100644 --- a/rqrcode.gemspec +++ b/rqrcode.gemspec @@ -29,13 +29,11 @@ Gem::Specification.new do |spec| spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ["lib"] - spec.required_ruby_version = ">= 2.7" - spec.add_dependency "rqrcode_core", "~> 1.0" + spec.required_ruby_version = ">= 3.0.0" + spec.add_dependency "rqrcode_core", "~> 2.0" spec.add_dependency "chunky_png", "~> 1.0" spec.add_development_dependency "bundler", "~> 2.0" spec.add_development_dependency "rake", "~> 13.0" spec.add_development_dependency "rspec", "~> 3.5" - # We need an explicit lower version as high versons - # require us to support Ruby >= 3.0.0 - spec.add_development_dependency "standard", "1.37" + spec.add_development_dependency "standard", "~> 1.41" end