From e29eae4fb0982168c0ca8134860a2baa097336b8 Mon Sep 17 00:00:00 2001 From: "Daniel (dB.) Doubrovkine" Date: Wed, 11 Nov 2026 06:04:39 -0500 Subject: [PATCH] Update danger-pr-comment and fix Minitest 6.1 compatibility Update danger-pr-comment to 0.2.0. Pass the hash conversion expectation as an explicit positional hash so Minitest 6.1 does not treat it as keyword arguments. Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- CHANGELOG.md | 2 ++ Gemfile | 2 +- test/hyperclient/resource_test.rb | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 75118bd..771b23e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ * Your contribution here. +* [#333](https://github.com/codegram/hyperclient/pull/333): Updated danger-pr-comment to 0.2.0 and fixed the hash conversion assertion for Minitest 6.1 - [@dblock](https://github.com/dblock). + ### 2.1.0 (2026/10/14) * [#328](https://github.com/codegram/hyperclient/pull/328): Replaced the retired Splines demo with a local read-only Oxford HAL example using archived place facts - [@dblock](https://github.com/dblock). diff --git a/Gemfile b/Gemfile index e7b4449..3f76471 100644 --- a/Gemfile +++ b/Gemfile @@ -36,7 +36,7 @@ if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3.1') group :danger do gem 'danger', '~> 9.5' gem 'danger-changelog', '~> 0.10.0' - gem 'danger-pr-comment', '~> 0.1.0' + gem 'danger-pr-comment', '~> 0.2.0' gem 'danger-toc', '~> 0.3.0' end end diff --git a/test/hyperclient/resource_test.rb b/test/hyperclient/resource_test.rb index 228d98f..e39706b 100644 --- a/test/hyperclient/resource_test.rb +++ b/test/hyperclient/resource_test.rb @@ -246,7 +246,7 @@ module Hyperclient end it 'returns the attributes as a Hash from #to_hash' do - _(resource.to_hash).must_equal('title' => 'Order', 'total' => 42) + _(resource.to_hash).must_equal({ 'title' => 'Order', 'total' => 42 }) end it 'returns the same result from #to_h as #to_hash' do