Avatar
omochimetaru 11/9/2017 7:28 AM
What does ~> mean in the context of Ruby gem depenedencies? For example, when opening a legacy project in the RubyMine IDE, I get this message Gems required for project are not attached: arel ...
7:28 AM
It means "equal to or greater than in the last digit", so e.g. ~> 2.3 means "equal to 2.3 or greater than 2.3, but less than 3.0", while ~> 2.3.0 would mean "equal to 2.3.0 or greater than 2.3.0, but less than 2.4.0".
You can pronounce it as "approximately greater than".