ims_caliper 0.1.1
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 +15 -0
- data/Gemfile +13 -0
- data/Gemfile.lock +16 -0
- data/README.md +16 -0
- data/caliper.gemspec +26 -0
- data/config/locales/en.yml +86 -0
- data/lib/caliper/client.rb +33 -0
- data/lib/caliper/consumer/base.rb +46 -0
- data/lib/caliper/consumer/queue.rb +40 -0
- data/lib/caliper/consumer/socket.rb +132 -0
- data/lib/caliper/defaults.rb +8 -0
- data/lib/caliper/entities/annotation/annotation.rb +29 -0
- data/lib/caliper/entities/annotation/bookmark_annotation.rb +17 -0
- data/lib/caliper/entities/annotation/highlight_annotation.rb +18 -0
- data/lib/caliper/entities/annotation/shared_annotation.rb +18 -0
- data/lib/caliper/entities/annotation/tag_annotation.rb +17 -0
- data/lib/caliper/entities/annotation/text_position_selector.rb +14 -0
- data/lib/caliper/entities/digital_resource.rb +52 -0
- data/lib/caliper/entities/entity.rb +44 -0
- data/lib/caliper/entities/foaf/agent.rb +12 -0
- data/lib/caliper/entities/generatable.rb +9 -0
- data/lib/caliper/entities/learning_context.rb +21 -0
- data/lib/caliper/entities/lis/course_section.rb +18 -0
- data/lib/caliper/entities/lis/organization.rb +22 -0
- data/lib/caliper/entities/lis/person.rb +12 -0
- data/lib/caliper/entities/outcome/result.rb +23 -0
- data/lib/caliper/entities/reading/epub_chapter.rb +20 -0
- data/lib/caliper/entities/reading/epub_part.rb +20 -0
- data/lib/caliper/entities/reading/epub_sub_chapter.rb +20 -0
- data/lib/caliper/entities/reading/epub_volume.rb +20 -0
- data/lib/caliper/entities/reading/frame.rb +32 -0
- data/lib/caliper/entities/schemadotorg/audio_object.rb +15 -0
- data/lib/caliper/entities/schemadotorg/creative_work.rb +12 -0
- data/lib/caliper/entities/schemadotorg/image_object.rb +15 -0
- data/lib/caliper/entities/schemadotorg/media_object.rb +19 -0
- data/lib/caliper/entities/schemadotorg/software_application.rb +11 -0
- data/lib/caliper/entities/schemadotorg/thing.rb +9 -0
- data/lib/caliper/entities/schemadotorg/video_object.rb +15 -0
- data/lib/caliper/entities/schemadotorg/web_page.rb +11 -0
- data/lib/caliper/entities/session.rb +26 -0
- data/lib/caliper/entities/software_application.rb +19 -0
- data/lib/caliper/entities/targetable.rb +12 -0
- data/lib/caliper/entities/web_page.rb +13 -0
- data/lib/caliper/event/.shared.rb.swp +0 -0
- data/lib/caliper/event/annotation_event.rb +14 -0
- data/lib/caliper/event/event.rb +68 -0
- data/lib/caliper/event/media_event.rb +19 -0
- data/lib/caliper/event/navigation_event.rb +23 -0
- data/lib/caliper/event/outcome_event.rb +20 -0
- data/lib/caliper/event/session_event.rb +21 -0
- data/lib/caliper/event/view_event.rb +20 -0
- data/lib/caliper/options.rb +18 -0
- data/lib/caliper/profiles/annotation_profile.rb +61 -0
- data/lib/caliper/profiles/profile.rb +46 -0
- data/lib/caliper/profiles/reading_profile.rb +36 -0
- data/lib/caliper/profiles/session_profile.rb +29 -0
- data/lib/caliper/request/event_store_envelope.rb +9 -0
- data/lib/caliper/request/event_store_requestor.rb +41 -0
- data/lib/caliper/request/http_requestor.rb +42 -0
- data/lib/caliper/sensor.rb +37 -0
- data/lib/caliper/stats/atomic_wrapper.rb +86 -0
- data/lib/caliper/stats/statistic.rb +104 -0
- data/lib/caliper/stats/statistics.rb +45 -0
- data/lib/caliper/stats/statistics_map.rb +39 -0
- data/lib/caliper/validators/error_message.rb +43 -0
- data/lib/caliper/validators/event_validator.rb +37 -0
- data/lib/caliper/validators/event_validator_context.rb +16 -0
- data/lib/caliper/validators/property_type_check.rb +14 -0
- data/lib/caliper/validators/session_login_event_validator.rb +103 -0
- data/lib/caliper/validators/session_logout_event_validator.rb +102 -0
- data/lib/caliper/validators/time_check.rb +30 -0
- data/lib/caliper/version.rb +4 -0
- data/lib/caliper.rb +17 -0
- data/spec/lib/client_spec.rb +35 -0
- data/spec/lib/consumer/base_spec.rb +28 -0
- data/spec/lib/consumer/queue_spec.rb +16 -0
- data/spec/lib/event/annotation_spec.rb +12 -0
- data/spec/lib/event/bookmarked_spec.rb +17 -0
- data/spec/lib/event/commented_spec.rb +19 -0
- data/spec/lib/event/highlighted_spec.rb +18 -0
- data/spec/lib/event/navigation_spec.rb +15 -0
- data/spec/lib/event/shared_spec.rb +18 -0
- data/spec/lib/event/tagged_spec.rb +17 -0
- data/spec/lib/event/used_spec.rb +15 -0
- data/spec/lib/event/viewed_spec.rb +15 -0
- data/spec/spec_helper.rb +26 -0
- data/test/caliper/events/session_login_event_test.rb +58 -0
- data/test/caliper/events/session_logout_event_test.rb +55 -0
- data/test/caliper/events/session_timeout_event_test.rb +55 -0
- data/test/caliper/request/http_requestor_test.rb +59 -0
- data/test/caliper/test_event.rb +53 -0
- data/test/caliper/test_utils.rb +198 -0
- data/test/fixtures/caliper_session_login_event.json +71 -0
- data/test/fixtures/caliper_session_logout_event.json +52 -0
- data/test/fixtures/caliper_session_timeout_event.json +52 -0
- data/test/fixtures/event_store_payload.json +85 -0
- metadata +165 -0
metadata
ADDED
@@ -0,0 +1,165 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ims_caliper
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Anthus Williams
|
8
|
+
- Zhen Qian
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2015-02-18 00:00:00.000000000 Z
|
13
|
+
dependencies: []
|
14
|
+
description: This is the implementation of IMSGlobal Caliper in Ruby
|
15
|
+
email:
|
16
|
+
- aj@instructure.com
|
17
|
+
- zqian@umich.edu
|
18
|
+
executables: []
|
19
|
+
extensions: []
|
20
|
+
extra_rdoc_files: []
|
21
|
+
files:
|
22
|
+
- Gemfile
|
23
|
+
- Gemfile.lock
|
24
|
+
- README.md
|
25
|
+
- caliper.gemspec
|
26
|
+
- config/locales/en.yml
|
27
|
+
- lib/caliper.rb
|
28
|
+
- lib/caliper/client.rb
|
29
|
+
- lib/caliper/consumer/base.rb
|
30
|
+
- lib/caliper/consumer/queue.rb
|
31
|
+
- lib/caliper/consumer/socket.rb
|
32
|
+
- lib/caliper/defaults.rb
|
33
|
+
- lib/caliper/entities/annotation/annotation.rb
|
34
|
+
- lib/caliper/entities/annotation/bookmark_annotation.rb
|
35
|
+
- lib/caliper/entities/annotation/highlight_annotation.rb
|
36
|
+
- lib/caliper/entities/annotation/shared_annotation.rb
|
37
|
+
- lib/caliper/entities/annotation/tag_annotation.rb
|
38
|
+
- lib/caliper/entities/annotation/text_position_selector.rb
|
39
|
+
- lib/caliper/entities/digital_resource.rb
|
40
|
+
- lib/caliper/entities/entity.rb
|
41
|
+
- lib/caliper/entities/foaf/agent.rb
|
42
|
+
- lib/caliper/entities/generatable.rb
|
43
|
+
- lib/caliper/entities/learning_context.rb
|
44
|
+
- lib/caliper/entities/lis/course_section.rb
|
45
|
+
- lib/caliper/entities/lis/organization.rb
|
46
|
+
- lib/caliper/entities/lis/person.rb
|
47
|
+
- lib/caliper/entities/outcome/result.rb
|
48
|
+
- lib/caliper/entities/reading/epub_chapter.rb
|
49
|
+
- lib/caliper/entities/reading/epub_part.rb
|
50
|
+
- lib/caliper/entities/reading/epub_sub_chapter.rb
|
51
|
+
- lib/caliper/entities/reading/epub_volume.rb
|
52
|
+
- lib/caliper/entities/reading/frame.rb
|
53
|
+
- lib/caliper/entities/schemadotorg/audio_object.rb
|
54
|
+
- lib/caliper/entities/schemadotorg/creative_work.rb
|
55
|
+
- lib/caliper/entities/schemadotorg/image_object.rb
|
56
|
+
- lib/caliper/entities/schemadotorg/media_object.rb
|
57
|
+
- lib/caliper/entities/schemadotorg/software_application.rb
|
58
|
+
- lib/caliper/entities/schemadotorg/thing.rb
|
59
|
+
- lib/caliper/entities/schemadotorg/video_object.rb
|
60
|
+
- lib/caliper/entities/schemadotorg/web_page.rb
|
61
|
+
- lib/caliper/entities/session.rb
|
62
|
+
- lib/caliper/entities/software_application.rb
|
63
|
+
- lib/caliper/entities/targetable.rb
|
64
|
+
- lib/caliper/entities/web_page.rb
|
65
|
+
- lib/caliper/event/.shared.rb.swp
|
66
|
+
- lib/caliper/event/annotation_event.rb
|
67
|
+
- lib/caliper/event/event.rb
|
68
|
+
- lib/caliper/event/media_event.rb
|
69
|
+
- lib/caliper/event/navigation_event.rb
|
70
|
+
- lib/caliper/event/outcome_event.rb
|
71
|
+
- lib/caliper/event/session_event.rb
|
72
|
+
- lib/caliper/event/view_event.rb
|
73
|
+
- lib/caliper/options.rb
|
74
|
+
- lib/caliper/profiles/annotation_profile.rb
|
75
|
+
- lib/caliper/profiles/profile.rb
|
76
|
+
- lib/caliper/profiles/reading_profile.rb
|
77
|
+
- lib/caliper/profiles/session_profile.rb
|
78
|
+
- lib/caliper/request/event_store_envelope.rb
|
79
|
+
- lib/caliper/request/event_store_requestor.rb
|
80
|
+
- lib/caliper/request/http_requestor.rb
|
81
|
+
- lib/caliper/sensor.rb
|
82
|
+
- lib/caliper/stats/atomic_wrapper.rb
|
83
|
+
- lib/caliper/stats/statistic.rb
|
84
|
+
- lib/caliper/stats/statistics.rb
|
85
|
+
- lib/caliper/stats/statistics_map.rb
|
86
|
+
- lib/caliper/validators/error_message.rb
|
87
|
+
- lib/caliper/validators/event_validator.rb
|
88
|
+
- lib/caliper/validators/event_validator_context.rb
|
89
|
+
- lib/caliper/validators/property_type_check.rb
|
90
|
+
- lib/caliper/validators/session_login_event_validator.rb
|
91
|
+
- lib/caliper/validators/session_logout_event_validator.rb
|
92
|
+
- lib/caliper/validators/time_check.rb
|
93
|
+
- lib/caliper/version.rb
|
94
|
+
- spec/lib/client_spec.rb
|
95
|
+
- spec/lib/consumer/base_spec.rb
|
96
|
+
- spec/lib/consumer/queue_spec.rb
|
97
|
+
- spec/lib/event/annotation_spec.rb
|
98
|
+
- spec/lib/event/bookmarked_spec.rb
|
99
|
+
- spec/lib/event/commented_spec.rb
|
100
|
+
- spec/lib/event/highlighted_spec.rb
|
101
|
+
- spec/lib/event/navigation_spec.rb
|
102
|
+
- spec/lib/event/shared_spec.rb
|
103
|
+
- spec/lib/event/tagged_spec.rb
|
104
|
+
- spec/lib/event/used_spec.rb
|
105
|
+
- spec/lib/event/viewed_spec.rb
|
106
|
+
- spec/spec_helper.rb
|
107
|
+
- test/caliper/events/session_login_event_test.rb
|
108
|
+
- test/caliper/events/session_logout_event_test.rb
|
109
|
+
- test/caliper/events/session_timeout_event_test.rb
|
110
|
+
- test/caliper/request/http_requestor_test.rb
|
111
|
+
- test/caliper/test_event.rb
|
112
|
+
- test/caliper/test_utils.rb
|
113
|
+
- test/fixtures/caliper_session_login_event.json
|
114
|
+
- test/fixtures/caliper_session_logout_event.json
|
115
|
+
- test/fixtures/caliper_session_timeout_event.json
|
116
|
+
- test/fixtures/event_store_payload.json
|
117
|
+
homepage: https://github.com/IMSGlobal/caliper-ruby
|
118
|
+
licenses:
|
119
|
+
- http://www.imsglobal.org/copyright.html
|
120
|
+
metadata: {}
|
121
|
+
post_install_message:
|
122
|
+
rdoc_options: []
|
123
|
+
require_paths:
|
124
|
+
- lib
|
125
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - ! '>='
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: '0'
|
130
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
131
|
+
requirements:
|
132
|
+
- - ! '>='
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
version: '0'
|
135
|
+
requirements: []
|
136
|
+
rubyforge_project:
|
137
|
+
rubygems_version: 2.2.2
|
138
|
+
signing_key:
|
139
|
+
specification_version: 4
|
140
|
+
summary: Caliper Sensor API
|
141
|
+
test_files:
|
142
|
+
- spec/lib/client_spec.rb
|
143
|
+
- spec/lib/consumer/base_spec.rb
|
144
|
+
- spec/lib/consumer/queue_spec.rb
|
145
|
+
- spec/lib/event/annotation_spec.rb
|
146
|
+
- spec/lib/event/bookmarked_spec.rb
|
147
|
+
- spec/lib/event/commented_spec.rb
|
148
|
+
- spec/lib/event/highlighted_spec.rb
|
149
|
+
- spec/lib/event/navigation_spec.rb
|
150
|
+
- spec/lib/event/shared_spec.rb
|
151
|
+
- spec/lib/event/tagged_spec.rb
|
152
|
+
- spec/lib/event/used_spec.rb
|
153
|
+
- spec/lib/event/viewed_spec.rb
|
154
|
+
- spec/spec_helper.rb
|
155
|
+
- test/caliper/events/session_login_event_test.rb
|
156
|
+
- test/caliper/events/session_logout_event_test.rb
|
157
|
+
- test/caliper/events/session_timeout_event_test.rb
|
158
|
+
- test/caliper/request/http_requestor_test.rb
|
159
|
+
- test/caliper/test_event.rb
|
160
|
+
- test/caliper/test_utils.rb
|
161
|
+
- test/fixtures/caliper_session_login_event.json
|
162
|
+
- test/fixtures/caliper_session_logout_event.json
|
163
|
+
- test/fixtures/caliper_session_timeout_event.json
|
164
|
+
- test/fixtures/event_store_payload.json
|
165
|
+
has_rdoc:
|