gmuday 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/gmuday.rb +3 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4680149fcb2e933ed60b30e697b873c1b2b8a55dbc6c9d647ad3130a695552d9
4
- data.tar.gz: 6db158d81cd889a5b15ef45c22d7cf0f0ddbb55eb40974957a91f4a7c9e13a57
3
+ metadata.gz: 54e6b3fc41e60a59a7ecf2ddf83c9af41570eb3e14cc301df279aa73a9b10912
4
+ data.tar.gz: cd978cafe510333ab18f270324ed58f220599c71d3d83764a4a015606c93eb81
5
5
  SHA512:
6
- metadata.gz: 4668129b0d5fbc28a4af835a29294e5696309b690f43d44eaf780c8ff8f37eba9bdb6669ff57d90e10e64e68f25f207e730d0e6cd0d89d75ddd445a0415fc5d6
7
- data.tar.gz: de675e7e806ae0f21a8c0013044cf2228874e46d73a8b0236c916c739d339e03a83a60c6c21bb917c12147d96d0eb72aac833dd5c950026338bf45e28f98e97b
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gmuday
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sirius2