grade_runner 0.0.3.pre.4.pls.work.3.4 → 0.0.3.pre.4.pls.work.3.5
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 +5 -0
- 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: a3070707b4f8ce0045216305de0ebd9368876774487688607f5e93b820843b6c
|
4
|
+
data.tar.gz: 556eda5ee02b146fdffe3ae46675e9a7cd03170be7c7f19dc0100eb6323a8b66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e98cde3b8ecfd9c32f91737e0ef1197594c4fc1043902483980514ad4d2beaecadcb937f3c852bf4203ea71c828ab5ebba3fe076c675b003cdf2d856b7e06ba0
|
7
|
+
data.tar.gz: 20a9a0e04210f4ae7844ae969858f8c051588131e5a25869098041a530b78e2248ee41ed94acbaf40637fd3610d8d8a4294df755331cffa209847fa7739240f5
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.3.pre.4.pls.work.3.
|
1
|
+
0.0.3.pre.4.pls.work.3.5
|
data/lib/tasks/grade.rake
CHANGED
@@ -58,6 +58,8 @@ namespace :grade do
|
|
58
58
|
|
59
59
|
if new_personal_access_token!= "" && is_valid_token?(submission_url, new_personal_access_token) == false
|
60
60
|
p "You entered: #{new_personal_access_token}"
|
61
|
+
p submission_url
|
62
|
+
p "---"
|
61
63
|
puts "Please enter valid token"
|
62
64
|
new_personal_access_token = ""
|
63
65
|
end
|
@@ -121,7 +123,10 @@ end
|
|
121
123
|
def is_valid_token?(root_url, token)
|
122
124
|
return false unless token.is_a?(String) && !(token =~ /^[1-9A-Za-z][^OIl]{23}$/).nil?
|
123
125
|
p "remove me later"
|
126
|
+
p token.is_a?(String) && !(token =~ /^[1-9A-Za-z][^OIl]{23}$/).nil?
|
127
|
+
p root_url
|
124
128
|
url = "#{root_url}/submissions/validate_token?token=#{token}"
|
129
|
+
p url
|
125
130
|
p "url: #{url}"
|
126
131
|
uri = URI.parse(url)
|
127
132
|
p "uri: #{uri.to_s}"
|