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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8a7c8e0f916fd670730f4f80e45f2742512420df
4
- data.tar.gz: e7d63ba37d98faf404e5c72ac14c100908b7b060
3
+ metadata.gz: b60d776a490207f14a58b13cb6a40db30c5e9656
4
+ data.tar.gz: ea080b36cb318753fd9585a26bcaf6dda969c84a
5
5
  SHA512:
6
- metadata.gz: 2f3e0c2432c9adb001fea9c19733fd0b07b29aad6c75baf858f05170a6449c6b7f627352bc23844df1029a13173693ec951f3f2c72c7eb0a2f6a18baf6cc1e16
7
- data.tar.gz: 2d27785cd4bf5e2f9893f44cf00dd1c77747bf2992f348990b8de6de592539f664ec3f4222445176897c87c6691dde944c7b3cdd1a95842cad9232ec9ec105ac
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
@@ -1,5 +1,5 @@
1
1
  module OsuCcScraper
2
- class Section < Struct.new(:subject_code, :course_number, :name, :term,
2
+ class Section < Struct.new(:subject_code, :course_number, :name, :term, :crn,
3
3
  :section, :instructor, :campus, :type, :status,
4
4
  :capacity, :current)
5
5
  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.0.0
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-03-03 00:00:00.000000000 Z
11
+ date: 2016-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oga