From 421fc1a12a7789c53cc3254dadea57a3c815a06f Mon Sep 17 00:00:00 2001 From: Guillaume Roux Date: Fri, 8 Jul 2022 09:11:19 +0200 Subject: [PATCH 1/2] updated unit tests --- example/pubspec.lock | 25 +++++++++---------------- test/ics_datetime_test.dart | 19 +++++++++++++++++++ 2 files changed, 28 insertions(+), 16 deletions(-) create mode 100644 test/ics_datetime_test.dart diff --git a/example/pubspec.lock b/example/pubspec.lock index a46e2ff..baa6a28 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -42,7 +42,7 @@ packages: name: collection url: "https://pub.dartlang.org" source: hosted - version: "1.15.0" + version: "1.16.0" cupertino_icons: dependency: "direct main" description: @@ -56,7 +56,7 @@ packages: name: fake_async url: "https://pub.dartlang.org" source: hosted - version: "1.2.0" + version: "1.3.0" ffi: dependency: transitive description: @@ -87,7 +87,7 @@ packages: path: ".." relative: true source: path - version: "1.0.1" + version: "1.0.1+1" intl: dependency: transitive description: @@ -108,7 +108,7 @@ packages: name: material_color_utilities url: "https://pub.dartlang.org" source: hosted - version: "0.1.3" + version: "0.1.4" meta: dependency: transitive description: @@ -122,7 +122,7 @@ packages: name: path url: "https://pub.dartlang.org" source: hosted - version: "1.8.0" + version: "1.8.1" path_provider: dependency: "direct main" description: @@ -190,7 +190,7 @@ packages: name: source_span url: "https://pub.dartlang.org" source: hosted - version: "1.8.1" + version: "1.8.2" stack_trace: dependency: transitive description: @@ -225,21 +225,14 @@ packages: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.4.8" - typed_data: - dependency: transitive - description: - name: typed_data - url: "https://pub.dartlang.org" - source: hosted - version: "1.3.0" + version: "0.4.9" vector_math: dependency: transitive description: name: vector_math url: "https://pub.dartlang.org" source: hosted - version: "2.1.1" + version: "2.1.2" win32: dependency: transitive description: @@ -255,5 +248,5 @@ packages: source: hosted version: "0.1.0" sdks: - dart: ">=2.14.0 <3.0.0" + dart: ">=2.17.0-0 <3.0.0" flutter: ">=1.12.13+hotfix.5" diff --git a/test/ics_datetime_test.dart b/test/ics_datetime_test.dart new file mode 100644 index 0000000..116266d --- /dev/null +++ b/test/ics_datetime_test.dart @@ -0,0 +1,19 @@ +import 'package:icalendar_parser/icalendar_parser.dart'; +import 'package:test/test.dart'; + +void main() { + group('IcsDateTime', () { + group('hashCode', () { + test( + 'two object with the same properties should have the same hashCode', + () { + final d1 = IcsDateTime(tzid: 'Europe/Zurich', dt: '20220415T145500'); + final d2 = IcsDateTime(tzid: 'Europe/Zurich', dt: '20220415T145500'); + + expect(d1.hashCode, d2.hashCode); + expect(d1, d2); + }, + ); + }); + }); +} From 282020124e5f1cb8a8c524a6fac348b27059b8f9 Mon Sep 17 00:00:00 2001 From: Guillaume Roux Date: Fri, 8 Jul 2022 09:20:01 +0200 Subject: [PATCH 2/2] prepare v1.0.2 --- CHANGELOG.md | 5 +++++ pubspec.lock | 2 +- pubspec.yaml | 7 +++---- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e02bad9..459f71b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## [1.0.2] - 08/07/2022 + +* Added EXDATE ([#37](https://github.com/TesteurManiak/icalendar_parser/pull/37) from [LucaCoduriV](https://github.com/LucaCoduriV)) +* Removed dependency to [collection](https://pub.dev/packages/collection) + ## [1.0.1+1] - 07/04/2022 * Updated linting rules diff --git a/pubspec.lock b/pubspec.lock index c67d3ff..1f9d829 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -44,7 +44,7 @@ packages: source: hosted version: "1.2.0" collection: - dependency: "direct main" + dependency: "direct dev" description: name: collection url: "https://pub.dartlang.org" diff --git a/pubspec.yaml b/pubspec.yaml index cf0d4d3..f11a961 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,15 +1,14 @@ name: icalendar_parser description: Package to parse iCalendar (.ics) files written in pure Dart. -version: 1.0.1+1 +version: 1.0.2 homepage: https://github.com/TesteurManiak repository: https://github.com/TesteurManiak/icalendar_parser environment: - sdk: '>=2.12.0 <3.0.0' + sdk: ">=2.12.0 <3.0.0" dev_dependencies: + collection: ^1.16.0 coverage: ^1.2.0 lint: ^1.8.2 test: ^1.20.2 -dependencies: - collection: ^1.16.0