IVLE 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. data/.gitignore +4 -0
  2. data/Gemfile +4 -0
  3. data/IVLE.gemspec +29 -0
  4. data/LICENSE +7 -0
  5. data/README.md +61 -0
  6. data/Rakefile +1 -0
  7. data/config/settings.yml +2 -0
  8. data/doc/Fixtures.html +167 -0
  9. data/doc/Fixtures/IVLE.html +213 -0
  10. data/doc/Gemfile.html +133 -0
  11. data/doc/IVLE.html +278 -0
  12. data/doc/IVLE/API.html +424 -0
  13. data/doc/IVLE/Announcement.html +309 -0
  14. data/doc/IVLE/Community.html +1305 -0
  15. data/doc/IVLE/Consultation.html +342 -0
  16. data/doc/IVLE/DeltaDatasets.html +213 -0
  17. data/doc/IVLE/Forum.html +533 -0
  18. data/doc/IVLE/Gradebook.html +213 -0
  19. data/doc/IVLE/IVLEModule.html +567 -0
  20. data/doc/IVLE/IVLENews.html +213 -0
  21. data/doc/IVLE/LibraryEReserves.html +245 -0
  22. data/doc/IVLE/Login.html +309 -0
  23. data/doc/IVLE/MyOrganizer.html +520 -0
  24. data/doc/IVLE/OpenWebcastLectures.html +247 -0
  25. data/doc/IVLE/Poll.html +309 -0
  26. data/doc/IVLE/Profile.html +213 -0
  27. data/doc/IVLE/RostersAndGroups.html +676 -0
  28. data/doc/IVLE/StudentEvents.html +378 -0
  29. data/doc/IVLE/Timetable.html +309 -0
  30. data/doc/IVLE/Webcast.html +247 -0
  31. data/doc/IVLE/Workbin.html +245 -0
  32. data/doc/Object.html +185 -0
  33. data/doc/Rakefile.html +131 -0
  34. data/doc/created.rid +26 -0
  35. data/doc/images/add.png +0 -0
  36. data/doc/images/brick.png +0 -0
  37. data/doc/images/brick_link.png +0 -0
  38. data/doc/images/bug.png +0 -0
  39. data/doc/images/bullet_black.png +0 -0
  40. data/doc/images/bullet_toggle_minus.png +0 -0
  41. data/doc/images/bullet_toggle_plus.png +0 -0
  42. data/doc/images/date.png +0 -0
  43. data/doc/images/delete.png +0 -0
  44. data/doc/images/find.png +0 -0
  45. data/doc/images/loadingAnimation.gif +0 -0
  46. data/doc/images/macFFBgHack.png +0 -0
  47. data/doc/images/package.png +0 -0
  48. data/doc/images/page_green.png +0 -0
  49. data/doc/images/page_white_text.png +0 -0
  50. data/doc/images/page_white_width.png +0 -0
  51. data/doc/images/plugin.png +0 -0
  52. data/doc/images/ruby.png +0 -0
  53. data/doc/images/tag_blue.png +0 -0
  54. data/doc/images/tag_green.png +0 -0
  55. data/doc/images/transparent.png +0 -0
  56. data/doc/images/wrench.png +0 -0
  57. data/doc/images/wrench_orange.png +0 -0
  58. data/doc/images/zoom.png +0 -0
  59. data/doc/index.html +126 -0
  60. data/doc/js/darkfish.js +155 -0
  61. data/doc/js/jquery.js +18 -0
  62. data/doc/js/navigation.js +142 -0
  63. data/doc/js/search.js +94 -0
  64. data/doc/js/search_index.js +1 -0
  65. data/doc/js/searcher.js +228 -0
  66. data/doc/rdoc.css +543 -0
  67. data/doc/table_of_contents.html +379 -0
  68. data/lib/IVLE.rb +133 -0
  69. data/lib/IVLE/api/announcement.rb +19 -0
  70. data/lib/IVLE/api/community.rb +174 -0
  71. data/lib/IVLE/api/consultation.rb +24 -0
  72. data/lib/IVLE/api/delta_datasets.rb +7 -0
  73. data/lib/IVLE/api/forum.rb +47 -0
  74. data/lib/IVLE/api/gradebook.rb +7 -0
  75. data/lib/IVLE/api/ivle_news.rb +7 -0
  76. data/lib/IVLE/api/library_ereserves.rb +11 -0
  77. data/lib/IVLE/api/login.rb +19 -0
  78. data/lib/IVLE/api/module.rb +53 -0
  79. data/lib/IVLE/api/my_organizer.rb +62 -0
  80. data/lib/IVLE/api/open_webcast_lectures.rb +13 -0
  81. data/lib/IVLE/api/poll.rb +19 -0
  82. data/lib/IVLE/api/profile.rb +7 -0
  83. data/lib/IVLE/api/rosters_and_groups.rb +78 -0
  84. data/lib/IVLE/api/student_events.rb +32 -0
  85. data/lib/IVLE/api/timetable.rb +19 -0
  86. data/lib/IVLE/api/webcast.rb +13 -0
  87. data/lib/IVLE/api/workbin.rb +11 -0
  88. data/lib/IVLE/version.rb +3 -0
  89. data/spec/api/api_spec.rb +34 -0
  90. data/spec/fixtures/api/login.html +11 -0
  91. data/spec/fixtures/api/modules.json +201 -0
  92. data/spec/fixtures/ivle.rb +7 -0
  93. data/spec/fixtures/modules.json +201 -0
  94. metadata +216 -0
