osu-cc-scraper 4.0.0 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/osu-cc-scraper/course.rb +5 -0
- data/lib/osu-cc-scraper/section.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: b60d776a490207f14a58b13cb6a40db30c5e9656
|
4
|
+
data.tar.gz: ea080b36cb318753fd9585a26bcaf6dda969c84a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e8008d496b712cefc3075567cba4f5aaee657be66f3d2e743cda5f9196b5b1a098dc2d73cca3dac5210453f81b639ee70eaca4549ffd87a41bf4897a505bab6
|
7
|
+
data.tar.gz: fbee83a71b53fcc68dd3e01eb884abac5f21da22834a975edb1874506457715e2ad9972991103603e1bc22f855048e5d99a57e1447abc624276fd9c663c21dbb
|
@@ -37,6 +37,7 @@ module OsuCcScraper
|
|
37
37
|
course_number,
|
38
38
|
name,
|
39
39
|
parse_term(row),
|
40
|
+
parse_crn(row),
|
40
41
|
parse_section(row),
|
41
42
|
parse_instructor(row),
|
42
43
|
parse_campus(row),
|
@@ -56,6 +57,10 @@ module OsuCcScraper
|
|
56
57
|
fetch_column(row, "td[position() = 1]")
|
57
58
|
end
|
58
59
|
|
60
|
+
def parse_crn(row)
|
61
|
+
fetch_column(row, "td[position() = 2]")
|
62
|
+
end
|
63
|
+
|
59
64
|
def parse_section(row)
|
60
65
|
fetch_column(row, "td[position() = 3]")
|
61
66
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: osu-cc-scraper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 5.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonah George
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oga
|