ims_caliper 0.1.3 → 0.9.0

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.
Files changed (131) hide show
  1. checksums.yaml +5 -13
  2. data/.gitignore +3 -0
  3. data/LICENSE +156 -58
  4. data/NOTICE +42 -8
  5. data/README.md +2 -2
  6. data/lib/caliper/defaults.rb +21 -1
  7. data/lib/caliper/entities/agent/organization.rb +37 -0
  8. data/lib/caliper/entities/agent/person.rb +38 -0
  9. data/lib/caliper/entities/agent/software_application.rb +39 -0
  10. data/lib/caliper/entities/annotation/annotation.rb +21 -11
  11. data/lib/caliper/entities/annotation/bookmark_annotation.rb +19 -9
  12. data/lib/caliper/entities/annotation/highlight_annotation.rb +19 -8
  13. data/lib/caliper/entities/annotation/shared_annotation.rb +19 -9
  14. data/lib/caliper/entities/annotation/tag_annotation.rb +19 -9
  15. data/lib/caliper/entities/assessment/assessment.rb +19 -9
  16. data/lib/caliper/entities/assessment/assessment_item.rb +19 -8
  17. data/lib/caliper/entities/assignable/assignable_digital_resource.rb +19 -11
  18. data/lib/caliper/entities/assignable/attempt.rb +21 -8
  19. data/lib/caliper/entities/digital_resource.rb +29 -18
  20. data/lib/caliper/entities/entity.rb +27 -13
  21. data/lib/caliper/entities/foaf/agent.rb +22 -3
  22. data/lib/caliper/entities/generatable.rb +21 -2
  23. data/lib/caliper/entities/jsonable.rb +17 -5
  24. data/lib/caliper/entities/learning_context.rb +30 -9
  25. data/lib/caliper/entities/learning_objective.rb +19 -12
  26. data/lib/caliper/entities/lis/course_offering.rb +23 -13
  27. data/lib/caliper/entities/lis/course_section.rb +20 -13
  28. data/lib/caliper/entities/lis/group.rb +23 -13
  29. data/lib/caliper/entities/lis/membership.rb +22 -16
  30. data/lib/caliper/entities/lis/roles.rb +18 -6
  31. data/lib/caliper/entities/lis/status.rb +18 -6
  32. data/lib/caliper/entities/media/audio_object.rb +21 -7
  33. data/lib/caliper/entities/media/image_object.rb +21 -7
  34. data/lib/caliper/entities/media/media_location.rb +19 -4
  35. data/lib/caliper/entities/media/media_object.rb +19 -8
  36. data/lib/caliper/entities/media/video_object.rb +21 -7
  37. data/lib/caliper/entities/outcome/result.rb +23 -2
  38. data/lib/caliper/entities/reading/epub_chapter.rb +23 -7
  39. data/lib/caliper/entities/reading/epub_part.rb +24 -8
  40. data/lib/caliper/entities/reading/epub_sub_chapter.rb +22 -5
  41. data/lib/caliper/entities/reading/epub_volume.rb +20 -12
  42. data/lib/caliper/entities/reading/frame.rb +22 -6
  43. data/lib/caliper/entities/reading/web_page.rb +37 -0
  44. data/lib/caliper/entities/response/fillin_blank_response.rb +21 -3
  45. data/lib/caliper/entities/response/multiple_choice_response.rb +20 -3
  46. data/lib/caliper/entities/response/multiple_response_response.rb +20 -3
  47. data/lib/caliper/entities/response/response.rb +24 -3
  48. data/lib/caliper/entities/response/response_type.rb +20 -0
  49. data/lib/caliper/entities/response/select_type_response.rb +23 -5
  50. data/lib/caliper/entities/response/true_false_response.rb +20 -3
  51. data/lib/caliper/entities/schemadotorg/creative_work.rb +22 -2
  52. data/lib/caliper/entities/schemadotorg/software_application.rb +22 -2
  53. data/lib/caliper/entities/schemadotorg/thing.rb +19 -0
  54. data/lib/caliper/entities/schemadotorg/web_page.rb +22 -2
  55. data/lib/caliper/entities/session/session.rb +44 -0
  56. data/lib/caliper/entities/targetable.rb +19 -3
  57. data/lib/caliper/entities/w3c/membership.rb +32 -0
  58. data/lib/caliper/entities/w3c/organization.rb +30 -0
  59. data/lib/caliper/entity_envelope.rb +20 -7
  60. data/lib/caliper/event/annotation_event.rb +21 -6
  61. data/lib/caliper/event/assessment_event.rb +22 -2
  62. data/lib/caliper/event/assessment_item_event.rb +22 -2
  63. data/lib/caliper/event/assignable_event.rb +22 -2
  64. data/lib/caliper/event/event.rb +23 -1
  65. data/lib/caliper/event/jsonable.rb +18 -6
  66. data/lib/caliper/event/media_event.rb +22 -2
  67. data/lib/caliper/event/navigation_event.rb +22 -3
  68. data/lib/caliper/event/outcome_event.rb +22 -3
  69. data/lib/caliper/event/session_event.rb +21 -7
  70. data/lib/caliper/event/view_event.rb +22 -8
  71. data/lib/caliper/event_envelope.rb +20 -8
  72. data/lib/caliper/jsonable.rb +24 -7
  73. data/lib/caliper/options.rb +21 -2
  74. data/lib/caliper/profiles/annotation_profile.rb +21 -3
  75. data/lib/caliper/profiles/assessment_item_profile.rb +48 -0
  76. data/lib/caliper/profiles/assessment_profile.rb +22 -23
  77. data/lib/caliper/profiles/assignable_profile.rb +21 -4
  78. data/lib/caliper/profiles/media_profile.rb +20 -3
  79. data/lib/caliper/profiles/profile.rb +20 -24
  80. data/lib/caliper/profiles/reading_profile.rb +21 -4
  81. data/lib/caliper/profiles/session_profile.rb +20 -2
  82. data/lib/caliper/request/event_store_envelope.rb +20 -2
  83. data/lib/caliper/request/event_store_requestor.rb +21 -2
  84. data/lib/caliper/request/http_requestor.rb +28 -9
  85. data/lib/caliper/sensor.rb +21 -11
  86. data/lib/caliper/stats/atomic_wrapper.rb +21 -4
  87. data/lib/caliper/stats/statistic.rb +21 -1
  88. data/lib/caliper/stats/statistics.rb +20 -2
  89. data/lib/caliper/stats/statistics_map.rb +20 -0
  90. data/lib/caliper/validators/error_message.rb +20 -0
  91. data/lib/caliper/validators/event_validator.rb +20 -0
  92. data/lib/caliper/validators/event_validator_context.rb +21 -1
  93. data/lib/caliper/validators/property_type_check.rb +23 -4
  94. data/lib/caliper/validators/session_login_event_validator.rb +39 -21
  95. data/lib/caliper/validators/session_logout_event_validator.rb +31 -13
  96. data/lib/caliper/validators/time_check.rb +20 -0
  97. data/lib/caliper/version.rb +22 -3
  98. data/lib/caliper.rb +18 -1
  99. data/spec/lib/entities/{lis → agent}/person_spec.rb +26 -6
  100. data/spec/lib/entities/{lis → agent}/student.json +0 -0
  101. data/spec/lib/entities/entity_spec.rb +19 -4
  102. data/spec/lib/event/annotation_event_bookmark_spec.rb +23 -8
  103. data/spec/lib/event/annotation_event_highlight_spec.rb +23 -8
  104. data/spec/lib/event/annotation_event_shared_spec.rb +25 -10
  105. data/spec/lib/event/annotation_event_tag_spec.rb +23 -8
  106. data/spec/lib/event/assessment_event_spec.rb +22 -8
  107. data/spec/lib/event/assessment_item_completed_event_spec.rb +24 -10
  108. data/spec/lib/event/assessment_item_started_event_spec.rb +24 -10
  109. data/spec/lib/event/assignable_event_spec.rb +225 -0
  110. data/spec/lib/event/media_event_spec.rb +22 -7
  111. data/spec/lib/event/navigated_event_spec.rb +26 -11
  112. data/spec/lib/event/session_event_login_spec.rb +26 -12
  113. data/spec/lib/event/session_event_logout_spec.rb +25 -12
  114. data/spec/lib/event/session_event_timeout_spec.rb +25 -12
  115. data/spec/lib/event/viewed_event_spec.rb +23 -8
  116. data/spec/lib/event_helper.rb +25 -9
  117. data/spec/lib/sensor_spec.rb +43 -13
  118. data/spec/spec_helper.rb +18 -3
  119. metadata +19 -22
  120. data/.idea/caliper-ruby.iml +0 -156
  121. data/.idea/encodings.xml +0 -5
  122. data/.idea/misc.xml +0 -5
  123. data/.idea/modules.xml +0 -9
  124. data/.idea/scopes/scope_settings.xml +0 -5
  125. data/.idea/vcs.xml +0 -7
  126. data/lib/caliper/entities/lis/organization.rb +0 -25
  127. data/lib/caliper/entities/lis/person.rb +0 -25
  128. data/lib/caliper/entities/session.rb +0 -34
  129. data/lib/caliper/entities/software_application.rb +0 -28
  130. data/lib/caliper/entities/web_page.rb +0 -15
  131. data/spec/lib/request/http_request_spec.rb +0 -216
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- NDY2Y2Q2YzM0NjExMTU0NzZlNzAyY2ZmZjFjMWE2ZjNkOGZmYTY2ZQ==
5
- data.tar.gz: !binary |-
6
- YTE4MTRhMGU4YjU0YWEyOWQ2MmI1NDM3OWVjMmFhOGEzMjJhNDE0Ng==
2
+ SHA1:
3
+ metadata.gz: 5190a42cf274fb1d2e5e327153bb671f70ceb4ec
4
+ data.tar.gz: 627dca09a9554f4b88c6af4b61e4661f15c7093e
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- YjViMzRhMjQ2MTEzZjc2NjQ4MzA4ODM5MjY2MGUzMDA5MGQ2NDVmNGY2ZjYy
10
- MDhjM2E4Yjc2MzliMjg4MjQwMGVlYzRjZmU0NDljOGZhNGQ5NzRkOTRiZGI4
11
- MzM2MjkwNmYyMGMxNDY4OWI1N2IyMjAxODkwMTEwYzZkZTJiOTY=
12
- data.tar.gz: !binary |-
13
- ZWIzNWNiMDA0M2JhZWE2MzJhYjgyYjUwMGRmMmY2ZTAyMzZlMTE0ZDY1M2Q5
14
- ZjY5NjkwOTAwMjcxYjZjMmZiYmYzODBkZTE2ZWU4YzRkMDRmMjliMjhhM2Yw
15
- NTMzZWU5MTYxNjIwYTgxZmJiNjM5NTg2MjJjYTcxZjFhZGIzMzU=
6
+ metadata.gz: 20d5538ccbd0430abfcee5a4856d7566487f8c9031bade4b181851e65534b868c186e29971845bdb25cdd1e63881211595f1ee2679ff19c44dc7254164e9b4d3
7
+ data.tar.gz: 1f7aa585e027a00eb22b5c71581dbcd35c1a7df6205b8cf338640171f63fd6bcb92e901f43a328302d91e3dcfb9fce51da06bc78f835cdf37dc4ab59e90ea838
data/.gitignore CHANGED
@@ -35,3 +35,6 @@ build/
35
35
 
