Skip to content

Commit

Permalink
chore: set max SDK version to <3.0.0 (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin authored and kevmoo committed Jul 17, 2018
1 parent 9396db7 commit f1ed1db
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 14 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,7 @@
## 1.6.2

* Set max SDK version to `<3.0.0`, and adjust other dependencies.

## 1.6.1

* Drop the `retype` implementation for compatibility with the latest SDK.
Expand Down
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -25,10 +25,10 @@ These manipulate path strings based on your current working directory and
the path style (POSIX, Windows, or URLs) of the host platform. For example:

```dart
p.join("directory", "file.txt");
p.join('directory', 'file.txt');
```

This calls the top-level [join] function to join "directory" and
This calls the top-level `join()` function to join "directory" and
"file.txt" using the current platform's directory separator.

If you want to work with paths for a specific platform regardless of the
Expand All @@ -37,7 +37,7 @@ underlying platform that the program is running on, you can create a

```dart
var context = new p.Context(style: Style.windows);
context.join("directory", "file.txt");
context.join('directory', 'file.txt');
```

This will join "directory" and "file.txt" using the Windows path separator,
Expand Down
2 changes: 0 additions & 2 deletions analysis_options.yaml

This file was deleted.

19 changes: 11 additions & 8 deletions pubspec.yaml
@@ -1,12 +1,15 @@
name: path
version: 1.6.1
author: Dart Team <misc@dartlang.org>
version: 1.6.2

description: >
A string-based path manipulation library. All of the path operations you know
and love, with solid support on both Windows and POSIX (Linux and Mac OS X)
machines.
A string-based path manipulation library. All of the path operations you know
and love, with solid support on both Windows and POSIX (Linux and Mac OS X)
machines.
author: Dart Team <misc@dartlang.org>
homepage: http://github.com/dart-lang/path
dev_dependencies:
test: ">=0.12.0 <0.13.0"

environment:
sdk: ">=2.0.0-dev.62.0 <2.0.0"
sdk: '>=2.0.0-dev.62.0 <3.0.0'

dev_dependencies:
test: '>=0.12.42 <2.0.0'
2 changes: 2 additions & 0 deletions test/path_test.dart
Expand Up @@ -13,7 +13,9 @@ main() {
});

test('separator', () {
// ignore: deprecated_member_use
expect(path.Style.posix.separator, '/');
// ignore: deprecated_member_use
expect(path.Style.windows.separator, '\\');
});

Expand Down
2 changes: 1 addition & 1 deletion test/utils.dart
Expand Up @@ -6,7 +6,7 @@ import "package:test/test.dart";
import "package:path/path.dart" as p;

/// A matcher for a closure that throws a [path.PathException].
final throwsPathException = throwsA(new isInstanceOf<p.PathException>());
final throwsPathException = throwsA(new TypeMatcher<p.PathException>());

void expectEquals(p.Context context, String path1, String path2) {
expect(context.equals(path1, path2), isTrue,
Expand Down

0 comments on commit f1ed1db

Please sign in to comment.