Gemのバージョン指定方法
Gemfileでは、インストールするGemに対してバージョン指定方法ができます。
指定方法 | 意味 |
---|---|
1.2.3 | 1.2.3 |
>= 1.2.3 | 1.2.3以上 |
>= 1.2.3, < 1.2.5 | 1.2.3以上1.2.5未満 |
~> 1.2.3 | 1.2.3以上1.3.0未満 |
バージョニング表記(補足)
表記 | 意味 |
---|---|
x.0.0 | メジャーバージョン。後方互換性※のない変更を含む修正。 |
0.x.0 | マイナーバージョン。後方互換性を持ったAPIの変更など。新機能、新APIの実装等。 |
0.0.x | パッチバージョン。API変更のない実装レベルの修正。バグフィックス等。 |
※後方互換性:新しいバージョンが古いバージョンの機能を内包していること。
参考にした記事
https://autovice.jp/articles/118