thu_course 0.2.7 → 0.2.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b462997e2c9043ac12273b970fa518ec0629afaf
4
- data.tar.gz: 6be88d9cf73ea2630344e1df76ca5f5fd6257ce4
3
+ metadata.gz: 1890936ed79d9a6ad6fb1729a4ed99ff045d93bd
4
+ data.tar.gz: 2e852e7914b4e2f077b1e6b60eea271059c59707
5
5
  SHA512:
6
- metadata.gz: bcf6cbcc999d8907c31ebc735f00befc6716295dd85a990d53b03efc0c5f7c8f857e6220a958ee1df6828cde70d08a053c01cb298ade0c121e47e5ea84f19597
7
- data.tar.gz: d1ab597188142d81e2b5bc72b2673958c4ad4ab6f5d36f110cea6d2b10a350259f8eecdafbc84e5a7905f8c2bd1ce8758f125e5ed748ac2d91ca517352478ced
6
+ metadata.gz: 3f444e62280220e875ae73c385848d561d5ed8097560859160400e9b7e7d8a2871957744bc7e21cfb82c971fd21e1fa7073d178d6a571a1dcf269ae6b5e27aef
7
+ data.tar.gz: 906c7a741789fd10427a2f8cc2e58d0ad0ff28870d073e7b6e457cc72a3137ef0bc4ed6885e8778bd2026fc244bf2e54bc70b3e36cb101496f99bd8f2e9261b8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- thu_course (0.2.6)
4
+ thu_course (0.2.8)
5
5
  nokogiri (~> 1.6.0)
6
6
 
7
7
  GEM
@@ -1,3 +1,3 @@
1
1
  module ThuCourse
2
- VERSION = "0.2.7"
2
+ VERSION = "0.2.8"
3
3
  end
data/lib/thu_course.rb CHANGED
@@ -76,13 +76,14 @@ module ThuCourse
76
76
  end
77
77
  num = td_tag[5].text.strip.gsub(/\s+/, '')
78
78
  note = td_tag[6].text.strip
79
-
79
+ department = note.split('/').first.strip
80
80
  hash << { id: course_id,
81
81
  name: name,
82
82
  credit: credit,
83
83
  date_text: date_text,
84
84
  date: date,
85
85
  teacher: teacher,
86
+ department: department,
86
87
  num: num,
87
88
  note: note }
88
89
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thu_course
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - herber523