grade_runner 0.0.4.pre.14 → 0.0.4.pre.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/tasks/grade.rake +2 -2
- 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: af3f8d17eef94c81960248e416026c8b7d9db0a06d8358d1746f24c5289f9d3d
|
4
|
+
data.tar.gz: 9554b2c2635bcdb6f5bafcc0d09d66f6ba7f8fc9406fddc5aa9205bc8c46140e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 556a694ae280916c88d6d995dc18588db647889a7eb014cdac7f2040060e378978c75984568e81bacb8096c1ab9e7697f745cc749d5012ceda3dc5494eebd3f0
|
7
|
+
data.tar.gz: 0f7e850cb469501569841c32cc8b877d8a80ec4ad13a9ed7e0bc365d5f6d5f5764d4d904bfbb24a46a6ec81a0604d593ce51cdee882181e11a6f72ada98c82c8
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.4.pre.
|
1
|
+
0.0.4.pre.15
|
data/lib/tasks/grade.rake
CHANGED
@@ -31,7 +31,7 @@ namespace :grade do
|
|
31
31
|
submission_url = "https://grades.firstdraft.com"
|
32
32
|
end
|
33
33
|
|
34
|
-
if input_token !=
|
34
|
+
if input_token != "" && input_token != " " && !input_token.nil?
|
35
35
|
|
36
36
|
token = input_token
|
37
37
|
student_config["personal_access_token"] = input_token
|
@@ -60,7 +60,7 @@ namespace :grade do
|
|
60
60
|
end
|
61
61
|
end
|
62
62
|
|
63
|
-
if token !=
|
63
|
+
if token != "" && token != " " && !token.nil?
|
64
64
|
if is_valid_token?(submission_url, token) == false
|
65
65
|
student_config["personal_access_token"] = nil
|
66
66
|
update_config_file(config_file_name, student_config)
|