gmuday 0.1.6 → 0.1.7

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 +4 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: debe0c92d51f980578399cd1f74effe86a8e4aa99943a7d08635df3679da8e73
4
- data.tar.gz: 81000d7af3b1fc4d88f1cd4157f2df41cf6dd825b8237db92c57b46956926ae5
3
+ metadata.gz: 4680149fcb2e933ed60b30e697b873c1b2b8a55dbc6c9d647ad3130a695552d9
4
+ data.tar.gz: 6db158d81cd889a5b15ef45c22d7cf0f0ddbb55eb40974957a91f4a7c9e13a57
5
5
  SHA512:
6
- metadata.gz: 95e2f4e8c4650af9a620fef0465e30f96c6ed423bdc38acecb800fa9f58bdd5658539bbbaefd05388f3c9bb4975f5259c048fee0145304a3f9eb2328dadd28b6
7
- data.tar.gz: b848e578c1cec0d41ce2c76735be78c5e319eeb1525f50c4541ca44267b56266bcd4c808022c450c183528e94d4a1863bdbb1c2cd9936e4890afebea3972e3d4
6
+ metadata.gz: 4668129b0d5fbc28a4af835a29294e5696309b690f43d44eaf780c8ff8f37eba9bdb6669ff57d90e10e64e68f25f207e730d0e6cd0d89d75ddd445a0415fc5d6
7
+ data.tar.gz: de675e7e806ae0f21a8c0013044cf2228874e46d73a8b0236c916c739d339e03a83a60c6c21bb917c12147d96d0eb72aac833dd5c950026338bf45e28f98e97b
data/lib/gmuday.rb CHANGED
@@ -182,6 +182,10 @@ module GmuDay
182
182
  t_raw = arr[2]
183
183
  t = self.tSplit(t_raw)
184
184
  wh = course['H']
185
+ if wh.include?('实验室')
186
+ wh.gsub!('实验室','')
187
+ wh.gsub!(/(|)/, '')
188
+ end
185
189
  return [w, t, lesson, wh]
186
190
  end
187
191
  def self.tSplit(str)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gmuday
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sirius2
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-21 00:00:00.000000000 Z
11
+ date: 2021-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: creek