ims_caliper 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/.gitignore +37 -0
- data/.idea/caliper-ruby.iml +98 -0
- data/.idea/encodings.xml +5 -0
- data/.idea/misc.xml +5 -0
- data/.idea/modules.xml +9 -0
- data/.idea/scopes/scope_settings.xml +5 -0
- data/.idea/vcs.xml +7 -0
- data/Gemfile +12 -1
- data/Gemfile.lock +42 -1
- data/LICENSE +67 -0
- data/NOTICE +15 -0
- data/README.md +13 -5
- data/caliper.gemspec +2 -8
- data/lib/caliper/defaults.rb +4 -4
- data/lib/caliper/entities/annotation/annotation.rb +14 -4
- data/lib/caliper/entities/annotation/bookmark_annotation.rb +14 -4
- data/lib/caliper/entities/annotation/highlight_annotation.rb +14 -3
- data/lib/caliper/entities/annotation/shared_annotation.rb +12 -3
- data/lib/caliper/entities/annotation/tag_annotation.rb +13 -3
- data/lib/caliper/entities/assessment/assessment.rb +27 -0
- data/lib/caliper/entities/assessment/assessment_item.rb +26 -0
- data/lib/caliper/entities/assignable/assignable_digital_resource.rb +47 -0
- data/lib/caliper/entities/assignable/attempt.rb +32 -0
- data/lib/caliper/entities/digital_resource.rb +36 -35
- data/lib/caliper/entities/entity.rb +50 -36
- data/lib/caliper/entities/foaf/agent.rb +1 -1
- data/lib/caliper/entities/jsonable.rb +56 -0
- data/lib/caliper/entities/learning_objective.rb +26 -0
- data/lib/caliper/entities/lis/course_offering.rb +30 -0
- data/lib/caliper/entities/lis/course_section.rb +27 -15
- data/lib/caliper/entities/lis/group.rb +27 -0
- data/lib/caliper/entities/lis/membership.rb +32 -0
- data/lib/caliper/entities/lis/organization.rb +20 -17
- data/lib/caliper/entities/lis/person.rb +23 -10
- data/lib/caliper/entities/lis/roles.rb +77 -0
- data/lib/caliper/entities/lis/status.rb +19 -0
- data/lib/caliper/entities/media/audio_object.rb +21 -0
- data/lib/caliper/entities/media/image_object.rb +21 -0
- data/lib/caliper/entities/media/media_location.rb +23 -0
- data/lib/caliper/entities/media/media_object.rb +38 -0
- data/lib/caliper/entities/media/video_object.rb +21 -0
- data/lib/caliper/entities/reading/epub_volume.rb +15 -7
- data/lib/caliper/entities/reading/frame.rb +7 -15
- data/lib/caliper/entities/response/fillin_blank_response.rb +20 -0
- data/lib/caliper/entities/response/multiple_choice_response.rb +20 -0
- data/lib/caliper/entities/response/multiple_response_response.rb +20 -0
- data/lib/caliper/entities/response/response.rb +23 -0
- data/lib/caliper/entities/response/response_type.rb +13 -0
- data/lib/caliper/entities/response/select_type_response.rb +20 -0
- data/lib/caliper/entities/response/true_false_response.rb +21 -0
- data/lib/caliper/entities/schemadotorg/software_application.rb +8 -8
- data/lib/caliper/entities/session.rb +25 -17
- data/lib/caliper/entities/software_application.rb +16 -7
- data/lib/caliper/entities/web_page.rb +2 -0
- data/lib/caliper/entity_envelope.rb +21 -0
- data/lib/caliper/event/annotation_event.rb +10 -6
- data/lib/caliper/event/assessment_event.rb +19 -0
- data/lib/caliper/event/assessment_item_event.rb +19 -0
- data/lib/caliper/event/assignable_event.rb +19 -0
- data/lib/caliper/event/event.rb +70 -50
- data/lib/caliper/event/jsonable.rb +55 -0
- data/lib/caliper/event/navigation_event.rb +2 -7
- data/lib/caliper/event/outcome_event.rb +1 -1
- data/lib/caliper/event/session_event.rb +13 -14
- data/lib/caliper/event/view_event.rb +6 -7
- data/lib/caliper/event_envelope.rb +22 -0
- data/lib/caliper/jsonable.rb +53 -0
- data/lib/caliper/profiles/annotation_profile.rb +56 -53
- data/lib/caliper/profiles/assessment_profile.rb +48 -0
- data/lib/caliper/profiles/assignable_profile.rb +44 -0
- data/lib/caliper/profiles/media_profile.rb +54 -0
- data/lib/caliper/profiles/profile.rb +38 -38
- data/lib/caliper/profiles/reading_profile.rb +31 -28
- data/lib/caliper/profiles/session_profile.rb +17 -18
- data/lib/caliper/request/event_store_requestor.rb +26 -26
- data/lib/caliper/sensor.rb +46 -35
- data/lib/caliper/version.rb +1 -1
- data/spec/lib/entities/entity.json +9 -0
- data/spec/lib/entities/entity_spec.rb +37 -0
- data/spec/lib/entities/lis/person_spec.rb +37 -0
- data/spec/lib/entities/lis/student.json +11 -0
- data/spec/lib/event/annotation_event_bookmark_spec.rb +159 -0
- data/spec/lib/event/annotation_event_highlight_spec.rb +160 -0
- data/spec/lib/event/annotation_event_shared_spec.rb +172 -0
- data/spec/lib/event/annotation_event_tag_spec.rb +159 -0
- data/spec/lib/event/assessment_event_spec.rb +207 -0
- data/spec/lib/event/assessment_item_completed_event_spec.rb +223 -0
- data/spec/lib/event/assessment_item_started_event_spec.rb +207 -0
- data/spec/lib/event/media_event_spec.rb +157 -0
- data/spec/lib/event/navigated_event_spec.rb +160 -0
- data/spec/lib/event/session_event_login_spec.rb +160 -0
- data/spec/lib/event/session_event_logout_spec.rb +145 -0
- data/spec/lib/event/session_event_timeout_spec.rb +145 -0
- data/spec/lib/event/viewed_event_spec.rb +149 -0
- data/spec/lib/event_helper.rb +145 -0
- data/spec/lib/sensor_spec.rb +30 -0
- data/spec/spec_helper.rb +3 -2
- metadata +84 -61
- data/lib/caliper/client.rb +0 -33
- data/lib/caliper/consumer/base.rb +0 -46
- data/lib/caliper/consumer/queue.rb +0 -40
- data/lib/caliper/consumer/socket.rb +0 -132
- data/lib/caliper/entities/annotation/text_position_selector.rb +0 -14
- data/lib/caliper/entities/schemadotorg/audio_object.rb +0 -15
- data/lib/caliper/entities/schemadotorg/image_object.rb +0 -15
- data/lib/caliper/entities/schemadotorg/media_object.rb +0 -19
- data/lib/caliper/entities/schemadotorg/video_object.rb +0 -15
- data/lib/caliper/event/.shared.rb.swp +0 -0
- data/spec/lib/client_spec.rb +0 -35
- data/spec/lib/consumer/base_spec.rb +0 -28
- data/spec/lib/consumer/queue_spec.rb +0 -16
- data/spec/lib/event/annotation_spec.rb +0 -12
- data/spec/lib/event/bookmarked_spec.rb +0 -17
- data/spec/lib/event/commented_spec.rb +0 -19
- data/spec/lib/event/highlighted_spec.rb +0 -18
- data/spec/lib/event/navigation_spec.rb +0 -15
- data/spec/lib/event/shared_spec.rb +0 -18
- data/spec/lib/event/tagged_spec.rb +0 -17
- data/spec/lib/event/used_spec.rb +0 -15
- data/spec/lib/event/viewed_spec.rb +0 -15
- data/test/caliper/events/session_login_event_test.rb +0 -58
- data/test/caliper/events/session_logout_event_test.rb +0 -55
- data/test/caliper/events/session_timeout_event_test.rb +0 -55
- data/test/caliper/request/http_requestor_test.rb +0 -59
- data/test/caliper/test_event.rb +0 -53
- data/test/caliper/test_utils.rb +0 -198
- data/test/fixtures/caliper_session_login_event.json +0 -71
- data/test/fixtures/caliper_session_logout_event.json +0 -52
- data/test/fixtures/caliper_session_timeout_event.json +0 -52
- data/test/fixtures/event_store_payload.json +0 -85
@@ -1,52 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"@context": "http://purl.imsglobal.org/ctx/caliper/v1/SessionEvent",
|
3
|
-
"@type": "http://purl.imsglobal.org/caliper/v1/SessionEvent",
|
4
|
-
"actor": {
|
5
|
-
"@id": "https://github.com/readium/readium-js-viewer",
|
6
|
-
"@type":"http://purl.imsglobal.org/caliper/v1/SoftwareApplication",
|
7
|
-
"name": "Readium",
|
8
|
-
"lastModifiedTime": 1402965614516
|
9
|
-
},
|
10
|
-
"action": "timed out",
|
11
|
-
"object": {
|
12
|
-
"@id": "https://github.com/readium/readium-js-viewer",
|
13
|
-
"@type":"http://purl.imsglobal.org/caliper/v1/SoftwareApplication",
|
14
|
-
"name": "Readium",
|
15
|
-
"lastModifiedTime": 1402965614516
|
16
|
-
},
|
17
|
-
"target": {
|
18
|
-
"@id": "https://github.com/readium/session-123456789",
|
19
|
-
"@type":"http://purl.imsglobal.org/caliper/v1/Session",
|
20
|
-
"name": "session-123456789",
|
21
|
-
"lastModifiedTime": 1402965614516,
|
22
|
-
"actor": {
|
23
|
-
"@id": "https://some-university.edu/user/554433",
|
24
|
-
"@type": "http://purl.imsglobal.org/caliper/v1/lis/Person",
|
25
|
-
"name": null,
|
26
|
-
"lastModifiedTime": 1402965614516
|
27
|
-
},
|
28
|
-
"startedAtTime": 1402965614516,
|
29
|
-
"endedAtTime": 1402965614516,
|
30
|
-
"duration": null
|
31
|
-
},
|
32
|
-
"generated": null,
|
33
|
-
"startedAtTime": 1402965614516,
|
34
|
-
"endedAtTime": 1402965614516,
|
35
|
-
"duration": null,
|
36
|
-
"edApp": {
|
37
|
-
"@id": "https://github.com/readium/readium-js-viewer",
|
38
|
-
"@type":"http://purl.imsglobal.org/caliper/v1/SoftwareApplication",
|
39
|
-
"name": "Readium",
|
40
|
-
"lastModifiedTime": 1402965614516
|
41
|
-
},
|
42
|
-
"group": {
|
43
|
-
"@id": "https://some-university.edu/politicalScience/2014/american-revolution-101",
|
44
|
-
"@type": "http://purl.imsglobal.org/caliper/v1/lis/CourseSection",
|
45
|
-
"semester": "Spring-2014",
|
46
|
-
"courseNumber": "AmRev-101",
|
47
|
-
"label": "Am Rev 101",
|
48
|
-
"name": "American Revolution 101",
|
49
|
-
"parentOrg": null,
|
50
|
-
"lastModifiedTime": 1402965614516
|
51
|
-
}
|
52
|
-
}
|
@@ -1,85 +0,0 @@
|
|
1
|
-
[{
|
2
|
-
"id" : "caliper-java_fccffd9b-68d5-4183-b563-e22136aafaa3",
|
3
|
-
"type": "caliperEvent",
|
4
|
-
"time": "2014-07-01T14:29:29.858-04:00",
|
5
|
-
"data": {
|
6
|
-
"@context": "http://purl.imsglobal.org/ctx/caliper/v1/NavigationEvent",
|
7
|
-
"@type": "http://purl.imsglobal.org/caliper/v1/NavigationEvent",
|
8
|
-
"actor": {
|
9
|
-
"@id": "https://some-university.edu/user/554433",
|
10
|
-
"@type": "http://purl.imsglobal.org/caliper/v1/lis/Person",
|
11
|
-
"name": null,
|
12
|
-
"lastModifiedTime": 1402965614516
|
13
|
-
},
|
14
|
-
"action": "navigated to",
|
15
|
-
"object": {
|
16
|
-
"@id": "https://github.com/readium/readium-js-viewer/book/34843#epubcfi(/4/3)",
|
17
|
-
"@type": "http://www.idpf.org/epub/vocab/structure/#volume",
|
18
|
-
"name": "The Glorious Cause: The American Revolution, 1763-1789 (Oxford History of the United States)",
|
19
|
-
"objectType": [],
|
20
|
-
"alignedLearningObjective": [],
|
21
|
-
"keyword": [],
|
22
|
-
"partOf": null,
|
23
|
-
"lastModifiedTime": 1402965614516
|
24
|
-
},
|
25
|
-
"target": {
|
26
|
-
"@id": "https://github.com/readium/readium-js-viewer/book/34843#epubcfi(/4/3/1)",
|
27
|
-
"@type": "http://purl.imsglobal.org/caliper/v1/Frame",
|
28
|
-
"name": "Key Figures: George Washington",
|
29
|
-
"objectType": [],
|
30
|
-
"alignedLearningObjective": [],
|
31
|
-
"keyword": [],
|
32
|
-
"partOf": {
|
33
|
-
"@id": "https://github.com/readium/readium-js-viewer/book/34843#epubcfi(/4/3)",
|
34
|
-
"@type": "http://www.idpf.org/epub/vocab/structure/#volume",
|
35
|
-
"name": "The Glorious Cause: The American Revolution, 1763-1789 (Oxford History of the United States)",
|
36
|
-
"objectType": [],
|
37
|
-
"alignedLearningObjective": [],
|
38
|
-
"keyword": [],
|
39
|
-
"partOf": null,
|
40
|
-
"lastModifiedTime": 1402965614516
|
41
|
-
},
|
42
|
-
"lastModifiedTime": 1402965614516,
|
43
|
-
"index": 1
|
44
|
-
},
|
45
|
-
"generated": null,
|
46
|
-
"startedAtTime": 1402965614516,
|
47
|
-
"endedAtTime": 0,
|
48
|
-
"duration": null,
|
49
|
-
"edApp": {
|
50
|
-
"@id": "https://github.com/readium/readium-js-viewer",
|
51
|
-
"@type":"http://purl.imsglobal.org/caliper/v1/SoftwareApplication",
|
52
|
-
"name": "Readium",
|
53
|
-
"lastModifiedTime": 1402965614516
|
54
|
-
},
|
55
|
-
"group": {
|
56
|
-
"@id": "https://some-university.edu/politicalScience/2014/american-revolution-101",
|
57
|
-
"@type": "http://purl.imsglobal.org/caliper/v1/lis/CourseSection",
|
58
|
-
"semester": "Spring-2014",
|
59
|
-
"courseNumber": "AmRev-101",
|
60
|
-
"label": "Am Rev 101",
|
61
|
-
"name": "American Revolution 101",
|
62
|
-
"parentOrg": null,
|
63
|
-
"lastModifiedTime": 1402965614516
|
64
|
-
},
|
65
|
-
"navigatedFrom": {
|
66
|
-
"@id": "AmRev-101-landingPage",
|
67
|
-
"@type": "http://purl.imsglobal.org/caliper/v1/WebPage",
|
68
|
-
"name": "American Revolution 101 Landing Page",
|
69
|
-
"objectType": [],
|
70
|
-
"alignedLearningObjective": [],
|
71
|
-
"keyword": [],
|
72
|
-
"partOf": {
|
73
|
-
"@id": "https://some-university.edu/politicalScience/2014/american-revolution-101",
|
74
|
-
"@type": "http://purl.imsglobal.org/caliper/v1/lis/CourseSection",
|
75
|
-
"semester": "Spring-2014",
|
76
|
-
"courseNumber": "AmRev-101",
|
77
|
-
"label": "Am Rev 101",
|
78
|
-
"name": "American Revolution 101",
|
79
|
-
"parentOrg": null,
|
80
|
-
"lastModifiedTime": 1402965614516
|
81
|
-
},
|
82
|
-
"lastModifiedTime": 1402965614516
|
83
|
-
}
|
84
|
-
}
|
85
|
-
}]
|