zakihayaメモ

RubyとRailsのことが中心

Gemfileの ~> の意味

Gemfileを見ていたら「gem "thin", "~>1.1" 」という指定が。
~>ってなんだろうと思い調べてみた。

mg ☂. » [bundler]Bunderを使ったGem管理のメモ

Most of the version specifiers, like >= 1.0, are self-explanatory. The specifier ~> has a special meaning, best shown by example. ~> 2.0.3 is identical to >= 2.0.3 and < 2.1. ~> 2.1 is identical to >= 2.1 and < 2.2. ~> 2.2.beta will match prerelease versions like 2.2.beta.12.

とのこと。

なるほど。