OLD | NEW |
---|---|
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 import 'package:pub_semver/pub_semver.dart'; | |
6 | 5 |
7 import 'descriptor.dart' as d; | 6 import 'descriptor.dart' as d; |
8 import 'test_pub.dart'; | 7 import 'test_pub.dart'; |
9 import '../lib/src/barback.dart' as barback; | 8 import 'package:pub_semver/pub_semver.dart'; |
9 import 'package:pub/src/barback.dart' as barback; | |
Bob Nystrom
2015/05/22 00:05:17
Move these above the relative ones.
nweiz
2015/05/22 00:14:24
Done.
| |
10 | 10 |
11 main() { | 11 main() { |
12 initConfig(); | 12 initConfig(); |
13 | 13 |
14 forBothPubGetAndUpgrade((command) { | 14 forBothPubGetAndUpgrade((command) { |
15 integration("implicitly constrains it to versions pub supports", () { | 15 integration("implicitly constrains it to versions pub supports", () { |
16 servePackages((builder) { | 16 servePackages((builder) { |
17 builder.serve("barback", current("barback")); | 17 builder.serve("barback", current("barback")); |
18 builder.serve("stack_trace", previous("stack_trace")); | 18 builder.serve("stack_trace", previous("stack_trace")); |
19 builder.serve("stack_trace", current("stack_trace")); | 19 builder.serve("stack_trace", current("stack_trace")); |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
116 var constraint = barback.pubConstraints[packageName]; | 116 var constraint = barback.pubConstraints[packageName]; |
117 return new Version(constraint.min.major, constraint.min.minor - 1, 0) | 117 return new Version(constraint.min.major, constraint.min.minor - 1, 0) |
118 .toString(); | 118 .toString(); |
119 } | 119 } |
120 | 120 |
121 String nextPatch(String packageName) => | 121 String nextPatch(String packageName) => |
122 barback.pubConstraints[packageName].min.nextPatch.toString(); | 122 barback.pubConstraints[packageName].min.nextPatch.toString(); |
123 | 123 |
124 String max(String packageName) => | 124 String max(String packageName) => |
125 barback.pubConstraints[packageName].max.toString(); | 125 barback.pubConstraints[packageName].max.toString(); |
OLD | NEW |