Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rails 7.2 #786

Merged
merged 59 commits into from
Jan 6, 2025
Merged

Rails 7.2 #786

merged 59 commits into from
Jan 6, 2025

Conversation

yonta
Copy link
Collaborator

@yonta yonta commented Nov 26, 2024

Copy link

github-actions bot commented Nov 26, 2024

📦 esbuild Bundle Analysis for sakazuki

This analysis was generated by esbuild-bundle-analyzer. 🤖
This PR introduced no changes to the esbuild bundle! 🙌

@yonta yonta force-pushed the feature/rails7.2/base branch 4 times, most recently from 3c25fb7 to 7080a83 Compare December 30, 2024 08:20
@yonta
Copy link
Collaborator Author

yonta commented Dec 30, 2024

mainにrebaseした

yonta and others added 23 commits January 6, 2025 17:06

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fixture_path -> fixture_paths
警告内容は以下のようなもの。

DEPRECATION WARNING: Defining enums with keyword arguments is deprecated and will be removed
in Rails 8.0. Positional arguments should be used instead
- rails app:updateコマンドを実行した
  - Rails設定のdiffを確認し、自分たちで設定した項目以外はデフォルトに追従した
- rails db:migrateを実行した
- rails app:update を実行
  - Rails設定のdiffを確認し、自分たちで設定した項目以外はデフォルトに追従した
  - rails generate コマンド実行後にRubocopフォーマットをかけるようにした
ファイルの変更があったときに検知して自動リロードする機能を提供していたgem。
Rails6時代はデフォルトで入っていた。
しかしRails7から、必須とは言えないためユーザが後から入れるものとしてデフォルトでなくなった。

SAKAZUKIでもERBファイルを編集したときには便利である。
しかしJS/TSなどの編集時には反応しないため、やはり手動リロードやbrowser syncが必要だった。

そのため、Railsデフォルトに従いSAKAZUKIからも削除することにする。
- bundle exec spring binstub --remove --all を実行
- Gemfileからspringを削除
- bundle install を実行
- rails app:updateを実行
  - Rails設定のdiffに従い、絵文字設定のコメントアウト文を追加した
デフォルトですべてをオンにし、必要ないCopsをオフにするスタイルとした。
momocus and others added 21 commits January 6, 2025 17:08
…-cookpad

新たなRubocopの設定にERBLintの設定を追従・修正した
mainにマージされたサイズ機能で警告が起きていた。
内容は容量の数値がハードコード文字列になっているというもの。
これは言語差がないため、erblintのマジックコメントでdisableにした。
@yonta yonta force-pushed the feature/rails7.2/base branch from 3fea695 to 78d3763 Compare January 6, 2025 08:14
@yonta yonta self-assigned this Jan 6, 2025
@yonta yonta marked this pull request as ready for review January 6, 2025 08:18
@yonta
Copy link
Collaborator Author

yonta commented Jan 6, 2025

mainにrebase

@github-actions github-actions bot requested a review from momocus January 6, 2025 08:18
@yonta yonta removed the request for review from momocus January 6, 2025 08:19
@yonta yonta merged commit 994f460 into main Jan 6, 2025
6 checks passed
@yonta yonta deleted the feature/rails7.2/base branch January 6, 2025 08:19
@yonta
Copy link
Collaborator Author

yonta commented Jan 7, 2025

close #763

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.

None yet

2 participants