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

Bump to Rails 7.1.1 and Shakapacer 7.1.0 #1391

Merged
merged 5 commits into from
Oct 16, 2023

Conversation

Eric-Guo
Copy link
Contributor

@Eric-Guo Eric-Guo commented Oct 15, 2023

在天华的BBS上开始跑了,目测没啥Bug。

iShot_2023-10-16_11 03 16

@Eric-Guo Eric-Guo marked this pull request as draft October 15, 2023 06:28
# require "action_text/engine"
require "action_view/railtie"
require "action_cable/engine"
require "rails/test_unit/railtie"
Copy link
Member

@huacnlee huacnlee Oct 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里别改,以后麻烦,我每次升级 Rails 都会做一次 rails app:update 对每个默认文件进行 Diff,多一个差异,以后多一个工作。我一般都尽量保持默认文件与默认的一致,除非是不得不改。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个主要是我不把action_text注释掉,会CI报错,除非按照 9e522f2 这样改。

@@ -23,6 +23,7 @@
config.action_controller.perform_caching = true
config.action_controller.enable_fragment_cache_logging = true

config.cache_store = :memory_store
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里也是,不要改

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

删除了。

@@ -9,14 +9,13 @@
# Settings specified here will take precedence over those in config/application.rb.

# While tests run files are not watched, reloading is not necessary.
config.enable_reloading = true
config.enable_reloading = false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你这个是来自于 Rails 默认的配置吗?之前 Rails 7.1.0 有 CI 的错误,我改过一次,忘了

Copy link
Contributor Author

@Eric-Guo Eric-Guo Oct 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Eric-Guo Eric-Guo marked this pull request as ready for review October 16, 2023 03:02
@Eric-Guo Eric-Guo changed the title Bump to Rails 7.1.1 and Shakapacer 7.1.0 (WIP) Bump to Rails 7.1.1 and Shakapacer 7.1.0 Oct 16, 2023
@@ -73,5 +74,5 @@
config.active_job.queue_adapter = :inline

# Raise error when a before_action's only/except options reference missing actions
config.action_controller.raise_on_missing_callback_actions = true
config.action_controller.raise_on_missing_callback_actions = false
Copy link
Contributor Author

@Eric-Guo Eric-Guo Oct 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个不是默认的,默认是true(对于Rails 7.1),但是目前给true会导致CI报错,但是如果不加这行,默认是false

@huacnlee
Copy link
Member

huacnlee commented Oct 16, 2023 via email

@huacnlee
Copy link
Member

你看我最新的提交,你不需要改 Rails 的部分,目前已经是 Rails 7.1.1 测试也是对的。你只需改 Shakapacer 部分即可。

@huacnlee huacnlee merged commit 7e5671f into ruby-china:main Oct 16, 2023
3 checks passed
@Eric-Guo Eric-Guo deleted the rails_shakapacker_71 branch October 16, 2023 06:00
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