gmuday 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gmuday.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 54e6b3fc41e60a59a7ecf2ddf83c9af41570eb3e14cc301df279aa73a9b10912
|
4
|
+
data.tar.gz: cd978cafe510333ab18f270324ed58f220599c71d3d83764a4a015606c93eb81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f36bfa966ee192d7573ea33b50f822100b78a32741df1cefeb03717cd90fbad1692227a425eb8e24731f12382fe9c04652a437d0fe7c4db9fd4c788e91a080e2
|
7
|
+
data.tar.gz: a988b2b63515bdea5f3a357021263b63c0f6868b1d9ed826ca873b5496ffad3520ef4c871d341c5a837a8cc02554b2ec35700ea50eb5196e408bc8e992b94881
|
data/lib/gmuday.rb
CHANGED
@@ -142,7 +142,7 @@ module GmuDay
|
|
142
142
|
gmu_arr = self.calWeek(_whichWeek)
|
143
143
|
return self.parse(_file, _cl, gmu_arr[1], gmu_arr[2])
|
144
144
|
end
|
145
|
-
def self.show(file, whichWeek, cl)
|
145
|
+
def self.show(file, whichWeek, cl, init_type=nil)
|
146
146
|
self.top()
|
147
147
|
week = Array(0..6)
|
148
148
|
$courses = self.getWeekCourse(file, whichWeek, cl)
|
@@ -155,9 +155,9 @@ module GmuDay
|
|
155
155
|
end
|
156
156
|
info.each do |o|
|
157
157
|
ol = o[1]
|
158
|
+
l_raw = init_type == "w" ? o[3] : o[2]
|
159
|
+
l_show = l_raw.length > 10 ? l_raw[0,10] : l_raw
|
158
160
|
ol.each do |l|
|
159
|
-
l_raw = o[2]
|
160
|
-
l_show = l_raw.length > 10 ? l_raw[0,10] : l_raw
|
161
161
|
self.buildBlock((o[0] -1)*150, l*50, 150, 50, 1, l_show.center(20), (o[0] -1)*150, 50/3 + l*50, 12, 2)
|
162
162
|
end
|
163
163
|
end
|