Rails - 如何确认插件的版本

发布于 2024-09-08 00:02:47 字数 174 浏览 1 评论 0原文

我注意到我正在使用的 Rails 插件已对其进行了一些修复,并且我有点担心我编写的所有其他 Rails 应用程序。

理想情况下,我希望有一个脚本可以将插件的签出版本与存储库版本进行比较。有谁知道 Rails 是否将此信息存储在任何地方,或者是否有补丁/Gem 可以将此功能添加到 Rails 中?

谢谢

I noticed that a rails plug-in I am using has had several fixes made to it, and im a little worried about all the other rails apps i have written.

Ideally I would like to have a script that can compare the checked out version of the plug-in against the repo version. Does anyone know if rails stores this info anywhere or if there is a patch/gem to add this capability to rails?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

埋情葬爱 2024-09-15 00:02:47

一般来说,插件的自述文件可以包含版本。然而,这就是插件和 gem 之间的区别。 Gems 往往有适当的版本,而对于插件则没有这样的标准。
另外,我不确定您是否想要始终升级到最新的插件,因为插件并不总是向后兼容,并且您面临着破坏应用程序的风险。

Generally the readme file of the plugin can contain the version . However this is the difference between a plugin and a gem . Gems tend to have proper versions , with plugin there is no such criteria .
Also , I am not sure if you want to be upgrading to the latest plugin always as plugins are not always backward compatible and you run the risk of breaking your app .

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文