Skip to content

Commit

Permalink
Documented ~> version specifier (crystal-lang#146)
Browse files Browse the repository at this point in the history
* Documented `~>` version specifier

Reused the explanation from http://bundler.io/v1.5/gemfile.html
  • Loading branch information
Martin Verzilli authored and ysbaddaden committed Jan 16, 2017
1 parent 3e7afcd commit a2743f1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions SPEC.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit a2743f1

Please sign in to comment.