Skip to content

Commit

Permalink
relase v0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-virkus committed Jul 29, 2021
1 parent a2641f0 commit a76d778
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 0.5.0
- Convert a recurrence rule to human readbable text using `recurrence.toHumanReadableText()`.
With a recurrence of `RRULE:FREQ=MONTHLY;INTERVAL=2;COUNT=10;BYDAY=1SU,-1SU`, `recurrence.toHumanReadableText()` results in
`Every other month on the first & last Sunday, 10 times`, and `recurrence.toHumanReadableText(languageCode: 'de')` results in
`Alle zwei Monate an dem ersten & letzten Sonntag, 10-mal`, for example.
- Newlines and commas are escaped and de-escaped correctly in description and location fields.


## 0.4.0
Support for additional properties and parameters.

Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Add this dependency your pubspec.yaml file:

```
dependencies:
enough_icalendar: ^0.3.0
enough_icalendar: ^0.5.0
```
The latest version or `enough_icalendar` is [![enough_icalendar version](https://img.shields.io/pub/v/enough_icalendar.svg)](https://pub.dartlang.org/packages/enough_icalendar).

Expand Down Expand Up @@ -38,6 +38,7 @@ DTSTAMP:19970714T170000Z
ORGANIZER;CN=John Doe:MAILTO:[email protected]
DTSTART:19970714T170000Z
DTEND:19970715T035959Z
RRULE:FREQ=YEARLY
SUMMARY:Bastille Day Party
GEO:48.85299;2.36885
END:VEVENT
Expand All @@ -48,6 +49,9 @@ END:VCALENDAR''';
print(event.summary); // Bastille Day Party
print(event.start); // 1997-06-14 at 17:00
print(event.end); // 1997-07-15 at 03:59:59
print(event.recurrenceRule?.toHumanReadableText()); // Annually
print(event.recurrenceRule
?.toHumanReadableText(languageCode: 'de')); // Jährlich
print(event.organizer?.commonName); // John Doe
print(event.organizer?.email); // [email protected]
print(event.geoLocation?.latitude); // 48.85299
Expand Down
4 changes: 4 additions & 0 deletions example/enough_icalendar_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ DTSTAMP:19970714T170000Z
ORGANIZER;CN=John Doe:MAILTO:[email protected]
DTSTART:19970714T170000Z
DTEND:19970715T035959Z
RRULE:FREQ=YEARLY
SUMMARY:Bastille Day Party
GEO:48.85299;2.36885
END:VEVENT
Expand All @@ -36,6 +37,9 @@ END:VCALENDAR''';
print(event.summary); // Bastille Day Party
print(event.start); // 1997-06-14 at 17:00
print(event.end); // 1997-07-15 at 03:59:59
print(event.recurrenceRule?.toHumanReadableText()); // Annually
print(event.recurrenceRule
?.toHumanReadableText(languageCode: 'de')); // Jährlich
print(event.organizer?.commonName); // John Doe
print(event.organizer?.email); // [email protected]
print(event.geoLocation?.latitude); // 48.85299
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: enough_icalendar
description: iCalendar library to parse, generate and respond to iCal / ics invites. Fully compliant with RFC 5545 (iCalendar) and RFC 5546 (iTIP).
version: 0.4.0
version: 0.5.0
homepage: https://github.com/Enough-Software/enough_icalendar

environment:
Expand Down

0 comments on commit a76d778

Please sign in to comment.