From 65bb88a2186d8c14786971285399c354f1c5125f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 5 Aug 2024 11:10:49 +0000 Subject: [PATCH 1/3] Update psych requirement from ~> 3 to ~> 5 Updates the requirements on [psych](https://github.com/ruby/psych) to permit the latest version. - [Release notes](https://github.com/ruby/psych/releases) - [Commits](https://github.com/ruby/psych/compare/v3.0.0...v5.1.2) --- updated-dependencies: - dependency-name: psych dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- trino-client.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trino-client.gemspec b/trino-client.gemspec index 472720f9..894560d3 100644 --- a/trino-client.gemspec +++ b/trino-client.gemspec @@ -32,5 +32,5 @@ Gem::Specification.new do |gem| gem.add_development_dependency "addressable", "~> 2.9.0" gem.add_development_dependency "simplecov", "~> 0.22.0" gem.add_development_dependency "standard", "~> 1.54.0" - gem.add_development_dependency "psych", "~> 3" + gem.add_development_dependency "psych", "~> 5" end From 48cc658686b9a42e19d8d9ee309425bafab021b5 Mon Sep 17 00:00:00 2001 From: Yukihiro Okada Date: Wed, 27 May 2026 18:43:25 +0900 Subject: [PATCH 2/3] fix: expand YAML anchors/aliases in .standard_todo.yml for psych 5 compatibility psych 5 disables YAML alias parsing by default (Psych::AliasesNotEnabled). Standard loads this file with Psych.load_file without aliases: true, so any YAML anchor/alias in the file causes a crash. Expand the &modelgen_common anchor into explicit cop lists for each affected file. Co-Authored-By: Claude Sonnet 4.6 --- .standard_todo.yml | 56 ++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 52 insertions(+), 4 deletions(-) diff --git a/.standard_todo.yml b/.standard_todo.yml index 949d31c8..af98dc95 100644 --- a/.standard_todo.yml +++ b/.standard_todo.yml @@ -27,7 +27,58 @@ ignore: - Style/TernaryParentheses - Style/TrailingCommaInHashLiteral - - 'modelgen/model_versions.rb': &modelgen_common + - 'modelgen/model_versions.rb': + - Style/StringLiterals # TODO: Remove this later + - Layout/DotPosition # TODO: Remove this later + # NOTE: Selecting the below items + - Layout/ArrayAlignment + - Layout/EmptyLinesAroundExceptionHandlingKeywords + - Layout/FirstArrayElementIndentation + - Layout/FirstHashElementIndentation + - Lint/AssignmentInCondition + - Lint/Syntax + - Lint/UselessAssignment + - Performance/FlatMap + - Performance/RegexpMatch + - Style/InfiniteLoop + - Style/RedundantRegexpCharacterClass + - Style/RedundantRegexpEscape + - Style/StringLiteralsInInterpolation + - 'modelgen/modelgen.rb': + - Style/StringLiterals # TODO: Remove this later + - Layout/DotPosition # TODO: Remove this later + # NOTE: Selecting the below items + - Layout/ArrayAlignment + - Layout/EmptyLinesAroundExceptionHandlingKeywords + - Layout/FirstArrayElementIndentation + - Layout/FirstHashElementIndentation + - Lint/AssignmentInCondition + - Lint/Syntax + - Lint/UselessAssignment + - Performance/FlatMap + - Performance/RegexpMatch + - Style/InfiniteLoop + - Style/RedundantRegexpCharacterClass + - Style/RedundantRegexpEscape + - Style/StringLiteralsInInterpolation + - 'modelgen/models.rb': + - Style/StringLiterals # TODO: Remove this later + - Layout/DotPosition # TODO: Remove this later + # NOTE: Selecting the below items + - Layout/ArrayAlignment + - Layout/EmptyLinesAroundExceptionHandlingKeywords + - Layout/FirstArrayElementIndentation + - Layout/FirstHashElementIndentation + - Lint/AssignmentInCondition + - Lint/Syntax + - Lint/UselessAssignment + - Performance/FlatMap + - Performance/RegexpMatch + - Style/InfiniteLoop + - Style/RedundantRegexpCharacterClass + - Style/RedundantRegexpEscape + - Style/StringLiteralsInInterpolation + - 'modelgen/trino_models.rb': - Style/StringLiterals # TODO: Remove this later - Layout/DotPosition # TODO: Remove this later # NOTE: Selecting the below items @@ -44,9 +95,6 @@ ignore: - Style/RedundantRegexpCharacterClass - Style/RedundantRegexpEscape - Style/StringLiteralsInInterpolation - - 'modelgen/modelgen.rb': *modelgen_common - - 'modelgen/models.rb': *modelgen_common - - 'modelgen/trino_models.rb': *modelgen_common - 'spec/*.rb': - Style/StringLiterals # TODO: Remove this later - Layout/DotPosition # TODO: Remove this later From 1723aad503600642371ce7bdeb4c08824302ad75 Mon Sep 17 00:00:00 2001 From: Yukihiro Okada Date: Thu, 28 May 2026 10:33:46 +0900 Subject: [PATCH 3/3] fixup! fix: expand YAML anchors/aliases in .standard_todo.yml for psych 5 compatibility --- .standard_todo.yml | 53 +--------------------------------------------- 1 file changed, 1 insertion(+), 52 deletions(-) diff --git a/.standard_todo.yml b/.standard_todo.yml index af98dc95..4f9690c1 100644 --- a/.standard_todo.yml +++ b/.standard_todo.yml @@ -27,58 +27,7 @@ ignore: - Style/TernaryParentheses - Style/TrailingCommaInHashLiteral - - 'modelgen/model_versions.rb': - - Style/StringLiterals # TODO: Remove this later - - Layout/DotPosition # TODO: Remove this later - # NOTE: Selecting the below items - - Layout/ArrayAlignment - - Layout/EmptyLinesAroundExceptionHandlingKeywords - - Layout/FirstArrayElementIndentation - - Layout/FirstHashElementIndentation - - Lint/AssignmentInCondition - - Lint/Syntax - - Lint/UselessAssignment - - Performance/FlatMap - - Performance/RegexpMatch - - Style/InfiniteLoop - - Style/RedundantRegexpCharacterClass - - Style/RedundantRegexpEscape - - Style/StringLiteralsInInterpolation - - 'modelgen/modelgen.rb': - - Style/StringLiterals # TODO: Remove this later - - Layout/DotPosition # TODO: Remove this later - # NOTE: Selecting the below items - - Layout/ArrayAlignment - - Layout/EmptyLinesAroundExceptionHandlingKeywords - - Layout/FirstArrayElementIndentation - - Layout/FirstHashElementIndentation - - Lint/AssignmentInCondition - - Lint/Syntax - - Lint/UselessAssignment - - Performance/FlatMap - - Performance/RegexpMatch - - Style/InfiniteLoop - - Style/RedundantRegexpCharacterClass - - Style/RedundantRegexpEscape - - Style/StringLiteralsInInterpolation - - 'modelgen/models.rb': - - Style/StringLiterals # TODO: Remove this later - - Layout/DotPosition # TODO: Remove this later - # NOTE: Selecting the below items - - Layout/ArrayAlignment - - Layout/EmptyLinesAroundExceptionHandlingKeywords - - Layout/FirstArrayElementIndentation - - Layout/FirstHashElementIndentation - - Lint/AssignmentInCondition - - Lint/Syntax - - Lint/UselessAssignment - - Performance/FlatMap - - Performance/RegexpMatch - - Style/InfiniteLoop - - Style/RedundantRegexpCharacterClass - - Style/RedundantRegexpEscape - - Style/StringLiteralsInInterpolation - - 'modelgen/trino_models.rb': + - 'modelgen/*.rb': - Style/StringLiterals # TODO: Remove this later - Layout/DotPosition # TODO: Remove this later # NOTE: Selecting the below items