From 773e4baf7ca26dd9f53893ec6edc3db3be9e1031 Mon Sep 17 00:00:00 2001 From: Anupam Sengupta Date: Mon, 12 Aug 2024 18:14:32 -0400 Subject: [PATCH] Dropping support for Ruby 2.6 and bumping version to 2.1.0. Many of the upstream gems no longer support Ruby 2.6, and older gems may have security holes that cannot be resolved without updating to the latest versions. --- .github/workflows/coveralls.yml | 2 +- .github/workflows/ruby.yml | 2 +- .rubocop.yml | 2 +- API-CHANGES.md | 6 +++ Gemfile.lock | 93 +++++++++++++++++---------------- History.md | 7 +++ README.md | 2 +- lib/tree/version.rb | 4 +- rubytree.gemspec | 18 +++---- 9 files changed, 77 insertions(+), 59 deletions(-) diff --git a/.github/workflows/coveralls.yml b/.github/workflows/coveralls.yml index e2649a3..8dd184f 100644 --- a/.github/workflows/coveralls.yml +++ b/.github/workflows/coveralls.yml @@ -16,7 +16,7 @@ jobs: strategy: fail-fast: false matrix: - ruby: ["2.6", "2.7", "3.0", "3.1"] + ruby: ["2.7", "3.0", "3.1", "3.2", "3.3"] runs-on: ubuntu-latest steps: diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 74cf275..220bc41 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -9,7 +9,7 @@ jobs: strategy: fail-fast: false matrix: - ruby: ["2.6", "2.7", "3.0", "3.1"] + ruby: ["2.7", "3.0", "3.1", "3.2", "3.3"] runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 diff --git a/.rubocop.yml b/.rubocop.yml index d24be24..ef7483d 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -5,7 +5,7 @@ inherit_from: .rubocop_todo.yml AllCops: NewCops: enable - TargetRubyVersion: 2.6 + TargetRubyVersion: 2.7 Lint/UselessAssignment: Exclude: diff --git a/API-CHANGES.md b/API-CHANGES.md index bd8d3d5..211d0c3 100644 --- a/API-CHANGES.md +++ b/API-CHANGES.md @@ -7,6 +7,12 @@ _Note_: API changes are expected to reduce significantly after the `1.x` release. In most cases, an alternative will be provided to ensure relatively smooth transition to the new APIs. +## Release 2.1.0 Changes + +* Minimum Ruby version has been bumped to 2.7 and above + +* Updated all upstream dependencies to their latest stable versions + ## Release 2.0.0 Changes * The _minimum_ required Ruby version is now `2.6` (or higher). diff --git a/Gemfile.lock b/Gemfile.lock index cf4c83a..be74687 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,73 +1,78 @@ PATH remote: . specs: - rubytree (2.0.3) + rubytree (2.1.0) json (~> 2.0, > 2.3.1) GEM remote: https://rubygems.org/ specs: ast (2.4.2) - diff-lcs (1.5.0) - docile (1.4.0) - json (2.6.2) - parallel (1.22.1) - parser (3.1.2.0) + diff-lcs (1.5.1) + docile (1.4.1) + json (2.7.2) + language_server-protocol (3.17.0.3) + parallel (1.26.2) + parser (3.3.4.2) ast (~> 2.4.1) - power_assert (2.0.1) + racc + power_assert (2.0.3) psych (5.1.2) stringio + racc (1.8.1) rainbow (3.1.1) - rake (13.0.6) - rdoc (6.4.1.1) + rake (13.2.1) + rdoc (6.7.0) psych (>= 4.0.0) - regexp_parser (2.5.0) - rexml (3.2.8) - strscan (>= 3.0.9) - rspec (3.11.0) - rspec-core (~> 3.11.0) - rspec-expectations (~> 3.11.0) - rspec-mocks (~> 3.11.0) - rspec-core (3.11.0) - rspec-support (~> 3.11.0) - rspec-expectations (3.11.0) + regexp_parser (2.9.2) + rexml (3.3.5) + strscan + rspec (3.13.0) + rspec-core (~> 3.13.0) + rspec-expectations (~> 3.13.0) + rspec-mocks (~> 3.13.0) + rspec-core (3.13.0) + rspec-support (~> 3.13.0) + rspec-expectations (3.13.1) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.11.0) - rspec-mocks (3.11.1) + rspec-support (~> 3.13.0) + rspec-mocks (3.13.1) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.11.0) - rspec-support (3.11.0) + rspec-support (~> 3.13.0) + rspec-support (3.13.1) rtags (0.97) rtagstask (0.0.4) rtags (> 0.0.0) - rubocop (1.30.1) + rubocop (1.65.1) + json (~> 2.3) + language_server-protocol (>= 3.17.0) parallel (~> 1.10) - parser (>= 3.1.0.0) + parser (>= 3.3.0.2) rainbow (>= 2.2.2, < 4.0) - regexp_parser (>= 1.8, < 3.0) + regexp_parser (>= 2.4, < 3.0) rexml (>= 3.2.5, < 4.0) - rubocop-ast (>= 1.18.0, < 2.0) + rubocop-ast (>= 1.31.1, < 2.0) ruby-progressbar (~> 1.7) - unicode-display_width (>= 1.4.0, < 3.0) - rubocop-ast (1.18.0) - parser (>= 3.1.1.0) + unicode-display_width (>= 2.4.0, < 3.0) + rubocop-ast (1.32.0) + parser (>= 3.3.1.0) rubocop-rake (0.6.0) rubocop (~> 1.0) - rubocop-rspec (2.11.1) - rubocop (~> 1.19) - ruby-progressbar (1.11.0) - simplecov (0.21.2) + rubocop-rspec (3.0.4) + rubocop (~> 1.61) + ruby-progressbar (1.13.0) + simplecov (0.22.0) docile (~> 1.1) simplecov-html (~> 0.11) simplecov_json_formatter (~> 0.1) simplecov-html (0.12.3) simplecov-lcov (0.8.0) simplecov_json_formatter (0.1.4) - stringio (3.0.6) + stringio (3.1.1) strscan (3.1.0) - test-unit (3.5.3) + test-unit (3.6.2) power_assert - unicode-display_width (2.1.0) + unicode-display_width (2.5.0) yard (0.9.36) PLATFORMS @@ -75,17 +80,17 @@ PLATFORMS DEPENDENCIES bundler (~> 2.3) - rake (~> 13.0) - rdoc (~> 6.0) + rake (~> 13.2) + rdoc (~> 6.7) rspec (~> 3.0, > 3.10) rtagstask (~> 0.0.4) - rubocop (~> 1.0) - rubocop-rake (~> 0.0) - rubocop-rspec (~> 2.0) + rubocop (~> 1.65) + rubocop-rake (~> 0.6) + rubocop-rspec (~> 3.0) rubytree! - simplecov (~> 0.21) + simplecov (~> 0.22) simplecov-lcov (~> 0.8) - test-unit (~> 3.0) + test-unit (~> 3.6) yard (~> 0.0, >= 0.9.36) BUNDLED WITH diff --git a/History.md b/History.md index c2b325f..60d42d8 100644 --- a/History.md +++ b/History.md @@ -1,5 +1,12 @@ # History of Changes +### 2.1.0 / 2024-08-12 + +* Minimum Ruby version has been bumped to 2.7. This is needed to use the + upstream gems, many of which no longer support 2.6. + +* Updated all dependencies to their latest stable versions. + ### 2.0.0 / 2022-06-21 * A major release with significant modernization to the code base and removal of diff --git a/README.md b/README.md index 75c3241..04ea00c 100644 --- a/README.md +++ b/README.md @@ -118,7 +118,7 @@ This example can also be found at ## REQUIREMENTS: ## -* [Ruby][] 2.6.x and above. +* [Ruby][] 2.7.x and above. * Run-time Dependencies: diff --git a/lib/tree/version.rb b/lib/tree/version.rb index 802d8fb..a2da0f6 100644 --- a/lib/tree/version.rb +++ b/lib/tree/version.rb @@ -4,7 +4,7 @@ # # Author:: Anupam Sengupta (anupamsg@gmail.com) # -# Copyright (c) 2012-2023 Anupam Sengupta. All rights reserved. +# Copyright (c) 2012-2024 Anupam Sengupta. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: @@ -35,5 +35,5 @@ module Tree # Rubytree Package Version - VERSION = '2.0.3' + VERSION = '2.1.0' end diff --git a/rubytree.gemspec b/rubytree.gemspec index 46c6e1a..6fc4e2a 100644 --- a/rubytree.gemspec +++ b/rubytree.gemspec @@ -3,7 +3,7 @@ # # Author:: Anupam Sengupta (anupamsg@gmail.com) # -# Copyright (c) 2012-2023 Anupam Sengupta. All rights reserved. +# Copyright (c) 2012-2024 Anupam Sengupta. All rights reserved. # # frozen_string_literal: true @@ -19,7 +19,7 @@ Gem::Specification.new do |s| s.email = 'anupamsg@gmail.com' s.homepage = 'http://rubytree.anupamsg.me' - s.required_ruby_version = '>=2.6' + s.required_ruby_version = '>=2.7' s.summary = 'A generic tree data structure for Ruby.' @@ -67,16 +67,16 @@ Gem::Specification.new do |s| # NOTE: Rake is added as a development and test dependency in the Gemfile. s.add_development_dependency 'bundler', '~> 2.3' - s.add_development_dependency 'rake', '~> 13.0' - s.add_development_dependency 'rdoc', '~> 6.0' + s.add_development_dependency 'rake', '~> 13.2' + s.add_development_dependency 'rdoc', '~> 6.7' s.add_development_dependency 'rspec', '~> 3.0', '> 3.10' s.add_development_dependency 'rtagstask', '~> 0.0.4' - s.add_development_dependency 'rubocop', '~> 1.0' - s.add_development_dependency 'rubocop-rake', '~> 0.0' - s.add_development_dependency 'rubocop-rspec', '~> 2.0' - s.add_development_dependency 'simplecov', '~> 0.21' + s.add_development_dependency 'rubocop', '~> 1.65' + s.add_development_dependency 'rubocop-rake', '~> 0.6' + s.add_development_dependency 'rubocop-rspec', '~> 3.0' + s.add_development_dependency 'simplecov', '~> 0.22' s.add_development_dependency 'simplecov-lcov', '~> 0.8' - s.add_development_dependency 'test-unit', '~> 3.0' + s.add_development_dependency 'test-unit', '~> 3.6' s.add_development_dependency 'yard', '~> 0.0', '>= 0.9.36' s.post_install_message = <<-END_MESSAGE