Skip to content

Commit

Permalink
Gemwork update v0.7.1: New minimum Ruby target: v3.1+
Browse files Browse the repository at this point in the history
Update gems and fix new Rubocop offenses after updating the Ruby Target
to 3.1.

Per https://endoflife.date/ruby
- Ruby 3.0 is unsupported since 4/23/24
- Ruby 2.7 is unsupported since 3/31/23
  • Loading branch information
pdobb committed Nov 21, 2024
1 parent 3616737 commit 22fce38
Show file tree
Hide file tree
Showing 9 changed files with 52 additions and 48 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ["2.7", "3.0", "3.1", "3.2", "3.3"]
ruby-version: ["3.1", "3.2", "3.3"]

steps:
- name: Checkout code
Expand Down
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ inherit_gem:
gemwork: lib/rubocop/.rubocop-gems.yml

AllCops:
TargetRubyVersion: 2.7
TargetRubyVersion: 3.1

Performance/OpenStruct:
Enabled: false # Reconsider later.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## [Unreleased]
- Update minimum Ruby version from 2.7 -> 3.1

### 0.6.3 - 2023-11-21
- Internal updates to style, etc. No outward-facing changes.

Expand Down
82 changes: 42 additions & 40 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,28 @@ GEM
specs:
ansi (1.5.0)
ast (2.4.2)
benchmark-ips (2.13.0)
bigdecimal (3.1.7)
builder (3.2.4)
concurrent-ruby (1.2.3)
debug (1.9.1)
benchmark-ips (2.14.0)
bigdecimal (3.1.8)
builder (3.3.0)
concurrent-ruby (1.3.4)
debug (1.9.2)
irb (~> 1.10)
reline (>= 0.3.8)
docile (1.4.0)
dry-configurable (1.1.0)
docile (1.4.1)
dry-configurable (1.2.0)
dry-core (~> 1.0, < 2)
zeitwerk (~> 2.6)
dry-core (1.0.1)
dry-core (1.0.2)
concurrent-ruby (~> 1.0)
logger
zeitwerk (~> 2.6)
dry-inflector (1.0.0)
dry-inflector (1.1.0)
dry-initializer (3.1.1)
dry-logic (1.5.0)
concurrent-ruby (~> 1.0)
dry-core (~> 1.0, < 2)
zeitwerk (~> 2.6)
dry-schema (1.13.3)
dry-schema (1.13.4)
concurrent-ruby (~> 1.0)
dry-configurable (~> 1.0, >= 1.0.1)
dry-core (~> 1.0, < 2)
Expand All @@ -43,7 +44,7 @@ GEM
dry-inflector (~> 1.0)
dry-logic (~> 1.4)
zeitwerk (~> 2.6)
gemwork (0.5.0)
gemwork (0.7.1)
debug
irb
minitest
Expand All @@ -57,74 +58,75 @@ GEM
simplecov
yard
io-console (0.7.2)
irb (1.12.0)
rdoc
irb (1.14.1)
rdoc (>= 4.0.0)
reline (>= 0.4.2)
json (2.7.1)
json (2.8.2)
language_server-protocol (3.17.0.3)
minitest (5.22.3)
minitest-reporters (1.6.1)
logger (1.6.1)
minitest (5.25.2)
minitest-reporters (1.7.1)
ansi
builder
minitest (>= 5.0)
ruby-progressbar
much-stub (0.1.10)
object_identifier (0.7.0)
parallel (1.24.0)
parser (3.3.0.5)
parallel (1.26.3)
parser (3.3.6.0)
ast (~> 2.4.1)
racc
psych (5.1.2)
psych (5.2.0)
stringio
racc (1.7.3)
racc (1.8.1)
rainbow (3.1.1)
rake (13.1.0)
rdoc (6.6.3.1)
rake (13.2.1)
rdoc (6.8.1)
psych (>= 4.0.0)
reek (6.3.0)
dry-schema (~> 1.13.0)
parser (~> 3.3.0)
rainbow (>= 2.0, < 4.0)
rexml (~> 3.1)
regexp_parser (2.9.0)
reline (0.4.3)
regexp_parser (2.9.2)
reline (0.5.11)
io-console (~> 0.5)
rexml (3.2.6)
rubocop (1.62.1)
rexml (3.3.9)
rubocop (1.68.0)
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.31.2)
parser (>= 3.3.0.4)
rubocop-minitest (0.35.0)
rubocop-ast (1.36.1)
parser (>= 3.3.1.0)
rubocop-minitest (0.36.0)
rubocop (>= 1.61, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
rubocop-performance (1.20.2)
rubocop-performance (1.23.0)
rubocop (>= 1.48.1, < 2.0)
rubocop-ast (>= 1.30.0, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
rubocop-rake (0.6.0)
rubocop (~> 1.0)
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-html (0.13.1)
simplecov_json_formatter (0.1.4)
stringio (3.1.0)
unicode-display_width (2.5.0)
yard (0.9.36)
zeitwerk (2.6.13)
stringio (3.1.2)
unicode-display_width (2.6.0)
yard (0.9.37)
zeitwerk (2.7.1)

PLATFORMS
arm64-darwin-23
arm64-darwin-24
x86_64-linux

DEPENDENCIES
Expand All @@ -135,4 +137,4 @@ DEPENDENCIES
rake

BUNDLED WITH
2.5.6
2.5.23
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ Or install it yourself:
## Compatibility

Tested MRI Ruby Versions:
* 2.7
* 3.0
* 3.1
* 3.2
* 3.3
Expand Down
4 changes: 2 additions & 2 deletions lib/object_inspector/scope.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ def to_a

private

def method_missing(method_name, *args, &block)
def method_missing(method_name, *args, &)
if method_name[-1] == "?"
scope_name = method_name[0..-2]
evaluate_match(scope_name, &block)
evaluate_match(scope_name, &)
else
super
end
Expand Down
2 changes: 1 addition & 1 deletion object_inspector.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
spec.description = "Object Inspector takes Object#inspect to the next level. Specify any combination of identification attributes, flags, issues, info, and/or a name along with an optional, self-definable scope option to represents objects. Great for the console, logging, etc."
spec.homepage = "https://github.com/pdobb/object_inspector"
spec.license = "MIT"
spec.required_ruby_version = ">= 2.7"
spec.required_ruby_version = ">= 3.1"

spec.metadata = {
"bug_tracker_uri" => "https://github.com/pdobb/object_inspector/issues",
Expand Down
2 changes: 1 addition & 1 deletion rakelib/bump.rake
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ end
# -- which specifies the Ruby releases that will be listed on
# https://www.ruby-lang.org/en/downloads/
module RubyVersions
MINOR_VERSION_REGEX = /\d+\.\d+/.freeze
MINOR_VERSION_REGEX = /\d+\.\d+/
RUBY_VERSIONS_YAML_PATH =
"https://raw.githubusercontent.com/ruby/www.ruby-lang.org/HEAD/_data/downloads.yml"
VERSION_TYPES = %i[
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# frozen_string_literal: true

require "test_helper"
require "ostruct"

class ObjectInspector::TemplatingFormatterTest < Minitest::Spec
class SimpleTestObject
Expand Down

0 comments on commit 22fce38

Please sign in to comment.