Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(527)

Issue 2035983002: Make VersionRange implement Comparable. (Closed)

Created:
4 years, 6 months ago by nweiz
Modified:
4 years, 6 months ago
Reviewers:
Bob Nystrom
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/pub_semver@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Make VersionRange implement Comparable. This changes the ordering of ranges in a VersionUnion. It used to order solely by the upper bound; it now orders by lower bound, then upper bound. In addition to being a more intuitive ordering, this is easier to programatically work with, because iterating through the ranges reaches each one in the order of the versions it contains. R=rnystrom@google.com Committed: https://github.com/dart-lang/pub_semver/commit/ad0bed1e55290937e8e67c1ee2ab99101f1718f4

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -29 lines) Patch
M CHANGELOG.md View 1 chunk +3 lines, -0 lines 0 comments Download
M lib/src/utils.dart View 1 chunk +9 lines, -4 lines 0 comments Download
M lib/src/version.dart View 2 chunks +21 lines, -17 lines 4 comments Download
M lib/src/version_constraint.dart View 1 chunk +1 line, -1 line 0 comments Download
M lib/src/version_range.dart View 3 chunks +21 lines, -1 line 0 comments Download
M lib/src/version_union.dart View 3 chunks +6 lines, -6 lines 0 comments Download
M test/version_range_test.dart View 1 chunk +57 lines, -0 lines 2 comments Download

Messages

Total messages: 6 (1 generated)
nweiz
4 years, 6 months ago (2016-06-02 21:55:18 UTC) #1
Bob Nystrom
https://codereview.chromium.org/2035983002/diff/1/lib/src/version.dart File lib/src/version.dart (right): https://codereview.chromium.org/2035983002/diff/1/lib/src/version.dart#newcode17 lib/src/version.dart:17: class Version implements VersionConstraint, VersionRange { Can this implement ...
4 years, 6 months ago (2016-06-03 16:18:03 UTC) #2
nweiz
https://codereview.chromium.org/2035983002/diff/1/lib/src/version.dart File lib/src/version.dart (right): https://codereview.chromium.org/2035983002/diff/1/lib/src/version.dart#newcode17 lib/src/version.dart:17: class Version implements VersionConstraint, VersionRange { On 2016/06/03 16:18:03, ...
4 years, 6 months ago (2016-06-06 22:27:46 UTC) #3
Bob Nystrom
lgtm
4 years, 6 months ago (2016-06-06 22:48:37 UTC) #4
nweiz
4 years, 6 months ago (2016-06-06 22:59:11 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
ad0bed1e55290937e8e67c1ee2ab99101f1718f4 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698