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

Issue 1127783002: Add more set-like version constraint operations. (Closed)

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

Description

Add more set-like version constraint operations. This adds support for union(), as well as checking if constraints are supersets of or disjoint with one another. These are necessary for some version solver work I'm doing in pub. R=rnystrom@google.com Committed: https://github.com/dart-lang/pub_semver/commit/70bb15f1004b40fff934286c829cc5b54aa04e86

Patch Set 1 #

Patch Set 2 : merge #

Total comments: 36

Patch Set 3 : Code review changes #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1046 lines, -13 lines) Patch
M CHANGELOG.md View 1 chunk +12 lines, -0 lines 0 comments Download
A lib/src/utils.dart View 1 2 1 chunk +26 lines, -0 lines 0 comments Download
M lib/src/version.dart View 1 2 5 chunks +29 lines, -12 lines 0 comments Download
M lib/src/version_constraint.dart View 4 chunks +24 lines, -0 lines 0 comments Download
M lib/src/version_range.dart View 1 2 3 chunks +134 lines, -0 lines 1 comment Download
A lib/src/version_union.dart View 1 2 1 chunk +182 lines, -0 lines 0 comments Download
M pubspec.yaml View 1 1 chunk +1 line, -1 line 0 comments Download
M test/version_range_test.dart View 1 2 2 chunks +236 lines, -0 lines 0 comments Download
M test/version_test.dart View 1 2 chunks +50 lines, -0 lines 0 comments Download
A test/version_union_test.dart View 1 2 1 chunk +352 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
nweiz
5 years, 7 months ago (2015-05-05 19:01:23 UTC) #2
Bob Nystrom
https://codereview.chromium.org/1127783002/diff/20001/lib/src/utils.dart File lib/src/utils.dart (right): https://codereview.chromium.org/1127783002/diff/20001/lib/src/utils.dart#newcode39 lib/src/utils.dart:39: Instead of these functions, how about just making Version ...
5 years, 7 months ago (2015-05-05 20:49:09 UTC) #3
nweiz
Code review changes
5 years, 7 months ago (2015-05-05 22:52:27 UTC) #4
nweiz
https://codereview.chromium.org/1127783002/diff/20001/lib/src/utils.dart File lib/src/utils.dart (right): https://codereview.chromium.org/1127783002/diff/20001/lib/src/utils.dart#newcode39 lib/src/utils.dart:39: On 2015/05/05 20:49:09, Bob Nystrom wrote: > Instead of ...
5 years, 7 months ago (2015-05-05 22:52:34 UTC) #5
Bob Nystrom
Don't forget to tag and publish! LGTM! https://codereview.chromium.org/1127783002/diff/20001/lib/src/version_union.dart File lib/src/version_union.dart (right): https://codereview.chromium.org/1127783002/diff/20001/lib/src/version_union.dart#newcode167 lib/src/version_union.dart:167: List<VersionConstraint> _constraintsFor(VersionConstraint ...
5 years, 7 months ago (2015-05-06 17:30:58 UTC) #6
nweiz
https://codereview.chromium.org/1127783002/diff/20001/lib/src/version_union.dart File lib/src/version_union.dart (right): https://codereview.chromium.org/1127783002/diff/20001/lib/src/version_union.dart#newcode167 lib/src/version_union.dart:167: List<VersionConstraint> _constraintsFor(VersionConstraint constraint) { On 2015/05/06 17:30:58, Bob Nystrom ...
5 years, 7 months ago (2015-05-06 18:18:58 UTC) #7
nweiz
5 years, 7 months ago (2015-05-06 18:19:15 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
70bb15f1004b40fff934286c829cc5b54aa04e86 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698