Skip to content

chore(deps): update dependency rqrcode to v3#2557

Merged
jacopen merged 1 commit intomainfrom
renovate/rqrcode-3.x
Aug 1, 2025
Merged

chore(deps): update dependency rqrcode to v3#2557
jacopen merged 1 commit intomainfrom
renovate/rqrcode-3.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jun 22, 2025

✅ マイナーチェンジ以上のアップデートは動作確認をしてからマージすること

This PR contains the following updates:

Package Change Age Confidence
rqrcode (changelog) "~> 2.0" -> "~> 3.0" age confidence

Release Notes

whomwah/rqrcode (rqrcode)

v3.1.0

Compare Source

  • Added support for offset_x and offset_y options in the as_svg method for independent x and y padding around QR codes [#​153]

v3.0.0

Compare Source

  • Drop support for Ruby <3.0 in order to keep up with dev dependencies.
  • Breaking Change: The rqrcode_core gem has been updated to version 2.0.0, which includes breaking changes. Please refer to the rqrcode_core changelog

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the dependencies Pull requests that update a dependency file label Jun 22, 2025
@renovate renovate bot requested a review from a team June 22, 2025 13:59
@renovate renovate bot force-pushed the renovate/rqrcode-3.x branch from 9d53455 to 0e3bbee Compare July 20, 2025 12:43
@github-actions
Copy link

Simplecov Report

Covered Threshold
64.47% 60%

@jacopen
Copy link
Collaborator

jacopen commented Aug 1, 2025

@claude Breaking Changesがないかどうか中心にレビューして

@claude
Copy link

claude bot commented Aug 1, 2025

Claude finished @jacopen's task —— View job


コードレビュー: rqrcode v2 → v3 アップデート

Todo List:

  • 変更されたファイルを確認
  • rqrcodeの使用箇所を検索
  • Rubyバージョンの互換性を確認
  • Breaking Changesの影響を分析
  • レビュー結果をまとめる

レビュー結果

🔍 Breaking Changes の確認

  1. Ruby バージョン要件

    • rqrcode v3.0.0 は Ruby 3.0 以上が必要
    • 現在のプロジェクトは Ruby 3.3.6 を使用しているため、問題なし
  2. rqrcode_core v2.0.0 へのアップデート

    • リリースノートには「breaking changes」が含まれると記載されているが、具体的な変更内容は不明

📍 使用箇所の確認

プロジェクト内で rqrcode は以下の 3 箇所で使用されています:

  1. app/models/profile.rb:150

    RQRCode::QRCode.new([{ data: JSON.dump({ profile_id: id }), mode: :byte_8bit }]).as_png.to_s
  2. app/models/print_node.rb:31

    RQRCode::QRCode.new([{ data: url, mode: :byte_8bit }]).as_png(size: 300).to_s
  3. app/models/qr_code_for_stamp_rally.rb:24

    RQRCode::QRCode.new([{ data: url, mode: :byte_8bit }]).as_png(size: 300).to_s

すべての使用箇所で同じパターン(配列にハッシュを渡してQRコードを生成)を使用しています。

⚠️ 推奨事項

  1. 動作確認が必要

    • rqrcode_core の具体的な breaking changes が不明なため、QRコード生成機能の動作確認を推奨
    • 特に上記 3 つのモデルでのQRコード生成が正常に動作するか確認
  2. テストの実行

    • bundle exec rspec でテストスイートを実行し、QRコード関連のテストが通ることを確認
  3. 新機能の確認

    • v3.1.0 で追加された offset_xoffset_y オプションは既存コードに影響しない(後方互換性あり)

🎯 結論

Ruby バージョンの要件は満たしており、使用されているAPIは基本的なものですが、rqrcode_core の breaking changes の詳細が不明なため、マージ前に動作確認を行うことを強く推奨します

@jacopen jacopen merged commit 75412cf into main Aug 1, 2025
6 checks passed
@jacopen jacopen deleted the renovate/rqrcode-3.x branch August 1, 2025 02:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant