New Upstream Release - golang-github-arran4-golang-ical
Ready changes
Summary
Merged new upstream version: 0.0~git20230318.19abf92 (was: 0.0~git20221122.1093469).
Resulting package
Built on 2023-03-22T14:25 (took 3m58s)
The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:
apt install -t fresh-releases golang-github-arran4-golang-ical-dev
Lintian Result
- golang-github-arran4-golang-ical-dev_0.0~git20230318.19abf92-1~jan+nur1_all.deb
- golang-github-arran4-golang-ical_0.0~git20230318.19abf92-1~jan+nur1.dsc
- golang-github-arran4-golang-ical_0.0~git20230318.19abf92-1~jan+nur1_amd64.buildinfo
- golang-github-arran4-golang-ical_0.0~git20230318.19abf92-1~jan+nur1_amd64.changes
Diff
diff --git a/README.md b/README.md
index 7a98171..5c4122d 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,8 @@
# golang-ical
A ICS / ICal parser and serialiser for Golang.
+[![GoDoc](https://godoc.org/github.com/arran4/golang-ical?status.svg)](https://godoc.org/github.com/arran4/golang-ical)
+
Because the other libraries didn't quite do what I needed.
Usage, parsing:
@@ -30,3 +32,7 @@ Creating:
```
Helper methods created as needed feel free to send a P.R. with more.
+
+# Notice
+
+Looking for a co-maintainer.
diff --git a/calendar.go b/calendar.go
index c2cd16a..5b3d7c4 100644
--- a/calendar.go
+++ b/calendar.go
@@ -113,6 +113,7 @@ const (
PropertyXWRTimezone Property = "X-WR-TIMEZONE"
PropertySequence Property = "SEQUENCE"
PropertyXWRCalID Property = "X-WR-RELCALID"
+ PropertyTimezoneId Property = "TIMEZONE-ID"
)
type Parameter string
@@ -326,6 +327,7 @@ func (calendar *Calendar) SetProductId(s string, props ...PropertyParameter) {
func (calendar *Calendar) SetName(s string, props ...PropertyParameter) {
calendar.setProperty(PropertyName, string(s), props...)
+ calendar.setProperty(PropertyXWRCalName, string(s), props...)
}
func (calendar *Calendar) SetColor(s string, props ...PropertyParameter) {
@@ -364,10 +366,18 @@ func (calendar *Calendar) SetCalscale(s string, props ...PropertyParameter) {
calendar.setProperty(PropertyCalscale, string(s), props...)
}
+func (calendar *Calendar) SetUrl(s string, props ...PropertyParameter) {
+ calendar.setProperty(PropertyUrl, string(s), props...)
+}
+
func (calendar *Calendar) SetTzid(s string, props ...PropertyParameter) {
calendar.setProperty(PropertyTzid, string(s), props...)
}
+func (calendar *Calendar) SetTimezoneId(s string, props ...PropertyParameter) {
+ calendar.setProperty(PropertyTimezoneId, string(s), props...)
+}
+
func (calendar *Calendar) setProperty(property Property, value string, props ...PropertyParameter) {
for i := range calendar.CalendarProperties {
if calendar.CalendarProperties[i].IANAToken == string(property) {
diff --git a/debian/changelog b/debian/changelog
index f03bebe..d209bb0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+golang-github-arran4-golang-ical (0.0~git20230318.19abf92-1) UNRELEASED; urgency=low
+
+ * New upstream snapshot.
+ * New upstream snapshot.
+
+ -- Debian Janitor <janitor@jelmer.uk> Wed, 22 Mar 2023 14:21:43 -0000
+
golang-github-arran4-golang-ical (0.0~git20220517.fd89fef-2) unstable; urgency=medium
* Team upload.
diff --git a/property.go b/property.go
index 23dfca5..62418ad 100644
--- a/property.go
+++ b/property.go
@@ -98,8 +98,11 @@ func (property *BaseProperty) serialize(w io.Writer) {
fmt.Fprint(b, ",")
}
if strings.ContainsAny(v, ";:\\\",") {
- v = strings.Replace(v, "\"", "\\\"", -1)
+ v = strings.Replace(v, ";", "\\;", -1)
+ v = strings.Replace(v, ":", "\\:", -1)
v = strings.Replace(v, "\\", "\\\\", -1)
+ v = strings.Replace(v, "\"", "\\\"", -1)
+ v = strings.Replace(v, ",", "\\,", -1)
}
fmt.Fprint(b, v)
}
Debdiff
File lists identical (after any substitutions)
No differences were encountered in the control files