grade_runner 0.0.4.pre.1 → 0.0.4.pre.11
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 +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: 8a4c43885d1985b02f47d454b4dc69602f89a2c932c8c02f981479bd4ffa0a3a
|
4
|
+
data.tar.gz: 52d21877c635c1c053a8c5344489167220a686802d7ffb0b29ada06487d85907
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0de95ef5817bf6a8c2ea79cbfd15aa34ca1f25ca4dbf1d784ef13b13cf3ef4cf04ea290007450a0a9aa93ac1124c9da8813ff62957d9e1b70ccf9cb535c9909f
|
7
|
+
data.tar.gz: 7900590c695a9cbb756a1054a1ae3932ab85bedabe7b31d317d4bc690b890dbf7e3b8173797fd423ead2bb226011b7d362515ff76cbb0ed4c850567b53076ca5
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.4.pre.
|
1
|
+
0.0.4.pre.11
|
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 != false && input_token != "" && input_token != " " && !input_token.nil? && input_token != [] && input_token != {}
|
34
|
+
if (input_token != false && input_token != "" && input_token != " " && !input_token.nil? && input_token != [] && input_token != {})
|
35
35
|
|
36
36
|
token = input_token
|
37
37
|
student_config["personal_access_token"] = input_token
|
@@ -47,7 +47,7 @@ namespace :grade do
|
|
47
47
|
print "> "
|
48
48
|
new_personal_access_token = $stdin.gets.chomp.strip
|
49
49
|
|
50
|
-
if new_personal_access_token!= "" &&
|
50
|
+
if ((new_personal_access_token!= "") && i(s_valid_token?(submission_url, new_personal_access_token) == false))
|
51
51
|
puts "Please enter valid token"
|
52
52
|
new_personal_access_token = ""
|
53
53
|
end
|
@@ -60,7 +60,7 @@ namespace :grade do
|
|
60
60
|
end
|
61
61
|
end
|
62
62
|
|
63
|
-
if token != false && token != "" && token != " " && !token.nil? && token != [] && token != {}
|
63
|
+
if (token != false && token != "" && token != " " && !token.nil? && token != [] && token != {})
|
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)
|