Remove upper case constants (#8)
diff --git a/.travis.yml b/.travis.yml
index a0653e3..aaab84c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,8 +2,6 @@
dart:
- dev
- - stable
-
dart_task:
- test
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3539933..9118564 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 1.0.2
+
+* Update SDK version to 2.0.0-dev.17.0
+
## 1.0.1
* Declare support for `async` 2.0.0.
diff --git a/lib/test_process.dart b/lib/test_process.dart
index dcb1d85..3ee5244 100644
--- a/lib/test_process.dart
+++ b/lib/test_process.dart
@@ -64,7 +64,7 @@
/// Completes to [_process]'s exit code if it's exited, otherwise completes to
/// `null` immediately.
Future<int> get _exitCodeOrNull async =>
- await exitCode.timeout(Duration.ZERO, onTimeout: () => null);
+ await exitCode.timeout(Duration.zero, onTimeout: () => null);
/// Starts a process.
///
@@ -73,7 +73,7 @@
///
/// [description] is a string description of this process; it defaults to the
/// command-line invocation. [encoding] is the [Encoding] that will be used
- /// for the process's input and output; it defaults to [UTF8].
+ /// for the process's input and output; it defaults to [utf8].
///
/// If [forwardStdio] is `true`, the process's stdout and stderr will be
/// printed to the console as they appear. This is only intended to be set
@@ -100,7 +100,7 @@
description = "$humanExecutable ${arguments.join(" ")}";
}
- encoding ??= UTF8;
+ encoding ??= utf8;
return new TestProcess(process, description,
encoding: encoding, forwardStdio: forwardStdio);
}
@@ -165,7 +165,7 @@
// Wait a timer tick to ensure that all available lines have been flushed to
// [_log].
- await new Future.delayed(Duration.ZERO);
+ await new Future.delayed(Duration.zero);
var buffer = new StringBuffer();
buffer.write("Process `$description` ");
diff --git a/pubspec.yaml b/pubspec.yaml
index 8f96bbc..c98deb8 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,11 +1,11 @@
name: test_process
-version: 1.0.1
+version: 1.0.2
description: A package for testing subprocesses.
author: Dart Team <misc@dartlang.org>
homepage: https://github.com/dart-lang/test_process
environment:
- sdk: '>=1.8.0 <2.0.0'
+ sdk: '>=2.0.0-dev.17.0 <2.0.0'
dependencies:
async: ">=1.12.0 <3.0.0"
diff --git a/test/test_process_test.dart b/test/test_process_test.dart
index dd97a6b..03edd26 100644
--- a/test/test_process_test.dart
+++ b/test/test_process_test.dart
@@ -119,7 +119,7 @@
import 'dart:io';
var stdinLines = stdin
- .transform(UTF8.decoder)
+ .transform(utf8.decoder)
.transform(new LineSplitter());
void main() {