@@ -0,0 +1,201 @@
1
+ {
2
+ "Results": [
3
+ {
4
+ "Announcements": [],
5
+ "Forums": [],
6
+ "Workbins": [],
7
+ "Webcasts": [],
8
+ "Gradebooks": [],
9
+ "Polls": [],
10
+ "ID": "3333333-0106-46c6-b488-5e6bf643df67",
11
+ "CourseLevel": "1",
12
+ "CourseCode": "NM3209",
13
+ "CourseName": "Creating Interactive Media",
14
+ "CourseDepartment": "",
15
+ "CourseSemester": "Semester 1",
16
+ "CourseAcadYear": "2013/2014",
17
+ "CourseOpenDate": "/Date(1369929600000+0800)/",
18
+ "CourseOpenDate_js": "2013-05-31T00:00:00",
19
+ "CourseCloseDate": "/Date(1386345540000+0800)/",
20
+ "CourseCloseDate_js": "2013-12-06T23:59:00",
21
+ "CourseMC": "4",
22
+ "isActive": "Y",
23
+ "Permission": "S",
24
+ "Creator": {
25
+ "UserID": "cnmmk",
26
+ "Name": "Kevin McGee",
27
+ "Email": null,
28
+ "Title": null,
29
+ "UserGuid": "333333-0795-4b24-8d31-ed00398f4180",
30
+ "AccountType": null
31
+ },
32
+ "hasGradebookItems": false,
33
+ "hasTimetableItems": true,
34
+ "hasGroupsItems": true,
35
+ "hasClassGroupsForSignUp": false,
36
+ "hasGuestRosterItems": false,
37
+ "hasClassRosterItems": true,
38
+ "hasWeblinkItems": true,
39
+ "hasLecturerItems": true,
40
+ "hasDescriptionItems": true,
41
+ "hasReadingItems": false,
42
+ "hasAnnouncementItems": false,
43
+ "hasProjectGroupItems": false,
44
+ "hasProjectGroupsForSignUp": false,
45
+ "hasConsultationItems": false,
46
+ "hasConsultationSlotsForSignUp": false,
47
+ "Badge": 0,
48
+ "BadgeAnnouncement": 0,
49
+ "WebLinks": [],
50
+ "Lecturers": [],
51
+ "Descriptions": [],
52
+ "ReadingFormatted": [],
53
+ "ReadingUnformatted": []
54
+ },
55
+ {
56
+ "Announcements": [],
57
+ "Forums": [],
58
+ "Workbins": [],
59
+ "Webcasts": [],
60
+ "Gradebooks": [],
61
+ "Polls": [],
62
+ "ID": "3333333-3456-4cf1-a6ee-bdc8afed01cb",
63
+ "CourseLevel": "1",
64
+ "CourseCode": "NM4227",
65
+ "CourseName": "PLAYABLE ART",
66
+ "CourseDepartment": "",
67
+ "CourseSemester": "Semester 1",
68
+ "CourseAcadYear": "2013/2014",
69
+ "CourseOpenDate": "/Date(1369152000000+0800)/",
70
+ "CourseOpenDate_js": "2013-05-22T00:00:00",
71
+ "CourseCloseDate": "/Date(1386345540000+0800)/",
72
+ "CourseCloseDate_js": "2013-12-06T23:59:00",
73
+ "CourseMC": "0",
74
+ "isActive": "Y",
75
+ "Permission": "S",
76
+ "Creator": {
77
+ "UserID": "cnmams",
78
+ "Name": "Anne Marie Schleiner",
79
+ "Email": null,
80
+ "Title": null,
81
+ "UserGuid": "3333333-2a80-4ed6-b44566-a221111a8e3",
82
+ "AccountType": null
83
+ },
84
+ "hasGradebookItems": false,
85
+ "hasTimetableItems": true,
86
+ "hasGroupsItems": true,
87
+ "hasClassGroupsForSignUp": false,
88
+ "hasGuestRosterItems": false,
89
+ "hasClassRosterItems": true,
90
+ "hasWeblinkItems": false,
91
+ "hasLecturerItems": true,
92
+ "hasDescriptionItems": true,
93
+ "hasReadingItems": false,
94
+ "hasAnnouncementItems": false,
95
+ "hasProjectGroupItems": false,
96
+ "hasProjectGroupsForSignUp": false,
97
+ "hasConsultationItems": false,
98
+ "hasConsultationSlotsForSignUp": false,
99
+ "Badge": 0,
100
+ "BadgeAnnouncement": 0,
101
+ "WebLinks": [],
102
+ "Lecturers": [],
103
+ "Descriptions": [],
104
+ "ReadingFormatted": [],
105
+ "ReadingUnformatted": []
106
+ },
107
+ {
108
+ "Announcements": [],
109
+ "Forums": [],
110
+ "Workbins": [],
111
+ "Webcasts": [],
112
+ "Gradebooks": [],
113
+ "Polls": [],
114
+ "ID": "00000000-0000-0000-0000-000000000000",
115
+ "CourseLevel": null,
116
+ "CourseCode": "CS4249",
117
+ "CourseName": "PHENOMENA AND THEORIES OF HUMAN-COMPUTER INTERACTION",
118
+ "CourseDepartment": null,
119
+ "CourseSemester": "1",
120
+ "CourseAcadYear": "2013/2014",
121
+ "CourseOpenDate": "/Date(1375452583402+0800)/",
122
+ "CourseOpenDate_js": "2013-08-02T22:09:43.4027946+08:00",
123
+ "CourseCloseDate": "/Date(1375452583402+0800)/",
124
+ "CourseCloseDate_js": "2013-08-02T22:09:43.4027946+08:00",
125
+ "CourseMC": null,
126
+ "isActive": "Y",
127
+ "Permission": "S",
128
+ "Creator": null,
129
+ "hasGradebookItems": false,
130
+ "hasTimetableItems": false,
131
+ "hasGroupsItems": false,
132
+ "hasClassGroupsForSignUp": false,
133
+ "hasGuestRosterItems": false,
134
+ "hasClassRosterItems": false,
135
+ "hasWeblinkItems": false,
136
+ "hasLecturerItems": false,
137
+ "hasDescriptionItems": false,
138
+ "hasReadingItems": false,
139
+ "hasAnnouncementItems": false,
140
+ "hasProjectGroupItems": false,
141
+ "hasProjectGroupsForSignUp": false,
142
+ "hasConsultationItems": false,
143
+ "hasConsultationSlotsForSignUp": false,
144
+ "Badge": 0,
145
+ "BadgeAnnouncement": 0,
146
+ "WebLinks": [],
147
+ "Lecturers": [],
148
+ "Descriptions": [],
149
+ "ReadingFormatted": [],
150
+ "ReadingUnformatted": []
151
+ },
152
+ {
153
+ "Announcements": [],
154
+ "Forums": [],
155
+ "Workbins": [],
156
+ "Webcasts": [],
157
+ "Gradebooks": [],
158
+ "Polls": [],
159
+ "ID": "00000000-0000-0000-0000-000000000000",
160
+ "CourseLevel": null,
161
+ "CourseCode": "CS4345",
162
+ "CourseName": "GENERAL-PURPOSE COMPUTATION ON GPU",
163
+ "CourseDepartment": null,
164
+ "CourseSemester": "1",
165
+ "CourseAcadYear": "2013/2014",
166
+ "CourseOpenDate": "/Date(1375452583402+0800)/",
167
+ "CourseOpenDate_js": "2013-08-02T22:09:43.4027946+08:00",
168
+ "CourseCloseDate": "/Date(1375452583402+0800)/",
169
+ "CourseCloseDate_js": "2013-08-02T22:09:43.4027946+08:00",
170
+ "CourseMC": null,
171
+ "isActive": "Y",
172
+ "Permission": "S",
173
+ "Creator": null,
174
+ "hasGradebookItems": false,
175
+ "hasTimetableItems": false,
176
+ "hasGroupsItems": false,
177
+ "hasClassGroupsForSignUp": false,
178
+ "hasGuestRosterItems": false,
179
+ "hasClassRosterItems": false,
180
+ "hasWeblinkItems": false,
181
+ "hasLecturerItems": false,
182
+ "hasDescriptionItems": false,
183
+ "hasReadingItems": false,
184
+ "hasAnnouncementItems": false,
185
+ "hasProjectGroupItems": false,
186
+ "hasProjectGroupsForSignUp": false,
187
+ "hasConsultationItems": false,
188
+ "hasConsultationSlotsForSignUp": false,
189
+ "Badge": 0,
190
+ "BadgeAnnouncement": 0,
191
+ "WebLinks": [],
192
+ "Lecturers": [],
193
+ "Descriptions": [],
194
+ "ReadingFormatted": [],
195
+ "ReadingUnformatted": []
196
+ }
197
+ ],
198
+ "Comments": "Valid login!",
199
+ "LastUpdate": "/Date(1375452581593+0800)/",
200
+ "LastUpdate_js": "2013-08-02T22:09:41.5931636+08:00"
201
+ }
metadata ADDED
@@ -0,0 +1,216 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: IVLE
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Ng Guoyou
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-08-04 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: faraday
16
+ requirement: &24432132 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *24432132
25
+ - !ruby/object:Gem::Dependency
26
+ name: faraday_middleware
27
+ requirement: &24431880 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *24431880
36
+ - !ruby/object:Gem::Dependency
37
+ name: mechanize
38
+ requirement: &24431628 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: *24431628
47
+ - !ruby/object:Gem::Dependency
48
+ name: nokogiri
49
+ requirement: &24431376 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :runtime
56
+ prerelease: false
57
+ version_requirements: *24431376
58
+ - !ruby/object:Gem::Dependency
59
+ name: rspec
60
+ requirement: &24431124 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ type: :development
67
+ prerelease: false
68
+ version_requirements: *24431124
69
+ - !ruby/object:Gem::Dependency
70
+ name: debugger
71
+ requirement: &24430872 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: *24430872
80
+ - !ruby/object:Gem::Dependency
81
+ name: fakeweb
82
+ requirement: &24430620 !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ type: :development
89
+ prerelease: false
90
+ version_requirements: *24430620
91
+ description: Basic Ruby gem wrapper for NUS IVLE LAPI interface. All methods are implemented
92
+ (but not tested).
93
+ email:
94
+ - fauxface+github@gmail.com
95
+ executables: []
96
+ extensions: []
97
+ extra_rdoc_files: []
98
+ files:
99
+ - .gitignore
100
+ - Gemfile
101
+ - IVLE.gemspec
102
+ - LICENSE
103
+ - README.md
104
+ - Rakefile
105
+ - config/settings.yml
106
+ - doc/Fixtures.html
107
+ - doc/Fixtures/IVLE.html
108
+ - doc/Gemfile.html
109
+ - doc/IVLE.html
110
+ - doc/IVLE/API.html
111
+ - doc/IVLE/Announcement.html
112
+ - doc/IVLE/Community.html
113
+ - doc/IVLE/Consultation.html
114
+ - doc/IVLE/DeltaDatasets.html
115
+ - doc/IVLE/Forum.html
116
+ - doc/IVLE/Gradebook.html
117
+ - doc/IVLE/IVLEModule.html
118
+ - doc/IVLE/IVLENews.html
119
+ - doc/IVLE/LibraryEReserves.html
120
+ - doc/IVLE/Login.html
121
+ - doc/IVLE/MyOrganizer.html
122
+ - doc/IVLE/OpenWebcastLectures.html
123
+ - doc/IVLE/Poll.html
124
+ - doc/IVLE/Profile.html
125
+ - doc/IVLE/RostersAndGroups.html
126
+ - doc/IVLE/StudentEvents.html
127
+ - doc/IVLE/Timetable.html
128
+ - doc/IVLE/Webcast.html
129
+ - doc/IVLE/Workbin.html
130
+ - doc/Object.html
131
+ - doc/Rakefile.html
132
+ - doc/created.rid
133
+ - doc/images/add.png
134
+ - doc/images/brick.png
135
+ - doc/images/brick_link.png
136
+ - doc/images/bug.png
137
+ - doc/images/bullet_black.png
138
+ - doc/images/bullet_toggle_minus.png
139
+ - doc/images/bullet_toggle_plus.png
140
+ - doc/images/date.png
141
+ - doc/images/delete.png
142
+ - doc/images/find.png
143
+ - doc/images/loadingAnimation.gif
144
+ - doc/images/macFFBgHack.png
145
+ - doc/images/package.png
146
+ - doc/images/page_green.png
147
+ - doc/images/page_white_text.png
148
+ - doc/images/page_white_width.png
149
+ - doc/images/plugin.png
150
+ - doc/images/ruby.png
151
+ - doc/images/tag_blue.png
152
+ - doc/images/tag_green.png
153
+ - doc/images/transparent.png
154
+ - doc/images/wrench.png
155
+ - doc/images/wrench_orange.png
156
+ - doc/images/zoom.png
157
+ - doc/index.html
158
+ - doc/js/darkfish.js
159
+ - doc/js/jquery.js
160
+ - doc/js/navigation.js
161
+ - doc/js/search.js
162
+ - doc/js/search_index.js
163
+ - doc/js/searcher.js
164
+ - doc/rdoc.css
165
+ - doc/table_of_contents.html
166
+ - lib/IVLE.rb
167
+ - lib/IVLE/api/announcement.rb
168
+ - lib/IVLE/api/community.rb
169
+ - lib/IVLE/api/consultation.rb
170
+ - lib/IVLE/api/delta_datasets.rb
171
+ - lib/IVLE/api/forum.rb
172
+ - lib/IVLE/api/gradebook.rb
173
+ - lib/IVLE/api/ivle_news.rb
174
+ - lib/IVLE/api/library_ereserves.rb
175
+ - lib/IVLE/api/login.rb
176
+ - lib/IVLE/api/module.rb
177
+ - lib/IVLE/api/my_organizer.rb
178
+ - lib/IVLE/api/open_webcast_lectures.rb
179
+ - lib/IVLE/api/poll.rb
180
+ - lib/IVLE/api/profile.rb
181
+ - lib/IVLE/api/rosters_and_groups.rb
182
+ - lib/IVLE/api/student_events.rb
183
+ - lib/IVLE/api/timetable.rb
184
+ - lib/IVLE/api/webcast.rb
185
+ - lib/IVLE/api/workbin.rb
186
+ - lib/IVLE/version.rb
187
+ - spec/api/api_spec.rb
188
+ - spec/fixtures/api/login.html
189
+ - spec/fixtures/api/modules.json
190
+ - spec/fixtures/ivle.rb
191
+ - spec/fixtures/modules.json
192
+ homepage: https://github.com/Fauxface/ivle
193
+ licenses: []
194
+ post_install_message:
195
+ rdoc_options: []
196
+ require_paths:
197
+ - lib
198
+ required_ruby_version: !ruby/object:Gem::Requirement
199
+ none: false
200
+ requirements:
201
+ - - ! '>='
202
+ - !ruby/object:Gem::Version
203
+ version: '0'
204
+ required_rubygems_version: !ruby/object:Gem::Requirement
205
+ none: false
206
+ requirements:
207
+ - - ! '>='
208
+ - !ruby/object:Gem::Version
209
+ version: '0'
210
+ requirements: []
211
+ rubyforge_project: IVLE
212
+ rubygems_version: 1.8.16
213
+ signing_key:
214
+ specification_version: 3
215
+ summary: Basic Ruby gem wrapper for NUS IVLE LAPI interface.
216
+ test_files: []