Skip to content

chore: 開発用 Ruby 4.0.7 と RuboCop 1.92 を追従 - #20

Draft
cursor[bot] wants to merge 2 commits into
mainfrom
cursor/bc-eef31c2f-8ae0-4808-a752-db5e3ce23b24-a835
Draft

cursor[bot] wants to merge 2 commits into
mainfrom
cursor/bc-eef31c2f-8ae0-4808-a752-db5e3ce23b24-a835

Conversation

@cursor

@cursor cursor Bot commented Oct 12, 2026

Copy link
Copy Markdown

公開 gem としての互換性を維持しつつ、開発環境の gem 制約と開発用 Ruby を現行の安定マイナー/パッチに追従させます。
更新前の main で bin/setup / bundle exec rubocop / bundle exec rspec を実行し、既存の検証失敗はありませんでした。Open PR もなく、重複はありません。

概要

  • rubocop の制約を、既にインストールされる現行の安定マイナー 1.92 に揃えます
  • 開発用 Ruby(.ruby-version と devcontainer イメージ)を CI 最新系列の安定パッチ 4.0.7 に追従させます
  • Gemfile.lock は .gitignore 対象のため追加していません

何をアップデートしたか

対象 変更
rubocop ~> 1.90 → ~> 1.92(解決 1.92.0)
開発用 Ruby 4.0.6 → 4.0.7(.ruby-version / ghcr.io/rails/devcontainer/images/ruby:4.0.7)

CI のテストマトリクスは 4.0 のままです。ruby/setup-ruby が系列の最新パッチを使うため、ワークフローの変更は不要です。lint ジョブは .ruby-version を使います。

Breaking Changes / Migration

  • Ruby 4.0.7: 4.0.6 からの定例バグフィックスです。ソース・テスト・設定の変更は不要でした
  • rubocop 1.90 → 1.92: 1.x 内の制約底上げ。1.91 / 1.92 の changelog に、このリポジトリの設定(NewCops: enable、TargetRubyVersion: 2.6)を壊す Breaking Change はありません。新規 cop や Lint/UselessAssignment の拡張も、設定緩和なしでオフェンス 0 でした。実行時 Ruby 要件は >= 2.7。CI の 3.4 / 4.0 と両立
  • ソース・テスト・.rubocop.yml の変更はありません

見送り

  • microcms.gemspec の add_dependency(ostruct): 公開パッケージ互換のため対象外
  • required_ruby_version / TargetRubyVersion / CI マトリクスからのバージョン削除: サポート下限を変えない
  • パッケージ VERSION / GitHub Actions: 対象外
  • Gemfile.lock の新規追加: .gitignore 済みのため追加しない
  • rake: ~> 13.4 のまま(解決 13.4.2 が latest)
  • rspec: ~> 3.13 のまま(解決 3.13.2 が latest stable)。RSpec 4.0.0.beta1 は実験的リリースで、Ruby < 3.0 のサポート終了を含む大規模な Breaking Changes がある
  • Ruby 4.1: 未リリース。CI に新しいメジャーは追加しない

検証

Ruby 4.0.7(CI 最新系列)と Ruby 3.4.11(CI 下限系列の安定パッチ)の両方で実行し、すべて成功しました。

  • bin/setup(bundle install)
  • bundle exec rubocop(9 files, no offenses)
  • bundle exec rspec(9 examples, 0 failures)
Open in Web View Automation 

Keep .ruby-version and the devcontainer image on the latest stable
patch of the CI 4.0 series. required_ruby_version is unchanged.
Raise the development gem floor to the current stable minor. rake and
rspec already track their latest stable lines. Gemfile.lock remains gitignored.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant