Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare release #17

Merged
merged 23 commits into from
Jan 21, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
2951949
Upgraded gradle wrapper
benfortuna May 18, 2023
11f45c0
Use gradle check as default build action
benfortuna May 18, 2023
6df2eed
Updated dependencies
benfortuna May 18, 2023
1556c07
Merge pull request #16 from ical4j/feature/gradle
benfortuna May 18, 2023
7f6da43
Fixed format type
benfortuna Sep 19, 2023
7a65c67
Refactored model serialization
benfortuna Sep 19, 2023
5316d4f
Refactored json-ld serialization
benfortuna Sep 21, 2023
2d04a00
Added deserialization support for multiple components in one json string
benfortuna Sep 23, 2023
9baad85
Added deserialization support for multiple components in one json string
benfortuna Sep 23, 2023
7677353
Added deserialization support for multiple components in one json string
benfortuna Sep 24, 2023
adcef1f
Support local install
benfortuna Dec 18, 2023
34cc5ac
Refactored jmap support
benfortuna Dec 18, 2023
c15932f
Refactored json-ld support
benfortuna Dec 18, 2023
74d4ecb
Refactored jmap support
benfortuna Dec 18, 2023
5aaed02
Updated dependencies
benfortuna Dec 18, 2023
c514a9a
Updated dependencies
benfortuna Jan 20, 2024
85e2b91
Refactored to use unary operator
benfortuna Jan 20, 2024
5894af9
Refactored json mapper
benfortuna Jan 20, 2024
bc68df0
Support instant encoding
benfortuna Jan 21, 2024
3685199
Improved JOTN mapper support
benfortuna Jan 21, 2024
87dd956
Improved JOTN serializer support
benfortuna Jan 21, 2024
3d063cd
Refactored docs
benfortuna Jan 21, 2024
53604fb
Refactored jot notation package name
benfortuna Jan 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed format type
  • Loading branch information
benfortuna committed Sep 19, 2023
commit 7f6da43376ea9f92c72d45f850974351bb7f2b1a
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package org.mnode.ical4j.serializer.jot
package org.mnode.ical4j.serializer.model.component

import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.databind.module.SimpleModule
import net.fortuna.ical4j.model.component.VAlarm
import spock.lang.Specification

