gmuday 0.1.5 → 0.1.6
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 +4 -4
- data/lib/gmuday.rb +3 -2
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: debe0c92d51f980578399cd1f74effe86a8e4aa99943a7d08635df3679da8e73
|
|
4
|
+
data.tar.gz: 81000d7af3b1fc4d88f1cd4157f2df41cf6dd825b8237db92c57b46956926ae5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 95e2f4e8c4650af9a620fef0465e30f96c6ed423bdc38acecb800fa9f58bdd5658539bbbaefd05388f3c9bb4975f5259c048fee0145304a3f9eb2328dadd28b6
|
|
7
|
+
data.tar.gz: b848e578c1cec0d41ce2c76735be78c5e319eeb1525f50c4541ca44267b56266bcd4c808022c450c183528e94d4a1863bdbb1c2cd9936e4890afebea3972e3d4
|
data/lib/gmuday.rb
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
#
|
|
4
4
|
|
|
5
5
|
require 'creek'
|
|
6
|
+
require 'ruby2d'
|
|
6
7
|
|
|
7
8
|
module GmuDay
|
|
8
9
|
|
|
@@ -150,8 +151,7 @@ module GmuDay
|
|
|
150
151
|
info = Array.new
|
|
151
152
|
|
|
152
153
|
$courses.each do |course|
|
|
153
|
-
|
|
154
|
-
info << ele
|
|
154
|
+
info << self.parse_week(course)
|
|
155
155
|
end
|
|
156
156
|
info.each do |o|
|
|
157
157
|
ol = o[1]
|
|
@@ -166,6 +166,7 @@ module GmuDay
|
|
|
166
166
|
def self.calWeek(i)
|
|
167
167
|
t = Time.new
|
|
168
168
|
tWeek = t.wday
|
|
169
|
+
tWeek = 7 if tWeek == 0
|
|
169
170
|
last = -1 * (tWeek - 1) + i * 7
|
|
170
171
|
future = 7 - tWeek + i * 7
|
|
171
172
|
return [tWeek, last, future]
|
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.
|
|
4
|
+
version: 0.1.6
|
|
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-
|
|
11
|
+
date: 2021-03-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: creek
|
|
@@ -38,7 +38,7 @@ dependencies:
|
|
|
38
38
|
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: 0.9.5
|
|
41
|
-
description: GMU
|
|
41
|
+
description: Show GMU courses of someday or someweek
|
|
42
42
|
email: xjy37.me@outlook.com
|
|
43
43
|
executables: []
|
|
44
44
|
extensions: []
|