Skip to content

Commit 9f0db7c

Browse files
committed
v3.5.6
1 parent 2458805 commit 9f0db7c

File tree

3 files changed

+18
-26
lines changed

3 files changed

+18
-26
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 3.5.6
2+
3+
- Fix non en-US date time parse #95
4+
15
# 3.5.5
26

37
- Move x-amz-security-token allocation before signV4 to correctly sign the request #92

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: minio
22
description: Unofficial MinIO Dart Client SDK that provides simple APIs to access any Amazon S3 compatible object storage server.
3-
version: 3.5.5
3+
version: 3.5.6
44
homepage: https://github.com/xtyxtyx/minio-dart
55
issue_tracker: https://github.com/xtyxtyx/minio-dart/issues
66

test/utils_test.dart

Lines changed: 13 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,13 @@ void testRfc7231Time() {
2828
expect(parseRfc7231Time(timeStringUtc).isUtc, isTrue);
2929
});
3030

31-
test(
32-
'works for non en-US locale', () async {
33-
initializeDateFormatting('pt_BR');
34-
Intl.withLocale(
35-
'pt_BR',
36-
()
37-
{
38-
expect(parseRfc7231Time(timeStringUtc), equals(timeUtc));
39-
expect(parseRfc7231Time(timeStringUtc).isUtc, isTrue);
40-
}
41-
);
42-
}
43-
);
31+
test('works for non en-US locale', () async {
32+
initializeDateFormatting('pt_BR');
33+
Intl.withLocale('pt_BR', () {
34+
expect(parseRfc7231Time(timeStringUtc), equals(timeUtc));
35+
expect(parseRfc7231Time(timeStringUtc).isUtc, isTrue);
36+
});
37+
});
4438
});
4539

4640
group('toRfc7231Time', () {
@@ -52,18 +46,12 @@ void testRfc7231Time() {
5246
expect(toRfc7231Time(timeUtc), equals(timeStringUtc));
5347
});
5448

55-
test(
56-
'works for non en-US locale', () async {
57-
initializeDateFormatting('pt_BR');
58-
Intl.withLocale(
59-
'pt_BR',
60-
()
61-
{
62-
expect(toRfc7231Time(timeUtc), equals(timeStringUtc));
63-
}
64-
);
65-
}
66-
);
49+
test('works for non en-US locale', () async {
50+
initializeDateFormatting('pt_BR');
51+
Intl.withLocale('pt_BR', () {
52+
expect(toRfc7231Time(timeUtc), equals(timeStringUtc));
53+
});
54+
});
6755
});
6856
}
6957

0 commit comments

Comments
 (0)