我在gemspecs中看到了很多这样的东西:
s.add_dependency 'some_gem', '~> 1.5.0'
Run Code Online (Sandbox Code Playgroud)
什么〜>是什么意思?
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
< 3.0. ~> 2.2.beta will match prerelease versions like 2.2.beta.12.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2586 次 |
| 最近记录: |