Rails 版本数字的含义是什么?
不同版本号的 Rails 版本之间的不兼容程度如何?这些数字的含义是什么?
例如,从版本 2.8.7 到 3.0.1,我们可能会出现严重的不兼容问题。
但是,版本 2.7.1 和 2.7.2 或 3.0.6 和 3.0.7 有多不兼容?
How incompatible are rails versions with different version numbers? What's the meaning of these numbers?
For instance, from version 2.8.7 to 3.0.1, we may expect to have major incompatibility issues.
However, how incompatible would be versions 2.7.1 and 2.7.2 or 3.0.6 and 3.0.7?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
一般来说,数字变化越大,核心变化也越大。
因此,2.8.7 到 3.0.1 将是一个重大变化,因为我们从 Rails 2 转到 Rails 3(实际上是一个非常大的变化)。
另一方面,2.7.1 到 2.7.2 将进行一些小修复。
而且正如DHH自己所说,只要伟大的想法到来,Rails总是愿意100%改变它的核心。所以,你可以想象,从 2 到 3 或从 3 到 4 最有可能敲响巨大变化的钟声。
Generally speaking, the bigger the change on the numbers, the bigger the changes in core.
So, 2.8.7 to 3.0.1 would be a major change because we go from Rails 2 to Rails 3(and is actually a very big change for real).
On the other hand, 2.7.1 to 2.7.2 would be some minor fixes.
And as DHH himself said, Rails is always willing to change its core 100% as long as great ideas arrive. So, you can imagine that going for 2 to 3 or from 3 to 4 most probably rings the bell of vast changes.
在 RubyGems 手册
另外。对此答案感兴趣的人可能也会对悲观版本约束感兴趣
In RubyGems Manual
Additionaly. Who's interested in this answer may also be interested in the Pessimistic Version Constraint