Remove upper case constants (#6)
* Remove usage of upper-case constants.
* update SDK version
* remove stable from Travis config
* Update pubspec.yaml
diff --git a/.travis.yml b/.travis.yml
index 74d7d9c..8b6048d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,8 +2,6 @@
sudo: false
dart:
- dev
- - stable
-
dart_task:
- test
- dartfmt
diff --git a/pubspec.yaml b/pubspec.yaml
index c6e118b..3052397 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,10 +1,10 @@
name: http_throttle
-version: 1.0.2-dev
+version: 1.0.2
author: Dart Team <misc@dartlang.org>
homepage: https://github.com/dart-lang/http_throttle
description: HTTP client middleware that throttles requests.
environment:
- sdk: ">=1.13.0 <2.0.0"
+ sdk: ">=2.0.0-dev.17.0 <2.0.0"
dependencies:
http: ">=0.9.0 <0.12.0"
pool: ">=1.0.0 <2.0.0"
diff --git a/test/http_throttle_test.dart b/test/http_throttle_test.dart
index 1293a12..6b3243e 100644
--- a/test/http_throttle_test.dart
+++ b/test/http_throttle_test.dart
@@ -76,5 +76,5 @@
// Future.value or Future() constructors use scheduleMicrotask themselves and
// would therefore not wait for microtask callbacks that are scheduled after
// invoking this method.
- return new Future.delayed(Duration.ZERO, () => pumpEventQueue(times - 1));
+ return new Future.delayed(Duration.zero, () => pumpEventQueue(times - 1));
}