Skip to content

Commit

Permalink
Updated http to 1.1.1 version
Browse files Browse the repository at this point in the history
  • Loading branch information
euivanw committed Nov 22, 2023
1 parent 6c9bd0b commit e4f9d30
Show file tree
Hide file tree
Showing 18 changed files with 44 additions and 31 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/analyzer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ jobs:
analyzer:
strategy:
matrix:
sdk: [ 3.2.0, 3.1.5, 3.0.7 ]
os: [ ubuntu-latest, windows-latest, macos-latest ]
sdk: [3.2.0, 3.1.5, 3.0.7]
os: [ubuntu-latest, windows-latest, macos-latest]

name: "Code Analyzer"
runs-on: ${{ matrix.os }}
Expand All @@ -31,4 +31,4 @@ jobs:
if: success()
run: |
derry update || false
derry analyze || false
derry analyze || false
6 changes: 2 additions & 4 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: "Release"

on:
workflow_dispatch:
push:
branches:
branches:
- "main"

jobs:
Expand All @@ -17,6 +16,5 @@ jobs:

version:
name: "Version"
needs: [ analyzer, tests ]
needs: [analyzer, tests]
uses: ./.github/workflows/version.yaml

5 changes: 3 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ name: "Publish to pub.dev"
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
- "v[0-9]+.[0-9]+.[0-9]+*"

jobs:
publish:
name: "Publish"
permissions:
id-token: write
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "Pull Request"

on:
pull_request:
branches:
branches:
- "*"

jobs:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ jobs:
tests:
strategy:
matrix:
sdk: [ 3.2.0, 3.1.5, 3.0.7 ]
os: [ ubuntu-latest, windows-latest, macos-latest ]
sdk: [3.2.0, 3.1.5, 3.0.7]
os: [ubuntu-latest, windows-latest, macos-latest]

name: "Unit Tests"
runs-on: ${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ jobs:
major_pattern: "#MAJOR#"
minor_pattern: "#MINOR#"
version_format: "${major}.${minor}.${patch}"
enable_prerelease_mode: false
enable_prerelease_mode: false
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 1.0.4

- Updated `http` to 1.1.1 version.
- Improved GitHub Actions Workflows.

## 1.0.3

- Improved project description.
Expand Down
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ Here is an example that make some requests using the supported http method and a
You can also read the unit tests to see all the possibilities that the implementation supports.

```dart
try {
import 'dart:convert';
import 'dart:io';
import 'package:iw_rest_client/iw_rest_client.dart';
Future<void> main() async {
try {
final RestClientService service = HttpClientService();
for (var method in RestMethod.values) {
Expand Down Expand Up @@ -108,6 +114,7 @@ try {
print('Unhandled error [$error]');
exit(2);
}
}
```
Feito com &hearts; por Ivan Wilhelm.

Expand Down
18 changes: 6 additions & 12 deletions derry.yaml
Original file line number Diff line number Diff line change
@@ -1,31 +1,25 @@
# Derry script manager for Dart
# Repository: https://github.com/frencojobs/derry

preupdate:
- echo "Start [update] task..."
update:
- echo "Start [update] task..."
- dart pub get || false
postupdate:
- echo "End [update] task..."

preanalyze:
- echo "Start [analyze] task..."
analyze:
- echo "Start [analyze] task..."
- dart analyze --fatal-infos --fatal-warnings || false
postanalyze:
- echo "End [analyze] task..."

pretests:
tests:
- echo "Start [tests] task..."
- rm -rf .coverage/ || false
- dart pub global activate full_coverage || false
- dart pub global activate coverage || false
- dart pub global activate check_coverage || false
tests: >
full_coverage || false;
dart test --coverage=.coverage || false;
format_coverage -l -c -i .coverage --report-on=lib | check_coverage 100 || false;
posttests:
- full_coverage || false
- dart test --coverage=.coverage || false
- format_coverage -l -c -i .coverage --report-on=lib | check_coverage 100 || false
- dart pub global deactivate full_coverage || false
- dart pub global deactivate coverage || false
- dart pub global deactivate check_coverage || false
Expand Down
14 changes: 11 additions & 3 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ packages:
dependency: "direct main"
description:
name: http
sha256: "759d1a329847dd0f39226c688d3e06a6b8679668e350e2891a6474f8b4bb8525"
sha256: "38dce67ce909c338754840e2a1479c2c11347a2fc7ec3d5b166a5118a8a201db"
url: "https://pub.dev"
source: hosted
version: "1.1.0"
version: "1.1.1"
http_multi_server:
dependency: transitive
description:
Expand Down Expand Up @@ -361,6 +361,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.1.0"
web:
dependency: transitive
description:
name: web
sha256: edc8a9573dd8c5a83a183dae1af2b6fd4131377404706ca4e5420474784906fa
url: "https://pub.dev"
source: hosted
version: "0.4.0"
web_socket_channel:
dependency: transitive
description:
Expand All @@ -386,4 +394,4 @@ packages:
source: hosted
version: "3.1.2"
sdks:
dart: ">=3.0.0 <4.0.0"
dart: ">=3.2.0 <4.0.0"
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: iw_rest_client
description: This project is an implementation that allow developers to encapsulate their own usage of a http client.
version: 1.0.3
version: 1.0.4
repository: https://github.com/euivanw/iw_rest_client

topics:
Expand All @@ -14,7 +14,7 @@ scripts: derry.yaml

dependencies:
collection: ^1.18.0
http: ^1.1.0
http: ^1.1.1

dev_dependencies:
lints: ^3.0.0
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit e4f9d30

Please sign in to comment.