From d3e66d7f62985edb259b3e153b8db864d2e824fa Mon Sep 17 00:00:00 2001
From: Luka Giorgadze <6573695+LukaGiorgadze@users.noreply.github.com>
Date: Thu, 17 Aug 2023 19:27:49 +0400
Subject: [PATCH] Bump up versions (#154)
* update readme
* change sdk ver
* update SDK in workflow
* add contributors list
---
.github/workflows/dart-ci.yml | 2 +-
CHANGELOG.md | 7 +++++++
README.md | 8 +++++++-
pubspec.yaml | 12 ++++++------
test/matchers/list_param_test.dart | 22 +++++++++++-----------
5 files changed, 32 insertions(+), 19 deletions(-)
diff --git a/.github/workflows/dart-ci.yml b/.github/workflows/dart-ci.yml
index f9cee42..0e895c5 100644
--- a/.github/workflows/dart-ci.yml
+++ b/.github/workflows/dart-ci.yml
@@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- sdk: [ 2.18.3, stable ]
+ sdk: [ 3.1.0, stable ]
steps:
- name: Checkout the repository
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6b2b66c..f273ed7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,13 @@ Subsequently, the date entry follows **YYYY-MM-DD** format in accordance with th
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
---
+## [v0.5.0] (2023-05-03)
+- **Updated**
+ - Bump up sdk and dependency versions:
+ - sdk: >=3.0.0
+ - collection: ^1.18.0
+ - dio: ^5.3.2
+
## [v0.4.4] (2023-05-03)
- **Updated**
- Fix: remove unused import dart:ffi
diff --git a/README.md b/README.md
index 69cae0b..c55ab72 100644
--- a/README.md
+++ b/README.md
@@ -73,7 +73,7 @@ Add this to your package's `pubspec.yaml` file:
```yaml
dev_dependencies:
- http_mock_adapter: ^0.4.4
+ http_mock_adapter: ^0.5.0
```
#### Install it
@@ -118,4 +118,10 @@ http-mock-adapter is licensed under the permissive MIT License ([LICENSE](https:
## Contribution
+
+
+
+
+Made with [contrib.rocks](https://contrib.rocks).
+
For information regarding contributions, please refer to [CONTRIBUTING.md](https://github.com/lomsa-dev/http-mock-adapter/blob/main/CONTRIBUTING.md "Project's CONTRIBUTING.md file") file.
diff --git a/pubspec.yaml b/pubspec.yaml
index a5833e3..93dc6a5 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,19 +1,19 @@
name: http_mock_adapter
description: A simple to use mocking package for Dio intended to be used in tests. It provides various types and methods to declaratively mock request-response communication.
-version: 0.4.4
+version: 0.5.0
homepage: https://github.com/lomsa-dev/http-mock-adapter
repository: https://github.com/lomsa-dev/http-mock-adapter
issue_tracker: https://github.com/lomsa-dev/http-mock-adapter/issues
environment:
- sdk: '>=2.18.3 <3.0.0'
+ sdk: '>=3.1.0'
dependencies:
- collection: ^1.17.1
- dio: ^5.2.1
+ collection: ^1.18.0
+ dio: ^5.3.2
http_parser: ^4.0.2
dev_dependencies:
- lints: '>=1.0.1'
- test: ^1.24.3
+ lints: '>=2.1.1'
+ test: ^1.24.6
fake_async: ^1.3.1
diff --git a/test/matchers/list_param_test.dart b/test/matchers/list_param_test.dart
index 9600f37..67d8670 100644
--- a/test/matchers/list_param_test.dart
+++ b/test/matchers/list_param_test.dart
@@ -6,20 +6,20 @@ void main() {
group('ListParamMatcher', () {
test('matches empty value correctly', () {
expect(
- Matchers.listParam(ListParam(
+ Matchers.listParam(const ListParam(
[],
ListFormat.pipes,
- )).matches(ListParam(
+ )).matches(const ListParam(
[],
ListFormat.pipes,
)),
true,
);
expect(
- Matchers.listParam(ListParam(
+ Matchers.listParam(const ListParam(
[],
ListFormat.pipes,
- )).matches(ListParam(
+ )).matches(const ListParam(
[],
ListFormat.csv,
)),
@@ -29,30 +29,30 @@ void main() {
test('matches value correctly', () {
expect(
- Matchers.listParam(ListParam(
+ Matchers.listParam(const ListParam(
['foo', 'bar'],
ListFormat.pipes,
- )).matches(ListParam(
+ )).matches(const ListParam(
['foo', 'bar'],
ListFormat.pipes,
)),
true,
);
expect(
- Matchers.listParam(ListParam(
+ Matchers.listParam(const ListParam(
['foo', 'bar'],
ListFormat.pipes,
- )).matches(ListParam(
+ )).matches(const ListParam(
['foo', 'baz'],
ListFormat.pipes,
)),
false,
);
expect(
- Matchers.listParam(ListParam(
+ Matchers.listParam(const ListParam(
['foo', 'bar'],
ListFormat.pipes,
- )).matches(ListParam(
+ )).matches(const ListParam(
[1, 2],
ListFormat.pipes,
)),
@@ -61,7 +61,7 @@ void main() {
});
test('converts to string as defined', () {
- final listParam = ListParam(
+ const listParam = ListParam(
[],
ListFormat.pipes,
);