Gem dependency version can be specified with prefixes =
, <
, >
, <=
, >=
and ~>
. I understand all except last one, what does ~>
mean?
The ~>
operator means: match within the same version, depending on how specific you want it to be, here's some examples:
Specification From ... To (exclusive)
">= 3.0" 3.0 ... ∞
"~> 3.0" 3.0 ... 4.0
"~> 3.0.0" 3.0.0 ... 3.1
"~> 3.5" 3.5 ... 4.0
"~> 3.5.0" 3.5.0 ... 3.6
Source
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With