Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
zoocityboy committed Jul 30, 2023
2 parents ba8c110 + d003cb2 commit c379616
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# [0.3.1](https://github.com/VeryGoodOpenSource/pub_updater/compare/v0.3.0...v0.3.1) (2023-06-19)

# [0.3.0](https://github.com/VeryGoodOpenSource/pub_updater/compare/v0.2.4...v0.3.0) (2023-04-11)

### Bug Fixes
Expand Down
8 changes: 4 additions & 4 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: pub_updater
description: A Dart package which enables checking whether a package is up to date.
version: 0.3.0
version: 0.3.1
homepage: https://github.com/VeryGoodOpenSource/pub_updater

environment:
sdk: ">=2.12.0 <4.0.0"
sdk: ">=3.0.0 <4.0.0"

dependencies:
http: ^0.13.3
http: ^1.0.0
json_annotation: ^4.1.0
process: ^4.2.3
pub_semver: ^2.1.3
Expand All @@ -17,4 +17,4 @@ dev_dependencies:
json_serializable: ^6.5.3
mocktail: ^0.3.0
test: ^1.17.0
very_good_analysis: ^4.0.0
very_good_analysis: ^5.0.0
6 changes: 2 additions & 4 deletions test/pub_update_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ class MockResponse extends Mock implements Response {}

class MockProcessManager extends Mock implements ProcessManager {}

class FakeProcessResult extends Fake implements ProcessResult {}

const emptyResponseBody = '{}';

const command = [
Expand Down Expand Up @@ -82,7 +80,7 @@ void main() {
when(() => response.body).thenReturn(validPackageInfoResponseBody);

when(() => processManager.run(any()))
.thenAnswer((_) => Future.value(FakeProcessResult()));
.thenAnswer((_) => Future.value(ProcessResult(42, 0, '', '')));
});

test('can be instantiated without an explicit http client', () {
Expand Down Expand Up @@ -178,7 +176,7 @@ void main() {
.thenReturn(preReleasePackageInfoResponseBody);

when(() => processManager.run(any()))
.thenAnswer((_) => Future.value(FakeProcessResult()));
.thenAnswer((_) => Future.value(ProcessResult(42, 0, '', '')));
});

test('returns false when currentVersion < latestVersion', () async {
Expand Down

0 comments on commit c379616

Please sign in to comment.