class JotAlarmMapperTest extends Specification {
class VAlarmMapperTest extends Specification {

def 'test alarm deserialization'() {
given: 'a json string'
Expand Down Expand Up @@ -37,7 +37,7 @@ class JotAlarmMapperTest extends Specification {
],
"attachments": [
{
"fmttype": "string",
"fmttype": "application/msword",
"url": "http://example.com"
}
],
Expand All @@ -53,7 +53,7 @@ class JotAlarmMapperTest extends Specification {

and: 'an object mapper'
SimpleModule module = []
module.addDeserializer(VAlarm, new JotAlarmMapper())
module.addDeserializer(VAlarm, new VAlarmMapper())
ObjectMapper mapper = []
mapper.registerModule(module)

Expand All @@ -70,7 +70,7 @@ DURATION:PT15M\r
REPEAT:1\r
SUMMARY:string\r
ATTENDEES;MEMBER="mailto:[email protected]";ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=FALSE;CN=string;DIR="http://example.com";LANGUAGE=en-US:mailto:[email protected]\r
ATTACHMENTS;FMTTYPE=string:http://example.com\r
ATTACHMENTS;FMTTYPE=application/msword:http://example.com\r
STYLED-DESCRIPTION;FMTTYPE=text/html;VALUE=TEXT:true\r
END:VALARM\r\n'''
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package org.mnode.ical4j.serializer.jot
package org.mnode.ical4j.serializer.model.component

import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.databind.module.SimpleModule
import net.fortuna.ical4j.model.component.VEvent
import spock.lang.Specification

class JotEventMapperTest extends Specification {
class VEventMapperTest extends Specification {

def 'test event deserialization'() {
given: 'a json string'
Expand Down Expand Up @@ -54,7 +54,7 @@ class JotEventMapperTest extends Specification {
],
"attach": [
{
"fmttype": "string",
"fmttype": "application/msword",
"url": "http://example.com"
}
],
Expand Down Expand Up @@ -104,7 +104,7 @@ class JotEventMapperTest extends Specification {
"structured-data": [
{
"value": "text",
"fmttype": "string",
"fmttype": "application/xml",
"schema": "string",
"text": "string"
}
Expand All @@ -113,7 +113,7 @@ class JotEventMapperTest extends Specification {

and: 'an object mapper'
SimpleModule module = []
module.addDeserializer(VEvent, new JotEventMapper())
module.addDeserializer(VEvent, new VEventMapper())
ObjectMapper mapper = []
mapper.registerModule(module)

Expand Down Expand Up @@ -143,15 +143,15 @@ CREATED:20190824T141522Z\r
CATEGORIES:string\r
COMMENT;ALTREP=string:string\r
RESOURCES;ALTREP="CID:[email protected]":07cc67f4-45d6-494b-adac-09b5cbc7e2b5\r
ATTACH;FMTTYPE=string:http://example.com\r
ATTACH;FMTTYPE=application/msword:http://example.com\r
RELATED-TO;RELTYPE=PARENT:07cc67f4-45d6-494b-adac-09b5cbc7e2b5\r
RDATE:20190824T141522Z\r
EXDATE:20190824T141522Z\r
ATTENDEE;MEMBER="mailto:[email protected]";ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=FALSE;CN=string;DIR="http://example.com";LANGUAGE=en-US:mailto:[email protected]\r
TRANSP:OPAQUE\r
CONTACT;ALTREP=string:string\r
STYLED-DESCRIPTION;FMTTYPE=text/html;VALUE=TEXT:true\r
STRUCTURED-DATA;VALUE=text;FMTTYPE=string:string\r
STRUCTURED-DATA;VALUE=text;FMTTYPE=application/xml:string\r
END:VEVENT\r\n'''
}
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package org.mnode.ical4j.serializer.jot
package org.mnode.ical4j.serializer.model.component

import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.databind.module.SimpleModule
import net.fortuna.ical4j.model.component.VJournal
import spock.lang.Specification

class JotJournalMapperTest extends Specification {
class VJournalMapperTest extends Specification {

def 'test journal deserialization'() {
given: 'a json string'
Expand Down Expand Up @@ -39,7 +39,7 @@ class JotJournalMapperTest extends Specification {
],
"attach": [
{
"fmttype": "string",
"fmttype": "application/msword",
"binary": "string"
}
],
Expand Down Expand Up @@ -86,7 +86,7 @@ class JotJournalMapperTest extends Specification {
"structured-data": [
{
"value": "text",
"fmttype": "string",
"fmttype": "application/xml",
"schema": "string",
"text": "string"
}
Expand All @@ -95,7 +95,7 @@ class JotJournalMapperTest extends Specification {

and: 'an object mapper'
SimpleModule module = []
module.addDeserializer(VJournal, new JotJournalMapper())
module.addDeserializer(VJournal, new VJournalMapper())
ObjectMapper mapper = []
mapper.registerModule(module)

Expand All @@ -118,14 +118,14 @@ class JotJournalMapperTest extends Specification {
'LAST-MODIFIED:20190824T141522Z\r\n' +
'CATEGORIES:string\r\n' +
'COMMENT;ALTREP=string:string\r\n' +
'ATTACH;FMTTYPE=string:string\r\n' +
'ATTACH;FMTTYPE=application/msword:string\r\n' +
'RELATED-TO;RELTYPE=PARENT:07cc67f4-45d6-494b-adac-09b5cbc7e2b5\r\n' +
'RDATE:20190824T141522Z\r\n' +
'EXDATE:20190824T141522Z\r\n' +
'ATTENDEE;MEMBER="mailto:[email protected]";ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=FALSE;CN=string;DIR="http://example.com";LANGUAGE=en-US:mailto:[email protected]\r\n' +
'CONTACT;ALTREP=string:string\r\n' +
'STYLED-DESCRIPTION;FMTTYPE=text/html;VALUE=TEXT:true\r\n' +
'STRUCTURED-DATA;VALUE=text;FMTTYPE=string:string\r\n' +
'STRUCTURED-DATA;VALUE=text;FMTTYPE=application/xml:string\r\n' +
'END:VJOURNAL\r\n'
}
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package org.mnode.ical4j.serializer.jot
package org.mnode.ical4j.serializer.model.component

import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.databind.module.SimpleModule
import net.fortuna.ical4j.model.component.VToDo
import spock.lang.Specification

class JotToDoMapperTest extends Specification {
class VToDoMapperTest extends Specification {

def 'test todo deserialization'() {
given: 'a json string'
Expand Down Expand Up @@ -52,7 +52,7 @@ class JotToDoMapperTest extends Specification {
],
"attachments": [
{
"fmttype": "string",
"fmttype": "application/msword",
"url": "http://example.com"
}
],
Expand Down Expand Up @@ -92,7 +92,7 @@ class JotToDoMapperTest extends Specification {
"structured-data": [
{
"value": "text",
"fmttype": "string",
"fmttype": "application/xml",
"schema": "string",
"text": "string"
}
Expand All @@ -101,7 +101,7 @@ class JotToDoMapperTest extends Specification {

and: 'an object mapper'
SimpleModule module = []
module.addDeserializer(VToDo, new JotToDoMapper())
module.addDeserializer(VToDo, new VToDoMapper())
ObjectMapper mapper = []
mapper.registerModule(module)

Expand Down Expand Up @@ -132,12 +132,12 @@ DESCRIPTION:string\r
CATEGORIES:string\r
COMMENTS:string\r
RESOURCES;ALTREP="CID:[email protected]":07cc67f4-45d6-494b-adac-09b5cbc7e2b5\r
ATTACHMENTS;FMTTYPE=string:http://example.com\r
ATTACHMENTS;FMTTYPE=application/msword:http://example.com\r
RELATED-TO;RELTYPE=PARENT:07cc67f4-45d6-494b-adac-09b5cbc7e2b5\r
ATTENDEES;MEMBER="mailto:[email protected]";ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=FALSE;CN=string;DIR="http://example.com";LANGUAGE=en-US:mailto:[email protected]\r
CONTACTS:string\r
STYLED-DESCRIPTION;FMTTYPE=text/html;VALUE=TEXT:true\r
STRUCTURED-DATA;VALUE=text;FMTTYPE=string:string\r
STRUCTURED-DATA;VALUE=text;FMTTYPE=application/xml:string\r
END:VTODO\r\n'''
}
}