From a2743f16f194219017d7d77dab2e600890938912 Mon Sep 17 00:00:00 2001 From: Martin Verzilli Date: Mon, 16 Jan 2017 06:50:44 -0300 Subject: [PATCH] Documented `~>` version specifier (#146) * Documented `~>` version specifier Reused the explanation from http://bundler.io/v1.5/gemfile.html --- SPEC.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SPEC.md b/SPEC.md index 699ab2b7..247fed8c 100644 --- a/SPEC.md +++ b/SPEC.md @@ -146,6 +146,11 @@ A version requirement (String). Examples: `1.2.3`, `>= 1.0.0` or `~> 2.0`. +Most of the version operators, like `>= 1.0.0`, are self-explanatory, but +the `~>` operator 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`. + #### path A local path (String).