36
36
  # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
37
37
  .rvmrc
38
+
39
+ ## RubyMine
40
+ .idea/*
data/LICENSE CHANGED
@@ -1,67 +1,165 @@
1
-
2
1
  GNU LESSER GENERAL PUBLIC LICENSE
3
-
4
2
  Version 3, 29 June 2007
5
3
 
6
- Copyright 2007 Free Software Foundation, Inc. <http://fsf.org/>
7
-
8
- Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
9
-
10
- This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below.
11
- 0. Additional Definitions.
12
-
13
- As used herein, �this License� refers to version 3 of the GNU Lesser General Public License, and the �GNU GPL� refers to version 3 of the GNU General Public License.
14
-
15
- �The Library� refers to a covered work governed by this License, other than an Application or a Combined Work as defined below.
16
-
17
- An �Application� is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library.
18
-
19
- A �Combined Work� is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the �Linked Version�.
20
-
21
- The �Minimal Corresponding Source� for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version.
22
-
23
- The �Corresponding Application Code� for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work.
24
- 1. Exception to Section 3 of the GNU GPL.
25
-
26
- You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL.
27
- 2. Conveying Modified Versions.
28
-
29
- If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version:
30
-
31
- a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or
32
- b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy.
33
-
34
- 3. Object Code Incorporating Material from Library Header Files.
35
-
36
- The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following:
37
-
38
- a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License.
39
- b) Accompany the object code with a copy of the GNU GPL and this license document.
40
-
41
- 4. Combined Works.
42
-
43
- You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following:
44
-
45
- a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License.
46
- b) Accompany the Combined Work with a copy of the GNU GPL and this license document.
47
- c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document.
48
- d) Do one of the following:
49
- 0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.
50
- 1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version.
51
- e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.)
52
-
53
- 5. Combined Libraries.
54
-
55
- You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following:
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
56
7
 
57
- a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License.
58
- b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work.
59
8
 
60
- 6. Revised Versions of the GNU Lesser General Public License.
9
+ This version of the GNU Lesser General Public License incorporates
10
+ the terms and conditions of version 3 of the GNU General Public
11
+ License, supplemented by the additional permissions listed below.
61
12
 
62
- The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
13
+ 0. Additional Definitions.
63
14
 
64
- Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License �or any later version� applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation.
15
+ As used herein, "this License" refers to version 3 of the GNU Lesser
16
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
17
+ General Public License.
65
18
 
66
- If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library.
19
+ "The Library" refers to a covered work governed by this License,
20
+ other than an Application or a Combined Work as defined below.
67
21
 
22
+ An "Application" is any work that makes use of an interface provided
23
+ by the Library, but which is not otherwise based on the Library.
24
+ Defining a subclass of a class defined by the Library is deemed a mode
25
+ of using an interface provided by the Library.
26
+
27
+ A "Combined Work" is a work produced by combining or linking an
28
+ Application with the Library. The particular version of the Library
29
+ with which the Combined Work was made is also called the "Linked
30
+ Version".
31
+
32
+ The "Minimal Corresponding Source" for a Combined Work means the
33
+ Corresponding Source for the Combined Work, excluding any source code
34
+ for portions of the Combined Work that, considered in isolation, are
35
+ based on the Application, and not on the Linked Version.
36
+
37
+ The "Corresponding Application Code" for a Combined Work means the
38
+ object code and/or source code for the Application, including any data
39
+ and utility programs needed for reproducing the Combined Work from the
40
+ Application, but excluding the System Libraries of the Combined Work.
41
+
42
+ 1. Exception to Section 3 of the GNU GPL.
43
+
44
+ You may convey a covered work under sections 3 and 4 of this License
45
+ without being bound by section 3 of the GNU GPL.
46
+
47
+ 2. Conveying Modified Versions.
48
+
49
+ If you modify a copy of the Library, and, in your modifications, a
50
+ facility refers to a function or data to be supplied by an Application
51
+ that uses the facility (other than as an argument passed when the
52
+ facility is invoked), then you may convey a copy of the modified
53
+ version:
54
+
55
+ a) under this License, provided that you make a good faith effort to
56
+ ensure that, in the event an Application does not supply the
57
+ function or data, the facility still operates, and performs
58
+ whatever part of its purpose remains meaningful, or
59
+
60
+ b) under the GNU GPL, with none of the additional permissions of
61
+ this License applicable to that copy.
62
+
63
+ 3. Object Code Incorporating Material from Library Header Files.
64
+
65
+ The object code form of an Application may incorporate material from
66
+ a header file that is part of the Library. You may convey such object
67
+ code under terms of your choice, provided that, if the incorporated
68
+ material is not limited to numerical parameters, data structure
69
+ layouts and accessors, or small macros, inline functions and templates
70
+ (ten or fewer lines in length), you do both of the following:
71
+
72
+ a) Give prominent notice with each copy of the object code that the
73
+ Library is used in it and that the Library and its use are
74
+ covered by this License.
75
+
76
+ b) Accompany the object code with a copy of the GNU GPL and this license
77
+ document.
78
+
79
+ 4. Combined Works.
80
+
81
+ You may convey a Combined Work under terms of your choice that,
82
+ taken together, effectively do not restrict modification of the
83
+ portions of the Library contained in the Combined Work and reverse
84
+ engineering for debugging such modifications, if you also do each of
85
+ the following:
86
+
87
+ a) Give prominent notice with each copy of the Combined Work that
88
+ the Library is used in it and that the Library and its use are
89
+ covered by this License.
90
+
91
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
92
+ document.
93
+
94
+ c) For a Combined Work that displays copyright notices during
95
+ execution, include the copyright notice for the Library among
96
+ these notices, as well as a reference directing the user to the
97
+ copies of the GNU GPL and this license document.
98
+
99
+ d) Do one of the following:
100
+
101
+ 0) Convey the Minimal Corresponding Source under the terms of this
102
+ License, and the Corresponding Application Code in a form
103
+ suitable for, and under terms that permit, the user to
104
+ recombine or relink the Application with a modified version of
105
+ the Linked Version to produce a modified Combined Work, in the
106
+ manner specified by section 6 of the GNU GPL for conveying
107
+ Corresponding Source.
108
+
109
+ 1) Use a suitable shared library mechanism for linking with the
110
+ Library. A suitable mechanism is one that (a) uses at run time
111
+ a copy of the Library already present on the user's computer
112
+ system, and (b) will operate properly with a modified version
113
+ of the Library that is interface-compatible with the Linked
114
+ Version.
115
+
116
+ e) Provide Installation Information, but only if you would otherwise
117
+ be required to provide such information under section 6 of the
118
+ GNU GPL, and only to the extent that such information is
119
+ necessary to install and execute a modified version of the
120
+ Combined Work produced by recombining or relinking the
121
+ Application with a modified version of the Linked Version. (If
122
+ you use option 4d0, the Installation Information must accompany
123
+ the Minimal Corresponding Source and Corresponding Application
124
+ Code. If you use option 4d1, you must provide the Installation
125
+ Information in the manner specified by section 6 of the GNU GPL
126
+ for conveying Corresponding Source.)
127
+
128
+ 5. Combined Libraries.
129
+
130
+ You may place library facilities that are a work based on the
131
+ Library side by side in a single library together with other library
132
+ facilities that are not Applications and are not covered by this
133
+ License, and convey such a combined library under terms of your
134
+ choice, if you do both of the following:
135
+
136
+ a) Accompany the combined library with a copy of the same work based
137
+ on the Library, uncombined with any other library facilities,
138
+ conveyed under the terms of this License.
139
+
140
+ b) Give prominent notice with the combined library that part of it
141
+ is a work based on the Library, and explaining where to find the
142
+ accompanying uncombined form of the same work.
143
+
144
+ 6. Revised Versions of the GNU Lesser General Public License.
145
+
146
+ The Free Software Foundation may publish revised and/or new versions
147
+ of the GNU Lesser General Public License from time to time. Such new
148
+ versions will be similar in spirit to the present version, but may
149
+ differ in detail to address new problems or concerns.
150
+
151
+ Each version is given a distinguishing version number. If the
152
+ Library as you received it specifies that a certain numbered version
153
+ of the GNU Lesser General Public License "or any later version"
154
+ applies to it, you have the option of following the terms and
155
+ conditions either of that published version or of any later version
156
+ published by the Free Software Foundation. If the Library as you
157
+ received it does not specify a version number of the GNU Lesser
158
+ General Public License, you may choose any version of the GNU Lesser
159
+ General Public License ever published by the Free Software Foundation.
160
+
161
+ If the Library as you received it specifies that a proxy can decide
162
+ whether future versions of the GNU Lesser General Public License shall
163
+ apply, that proxy's public statement of acceptance of any version is
164
+ permanent authorization for you to choose that version for the
165
+ Library.
data/NOTICE CHANGED
@@ -1,15 +1,49 @@
1
- ©2015 IMS Global Learning Consortium, Inc. All Rights Reserved.
1
+ Copyright © 2015 IMS Global Learning Consortium, Inc. All Rights Reserved.
2
2
 
3
- Trademark Information- http://www.imsglobal.org/copyright.html
3
+ Trademark Information -- http://www.imsglobal.org/copyright.html
4
4
 
5
- IMS Global Caliper Analytics™ APIs are publicly licensed as Open Source Software via GNU Lesser General Public License. LGPL v3. Use of these APIs and/or code libraries does not signify achievement of IMS conformance certification. The official list of conformance certifications is available at http://www.imscert.org
5
+ IMS Global Learning Consortium, Inc. Caliper Analytics™ APIs are publicly
6
+ licensed as Open Source Software via the GNU Lesser General Public License,
7
+ LGPL v3 (https://www.gnu.org/licenses/lgpl.html).
6
8
 
7
- IMS Global also makes available an Alternative License based on the Apache 2.0 license.
8
- Licensees (via the Alternative License) are required to be IMS Global members. Membership in IMS is a commitment by a supplier to the IMS community for ongoing support for achieving "plug and play" integration. IMS Membership dues pay for ongoing maintenance for the Alternative License to be applicable to updates to the Caliper Analytics APIs and code libraries. The rationale for this dual-license approach and membership component is to help assure a requisite level of ongoing development, project management, and support for the software.
9
+ Use of these APIs and/or code libraries does not signify achievement of IMS
10
+ conformance certification. The official list of conformance certifications is
11
+ available at http://www.imscert.org.
9
12
 
10
- Licensees of IMS Global Caliper Analytics APIs and code libraries are strongly encouraged to become active contributors to the Caliper Analytics project and other projects within IMS Global. Prospective licensees should understand that their initial base contribution and ongoing membership fees are insufficient to fully fund the ongoing development and maintenance of Caliper APIs/code libraries and that voluntary contributions are the primary "fuel" ensuring any open source project's viability. Contributions can include development, bug fixing, bug reporting, performance analysis, and other aspects of the overall development process.
13
+ IMS Global also makes available an Alternative License based on the Apache 2.0
14
+ license. Licensees (via the Alternative License) are required to be IMS Global
15
+ members. Membership in IMS Global is a commitment by a supplier to the IMS
16
+ community for ongoing support for achieving "plug and play" integration. IMS
17
+ Global Membership dues pay for ongoing maintenance for the Alternative License
18
+ to be applicable to updates to the Caliper Analytics APIs and code libraries.
19
+ The rationale for this dual-license approach and membership component is to
20
+ help assure a requisite level of ongoing development, project management, and
21
+ support for the software.
11
22
 
12
- Contributor status at the "github" level will be individual-based. Contributors will need to sign an IMS Global Contributor License Agreement (CLA) that grants IMS Global a license to contributions.
23
+ Licensees of IMS Global Caliper Analytics APIs and code libraries are strongly
24
+ encouraged to become active contributors to the Caliper Analytics project and
25
+ other projects within IMS Global. Prospective licensees should understand that
26
+ their initial base contribution and ongoing membership fees are insufficient to
27
+ fully fund the ongoing development and maintenance of Caliper APIs/code
28
+ libraries and that voluntary contributions are the primary "fuel" ensuring any
29
+ open source project's viability. Contributions can include development, bug
30
+ fixing, bug reporting, performance analysis, and other aspects of the overall
31
+ development process.
13
32
 
14
- If you are interested in licensing the IMS Global Caliper Analytics APIs/code libraries please email licenses@imsglobal.org
33
+ Contributor status at the "Github" level will be individual-based. Contributors
34
+ will need to sign an IMS Global Contributor License Agreement (CLA) that grants
35
+ IMS Global a license to contributions. If you are interested in licensing the
36
+ IMS Global Caliper Analytics APIs/code libraries please email IMS Global
37
+ (mailto:licenses@imsglobal.org).
15
38
 
39
+ IMS Caliper is free software: you can redistribute it and/or modify it under
40
+ the terms of the GNU Lesser General Public License as published by the Free
41
+ Software Foundation, version 3 of the License.
42
+
43
+ IMS Caliper is distributed in the hope that it will be useful, but WITHOUT ANY
44
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
45
+ PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
46
+ details.
47
+
48
+ You should have received a copy of the GNU Lesser General Public License along
49
+ with this program. If not, see http://www.gnu.org/licenses/.
data/README.md CHANGED
@@ -13,7 +13,7 @@ To set up dev environment and run specs
13
13
  #### _Note_
14
14
  To run specs, you need to clone caliper-common-fixtures at the same level as caliper-ruby. Then please create a symlink similar to
15
15
 
16
- ➜ caliper-ruby git:(master) ln -s ../caliper-common-fixtures/src/test/resources/fixtures ./spec/fixtures
16
+ ➜ caliper-ruby git:(master) ln -s ../../caliper-common-fixtures/src/test/resources/fixtures ./spec/fixtures
17
17
 
18
18
  ## generate the Ruby Gem
19
19
 
@@ -21,4 +21,4 @@ gem build caliper.gemspec
21
21
 
22
22
  ### Use Ruby Style Guide:
23
23
  https://github.com/styleguide/ruby
24
- https://github.com/bbatsov/ruby-style-guide
24
+ https://github.com/bbatsov/ruby-style-guide
@@ -1,3 +1,23 @@
1
+ ##
2
+ # This file is part of IMS Caliper Analytics™ and is licensed to
3
+ # IMS Global Learning Consortium, Inc. (http://www.imsglobal.org)
4
+ # under one or more contributor license agreements. See the NOTICE
5
+ # file distributed with this work for additional information.
6
+ #
7
+ # IMS Caliper is free software: you can redistribute it and/or modify it under
8
+ # the terms of the GNU Lesser General Public License as published by the Free
9
+ # Software Foundation, version 3 of the License.
10
+ #
11
+ # IMS Caliper is distributed in the hope that it will be useful, but WITHOUT
12
+ # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
13
+ # A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public License along
16
+ # with this program. If not, see http://www.gnu.org/licenses/.
17
+
18
+ #
19
+ # Defaults
20
+ #
1
21
  module Caliper
2
22
  class Defaults
3
23
  HOST = "http://dev-null.comt"
@@ -5,4 +25,4 @@ module Caliper
5
25
  SO_TIMEOUT = 10000
6
26
  CONNECTION_REQUEST_TIMEOUT = 10000
7
27
  end
8
- end
28
+ end
@@ -0,0 +1,37 @@
1
+ ##
2
+ # This file is part of IMS Caliper Analytics™ and is licensed to
3
+ # IMS Global Learning Consortium, Inc. (http://www.imsglobal.org)
4
+ # under one or more contributor license agreements. See the NOTICE
5
+ # file distributed with this work for additional information.
6
+ #
7
+ # IMS Caliper is free software: you can redistribute it and/or modify it under
8
+ # the terms of the GNU Lesser General Public License as published by the Free
9
+ # Software Foundation, version 3 of the License.
10
+ #
11
+ # IMS Caliper is distributed in the hope that it will be useful, but WITHOUT
12
+ # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
13
+ # A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public License along
16
+ # with this program. If not, see http://www.gnu.org/licenses/.
17
+
18
+ require_relative '../entity'
19
+ require_relative '../w3c/organization'
20
+
21
+ #
22
+ # W3C Organization
23
+ #
24
+ module Caliper
25
+ module Entities
26
+ module Agent
27
+ class Organization < Entity
28
+ include Caliper::Entities::W3c::Organization
29
+
30
+ def initialize
31
+ super
32
+ @type = EntityType::ORGANIZATION
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,38 @@
1
+ ##
2
+ # This file is part of IMS Caliper Analytics™ and is licensed to
3
+ # IMS Global Learning Consortium, Inc. (http://www.imsglobal.org)
4
+ # under one or more contributor license agreements. See the NOTICE
5
+ # file distributed with this work for additional information.
6
+ #
7
+ # IMS Caliper is free software: you can redistribute it and/or modify it under
8
+ # the terms of the GNU Lesser General Public License as published by the Free
9
+ # Software Foundation, version 3 of the License.
10
+ #
11
+ # IMS Caliper is distributed in the hope that it will be useful, but WITHOUT
12
+ # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
13
+ # A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public License along
16
+ # with this program. If not, see http://www.gnu.org/licenses/.
17
+
18
+ require_relative '../entity'
19
+ require_relative '../foaf/agent.rb'
20
+
21
+ #
22
+ # An FOAF LIS Person
23
+ # @extends Agent
24
+ #
25
+ module Caliper
26
+ module Entities
27
+ module Agent
28
+ class Person < Entity
29
+ include Caliper::Entities::FOAF::Agent
30
+
31
+ def initialize
32
+ super
33
+ @type = EntityType::PERSON
34
+ end
35
+ end
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,39 @@
1
+ ##
2
+ # This file is part of IMS Caliper Analytics™ and is licensed to
3
+ # IMS Global Learning Consortium, Inc. (http://www.imsglobal.org)
4
+ # under one or more contributor license agreements. See the NOTICE
5
+ # file distributed with this work for additional information.
6
+ #
7
+ # IMS Caliper is free software: you can redistribute it and/or modify it under
8
+ # the terms of the GNU Lesser General Public License as published by the Free
9
+ # Software Foundation, version 3 of the License.
10
+ #
11
+ # IMS Caliper is distributed in the hope that it will be useful, but WITHOUT
12
+ # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
13
+ # A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public License along
16
+ # with this program. If not, see http://www.gnu.org/licenses/.
17
+
18
+ require_relative '../entity'
19
+ require_relative '../foaf/agent'
20
+ require_relative '../schemadotorg/software_application'
21
+
22
+ #
23
+ # Software Application (from schema.org)
24
+ #
25
+ module Caliper
26
+ module Entities
27
+ module Agent
28
+ class SoftwareApplication < Entity
29
+ include Caliper::Entities::FOAF::Agent,
30
+ Caliper::Entities::SchemaDotOrg::SoftwareApplication
31
+
32
+ def initialize()
33
+ super
34
+ @type=EntityType::SOFTWARE_APPLICATION
35
+ end
36
+ end
37
+ end
38
+ end
39
+ end
@@ -1,18 +1,29 @@
1
- require_relative '../../entities/entity'
2
- require_relative '../../entities/schemadotorg/thing'
3
-
1
+ ##
2
+ # This file is part of IMS Caliper Analytics™ and is licensed to
3
+ # IMS Global Learning Consortium, Inc. (http://www.imsglobal.org)
4
+ # under one or more contributor license agreements. See the NOTICE
5
+ # file distributed with this work for additional information.
6
+ #
7
+ # IMS Caliper is free software: you can redistribute it and/or modify it under
8
+ # the terms of the GNU Lesser General Public License as published by the Free
9
+ # Software Foundation, version 3 of the License.
4
10
  #
5
- #
6
- # @copyright @copyright ©2013 IMS Global Learning Consortium, Inc. All Rights Reserved.
7
- # @license For license information contact, info@imsglobal.org
11
+ # IMS Caliper is distributed in the hope that it will be useful, but WITHOUT
12
+ # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
13
+ # A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
8
14
  #
15
+ # You should have received a copy of the GNU Lesser General Public License along
16
+ # with this program. If not, see http://www.gnu.org/licenses/.
17
+
18
+ require_relative '../entity'
19
+ require_relative '../generatable'
20
+
9
21
  #
10
- # Annotation Entity
22
+ # Annotation entity.
11
23
  #
12
24
  module Caliper
13
25
  module Entities
14
26
  module Annotation
15
-
16
27
  module AnnotationType
17
28
  ANNOTATION = "http://purl.imsglobal.org/caliper/v1/Annotation"
18
29
  BOOKMARK_ANNOTATION = "http://purl.imsglobal.org/caliper/v1/BookmarkAnnotation"
@@ -23,7 +34,7 @@ module Caliper
23
34
 
24
35
  ## implement the interface Thing
25
36
  class Annotation < Entity
26
- include Caliper::Entities::SchemaDotOrg::Thing
37
+ include Caliper::Entities::Generatable
27
38
 
28
39
  attr_accessor :annotated
29
40
 
@@ -33,7 +44,6 @@ module Caliper
33
44
  @annotated = nil
34
45
  end
35
46
  end
36
-
37
47
  end
38
48
  end
39
- end
49
+ end
@@ -1,17 +1,28 @@
1
- require_relative 'annotation'
2
-
1
+ ##
2
+ # This file is part of IMS Caliper Analytics™ and is licensed to
3
+ # IMS Global Learning Consortium, Inc. (http://www.imsglobal.org)
4
+ # under one or more contributor license agreements. See the NOTICE
5
+ # file distributed with this work for additional information.
6
+ #
7
+ # IMS Caliper is free software: you can redistribute it and/or modify it under
8
+ # the terms of the GNU Lesser General Public License as published by the Free
9
+ # Software Foundation, version 3 of the License.
3
10
  #
4
- #
5
- # @copyright @copyright ©2013 IMS Global Learning Consortium, Inc. All Rights Reserved.
6
- # @license For license information contact, info@imsglobal.org
11
+ # IMS Caliper is distributed in the hope that it will be useful, but WITHOUT
12
+ # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
13
+ # A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
7
14
  #
15
+ # You should have received a copy of the GNU Lesser General Public License along
16
+ # with this program. If not, see http://www.gnu.org/licenses/.
17
+
18
+ require_relative './annotation'
19
+
8
20
  #
9
- # Bookmark Annotation Entity
21
+ # Bookmark Annotation entity.
10
22
  #
11
23
  module Caliper
12
24
  module Entities
13
25
  module Annotation
14
-
15
26
  class BookmarkAnnotation < Annotation
16
27
  attr_accessor :bookmarkNotes
17
28
 
@@ -20,8 +31,7 @@ module Caliper
20
31
  @type = AnnotationType::BOOKMARK_ANNOTATION
21
32
  @bookmarkNotes = nil
22
33
  end
23
-
24
34
  end
25
35
  end
26
36
  end
27
- end
37
+ end
@@ -1,12 +1,24 @@
1
- require_relative 'annotation'
2
-
1
+ ##
2
+ # This file is part of IMS Caliper Analytics™ and is licensed to
3
+ # IMS Global Learning Consortium, Inc. (http://www.imsglobal.org)
4
+ # under one or more contributor license agreements. See the NOTICE
5
+ # file distributed with this work for additional information.
3
6
  #
7
+ # IMS Caliper is free software: you can redistribute it and/or modify it under
8
+ # the terms of the GNU Lesser General Public License as published by the Free
9
+ # Software Foundation, version 3 of the License.
4
10
  #
5
- # @copyright @copyright ©2013 IMS Global Learning Consortium, Inc. All Rights Reserved.
6
- # @license For license information contact, info@imsglobal.org
11
+ # IMS Caliper is distributed in the hope that it will be useful, but WITHOUT
12
+ # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
13
+ # A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
7
14
  #
15
+ # You should have received a copy of the GNU Lesser General Public License along
16
+ # with this program. If not, see http://www.gnu.org/licenses/.
17
+
18
+ require_relative './annotation'
19
+
8
20
  #
9
- # Hilight Annotation Entity
21
+ # Highlight Annotation entity.
10
22
  #
11
23
  module Caliper
12
24
  module Entities
@@ -14,7 +26,7 @@ module Caliper
14
26
 
15
27
  class HighlightAnnotation < Annotation
16
28
  attr_accessor :selectionText,
17
- :selection
29
+ :selection
18
30
 
19
31
  def initialize()
20
32
  super
@@ -22,8 +34,7 @@ module Caliper
22
34
  @selectionText = nil
23
35
  @selection = {}
24
36
  end
25
-
26
37
  end
27
38
  end
28
39
  end
29
- end
40
+ end