Skip to content

Commit

Permalink
v3.5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
lijy91 committed Nov 6, 2024
1 parent 2458805 commit 9f0db7c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 26 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 3.5.6

- Fix non en-US date time parse #95

# 3.5.5

- Move x-amz-security-token allocation before signV4 to correctly sign the request #92
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: minio
description: Unofficial MinIO Dart Client SDK that provides simple APIs to access any Amazon S3 compatible object storage server.
version: 3.5.5
version: 3.5.6
homepage: https://github.com/xtyxtyx/minio-dart
issue_tracker: https://github.com/xtyxtyx/minio-dart/issues

Expand Down
38 changes: 13 additions & 25 deletions test/utils_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,13 @@ void testRfc7231Time() {
expect(parseRfc7231Time(timeStringUtc).isUtc, isTrue);
});

test(
'works for non en-US locale', () async {
initializeDateFormatting('pt_BR');
Intl.withLocale(
'pt_BR',
()
{
expect(parseRfc7231Time(timeStringUtc), equals(timeUtc));
expect(parseRfc7231Time(timeStringUtc).isUtc, isTrue);
}
);
}
);
test('works for non en-US locale', () async {
initializeDateFormatting('pt_BR');
Intl.withLocale('pt_BR', () {
expect(parseRfc7231Time(timeStringUtc), equals(timeUtc));
expect(parseRfc7231Time(timeStringUtc).isUtc, isTrue);
});
});
});

group('toRfc7231Time', () {
Expand All @@ -52,18 +46,12 @@ void testRfc7231Time() {
expect(toRfc7231Time(timeUtc), equals(timeStringUtc));
});

test(
'works for non en-US locale', () async {
initializeDateFormatting('pt_BR');
Intl.withLocale(
'pt_BR',
()
{
expect(toRfc7231Time(timeUtc), equals(timeStringUtc));
}
);
}
);
test('works for non en-US locale', () async {
initializeDateFormatting('pt_BR');
Intl.withLocale('pt_BR', () {
expect(toRfc7231Time(timeUtc), equals(timeStringUtc));
});
});
});
}

Expand Down

0 comments on commit 9f0db7c

Please sign in to comment.