Skip to content

Commit

Permalink
Rubygems -> RubyGems
Browse files Browse the repository at this point in the history
- archlinux -> Arch Linux

Signed-off-by: Arthit Suriyawongkul <[email protected]>
  • Loading branch information
bact committed Nov 8, 2024
1 parent b79f11d commit 6cafcec
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions VERSION-RANGE-SPEC.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ conventions in use:
- ``semver`` https://semver.org/ is a popular specification to structure version
strings, but does not provide a way to express version ranges.

- Rubygems strongly suggest using ``semver`` for version but does not enforce it.
- RubyGems strongly suggest using ``semver`` for version but does not enforce it.
As a result some gem use semver while several popular package do not use
strict semver. Rubygems use their own notation for version ranges which
strict semver. RubyGems use their own notation for version ranges which
looks like the ``node-semver`` notation with some subtle differences.
See https://guides.rubygems.org/patterns/#semantic-versioning

Expand Down Expand Up @@ -142,7 +142,7 @@ related topic:
- For instance, ``semver`` is a prominent specification in this domain but this
is just one of the many ways to structure a version string.

- Debian, RPM, PyPI, Rubygems, and Composer have their own subtly different
- Debian, RPM, PyPI, RubyGems, and Composer have their own subtly different
approach on how to determine how two versions are compared as equal, greater
or lesser.

Expand Down Expand Up @@ -260,7 +260,7 @@ Note how the constraints are sorted:
- ``vers:tomee/>=7.1.0|<=7.1.2``
- ``vers:tomee/>=8.0.0-M1|<=8.0.1``

Conversing Rubygems custom syntax for dependency on gem. Note how the
Conversing RubyGems custom syntax for dependency on gem. Note how the
pessimistic version constraint is expanded:

- ``'library', '~> 2.2.0', '!= 2.2.1'``
Expand Down Expand Up @@ -603,9 +603,9 @@ These are a few known versioning schemes for some common Package URL
Debian uses these comparators: <<, <=, =, >= and >>.

- **rpm**: RPM distros https://rpm-software-management.github.io/rpm/manual/dependencies.html
The a simplified rmpvercmp version comparison routine is used by archlinux Pacman.
The a simplified rmpvercmp version comparison routine is used by Arch Linux Pacman.

- **gem**: Rubygems https://guides.rubygems.org/patterns/#semantic-versioning
- **gem**: RubyGems https://guides.rubygems.org/patterns/#semantic-versioning
which is similar to ``node-semver`` for its syntax, but does not use semver
versions.

Expand Down Expand Up @@ -692,7 +692,7 @@ Why not reuse existing version range notations?

Most existing version range notations are tied to a specific version string
syntax and are therefore not readily applicable to other contexts. For example,
the use of elements such as tilde and caret ranges in Rubygems, npm or Dart
the use of elements such as tilde and caret ranges in RubyGems, npm or Dart
notations implies that a certain structure exists in the version string (semver
or semver- like). The inclusion of these additional comparators is a result of
the history and evolution in a given package ecosystem to address specific needs.
Expand Down Expand Up @@ -900,14 +900,14 @@ aspects specific to the versions used only in the Python ecosystem.
difficult to express without an "OR" logic.


Why not use Rubygems requirements notation?
Why not use RubyGems requirements notation?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

See:

- https://guides.rubygems.org/patterns/#declaring-dependencies

The Rubygems specification suggests but does not enforce using semver. It uses
The RubyGems specification suggests but does not enforce using semver. It uses
operators similar to the ``node-semver`` spec with the different of the "~>"
aka. pessimistic operator vs. a plain "~" tilde used in node-semver. This
operator implies some semver-like versioning, yet gem version are not strictly
Expand Down

0 comments on commit 6cafcec

Please sign in to comment.