Repository navigation
chore: 開発用 Ruby 4.0.9 と RuboCop 1.92 を追従 - #22
Merged
Merged
Conversation
Keep the development Ruby patch and the RuboCop minor floor on the current stable line used by CI.
Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
公開 gem としての互換性を維持しつつ、開発環境の gem 制約と開発用 Ruby を現行の安定版に追従させます。
更新前の
mainでbin/setup/bundle exec rubocop/bundle exec rspecを実行し、既存の検証失敗はありませんでした。同じ問題を扱う Open な Pull Request もないため、事前修正用の Pull Request は作っていません。概要
.ruby-versionと devcontainer イメージ)を、CI 最新系列の安定パッチ 4.0.9 に追従させますrubocopの制約を、既に解決されている安定マイナー 1.92 に揃えますGemfile.lockは.gitignore対象のため追加していません何をアップデートしたか
.ruby-version/ghcr.io/rails/devcontainer/images/ruby:4.0.9)~> 1.90→~> 1.92(解決 1.92.2)CI のテストマトリクスは
3.4と4.0のままです。ruby/setup-rubyが系列の最新パッチを使うため、ワークフローの変更は不要です。lint ジョブは.ruby-versionを使います。Breaking Changes / Migration
~> 1.90でも 1.92.2 は解決されますが、検証済みのマイナーを下限に揃えます。1.91 / 1.92 の changelog に、このリポジトリの設定(NewCops: enable、TargetRubyVersion: 2.6)を壊す Breaking Change はありません。新規 cop やLint/CopDirectiveSyntaxのデフォルト有効化も、設定緩和なしでオフェンス 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済みのため追加しない~> 13.4のまま(解決 13.4.2 が latest)~> 3.13のまま(解決 3.13.2 が latest stable)。RSpec 4.0.0.beta1 は実験的リリースで、Ruby < 3.0 のサポート終了とグローバル DSL の削除を含む大規模な Breaking Changes がある検証
更新前の
mainを Ruby 4.0.6 と Ruby 4.0.9 で実行し、すべて成功しました。変更後は Ruby 4.0.9(CI 最新系列)と Ruby 3.4.12(CI 下限系列の安定パッチ)の両方で実行し、すべて成功しました。
bin/setup(bundle install)bundle exec rubocop(9 files, no offenses)bundle exec rspec(9 examples, 0 failures)