Skip to content

Commit

Permalink
Bump up versions (#154)
Browse files Browse the repository at this point in the history
* update readme

* change sdk ver

* update SDK in workflow

* add contributors list
  • Loading branch information
LukaGiorgadze authored Aug 17, 2023
1 parent f999fbf commit d3e66d7
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dart-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -118,4 +118,10 @@ http-mock-adapter is licensed under the permissive MIT License ([LICENSE](https:

## Contribution

<a href="https://github.com/lomsa-dev/http-mock-adapter/graphs/contributors">
<img src="https://contrib.rocks/image?repo=lomsa-dev/http-mock-adapter" />
</a>

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.
12 changes: 6 additions & 6 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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
22 changes: 11 additions & 11 deletions test/matchers/list_param_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@ void main() {
group('ListParamMatcher', () {
test('matches empty value correctly', () {
expect(
Matchers.listParam(ListParam<String>(
Matchers.listParam(const ListParam<String>(
[],
ListFormat.pipes,
)).matches(ListParam<String>(
)).matches(const ListParam<String>(
[],
ListFormat.pipes,
)),
true,
);
expect(
Matchers.listParam(ListParam<String>(
Matchers.listParam(const ListParam<String>(
[],
ListFormat.pipes,
)).matches(ListParam<String>(
)).matches(const ListParam<String>(
[],
ListFormat.csv,
)),
Expand All @@ -29,30 +29,30 @@ void main() {

test('matches value correctly', () {
expect(
Matchers.listParam(ListParam<String>(
Matchers.listParam(const ListParam<String>(
['foo', 'bar'],
ListFormat.pipes,
)).matches(ListParam<String>(
)).matches(const ListParam<String>(
['foo', 'bar'],
ListFormat.pipes,
)),
true,
);
expect(
Matchers.listParam(ListParam<String>(
Matchers.listParam(const ListParam<String>(
['foo', 'bar'],
ListFormat.pipes,
)).matches(ListParam<String>(
)).matches(const ListParam<String>(
['foo', 'baz'],
ListFormat.pipes,
)),
false,
);
expect(
Matchers.listParam(ListParam<String>(
Matchers.listParam(const ListParam<String>(
['foo', 'bar'],
ListFormat.pipes,
)).matches(ListParam<int>(
)).matches(const ListParam<int>(
[1, 2],
ListFormat.pipes,
)),
Expand All @@ -61,7 +61,7 @@ void main() {
});

test('converts to string as defined', () {
final listParam = ListParam<String>(
const listParam = ListParam<String>(
[],
ListFormat.pipes,
);
Expand Down

0 comments on commit d3e66d7

Please sign in to comment.