Skip to content

Commit

Permalink
chore: set max SDK version to <3.0.0 (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin authored and kevmoo committed Jul 19, 2018
1 parent e4b936c commit 11afe5e
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 23 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.dart_tool/
.packages
.pub/
build/
pubspec.lock
19 changes: 7 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,13 @@ dart:
- dev
# See https://docs.travis-ci.com/user/languages/dart/ for details.
dart_task:
- test: --platform vm
# Uncomment this line to run tests on the browser.
# - test: --platform firefox

# Only run one instance of the formatter and the analyzer, rather than running
# them against each Dart version.
matrix:
include:
- dart: dev
dart_task: dartfmt
- dart: dev
dart_task: dartanalyzer
- dartfmt
- dartanalyzer
# TODO: reinstate tests once https://github.com/dart-lang/http_retry/issues/6 is fixed
# - test: --platform vm
# xvfb: false
# # Uncomment this line to run tests on the browser.
# - test: --platform firefox

# Only building master means that we don't run two builds for each pull request.
branches:
Expand Down
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
## 0.1.1+2

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

## 0.1.1+1

* Updated SDK version to 2.0.0-dev.17.0
* Update SDK version to 2.0.0-dev.17.0.

## 0.1.1

Expand Down
1 change: 0 additions & 1 deletion analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
analyzer:
strong-mode: true
13 changes: 7 additions & 6 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
name: http_retry
version: 0.1.1+1
version: 0.1.1+2

description: HTTP client middleware that automatically retries requests.
author: Dart Team <misc@dartlang.org>
homepage: https://github.com/dart-lang/http_retry

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

dependencies:
async: ">=1.2.0 <=3.0.0"
http: "^0.11.0"
async: ^2.0.7
http: ^0.11.0

dev_dependencies:
fake_async: "^0.1.2"
test: "^0.12.0"
fake_async: ^0.1.2
test: ^1.2.0
1 change: 0 additions & 1 deletion test/http_retry_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ void main() {
});

test("doesn't retry a request where whenError() returns false", () async {
var count = 0;
var client = new RetryClient(
new MockClient(expectAsync1((request) async => throw "oh no")),
whenError: (error, _) => error == "oh yeah",
Expand Down

0 comments on commit 11afe5e

Please sign in to comment.