tableau 0.0.1 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tableau.rb +7 -0
- data/lib/tableau/uribuilder.rb +1 -1
- data/lib/tableau/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b4dc3f01c379d9bcafad1374e7090c6ff9215dd
|
4
|
+
data.tar.gz: d8a7f4c9698c20af11981dcdf3e4e561a1fcdb4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5aa1def9629c016e1a6a15454032202403abb0ac5be294a0bc786ce021273cec5acc6dafe9c78ef66620b1ee38a459b50de6f24ddd37f75eaf8d645c3286026
|
7
|
+
data.tar.gz: 59a06348470c02dbc4050f5c8c4f26a22ff2c0c8a2ea53d0731396661d66e37c97e33c2cab0f548764c2a0bf4bbe397ca65f99b465141fa4e6d860a88c3c0988
|
data/lib/tableau.rb
CHANGED
@@ -1,11 +1,13 @@
|
|
1
1
|
require 'json'
|
2
2
|
require 'tableau/timetable'
|
3
3
|
require 'tableau/moduleparser'
|
4
|
+
require 'tableau/timetableparser'
|
4
5
|
require 'tableau/tablebuilder'
|
5
6
|
|
6
7
|
module Tableau
|
7
8
|
class << self
|
8
9
|
|
10
|
+
# Generates the HTML version of a timetable of modules
|
9
11
|
def generate(table_id, module_codes)
|
10
12
|
timetable = Tableau::Timetable.new(table_id, module_codes)
|
11
13
|
builder = Tableau::TableBuilder.new(timetable)
|
@@ -17,5 +19,10 @@ module Tableau
|
|
17
19
|
Tableau::ModuleParser.new(module_code).module_info
|
18
20
|
end
|
19
21
|
|
22
|
+
# Returns a Timetable object with the core timetable parsed
|
23
|
+
def core_timetable(course_code)
|
24
|
+
Tableau::TimetableParser.new(course_code).parse
|
25
|
+
end
|
26
|
+
|
20
27
|
end
|
21
28
|
end
|
data/lib/tableau/uribuilder.rb
CHANGED
data/lib/tableau/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tableau
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Ryder
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
11
|
+
date: 2013-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|