grade_runner 0.0.3.pre.4.pls.work.2 → 0.0.3.pre.4.pls.work.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/tasks/grade.rake +3 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d40727a91f52d68be385911dd1770240d0e73fbd1e04e975293d52e9167f8a13
4
- data.tar.gz: 57636752c48f4b5d9082fd0e0ab9119e466bad1cfcbe7e15e03fa78dd3260477
3
+ metadata.gz: e9b4cb69c976110ffafae6eeaebee2656d364263febef882bdf5dd2e6f47ffb3
4
+ data.tar.gz: d140cafc72352c27f98996e51e08256a2ce1470a5b5133397b7beea77ab1cab5
5
5
  SHA512:
6
- metadata.gz: 99764c31e4a6a9ccf11370496cb35ca240fb43069f06d88aa40547ff6da035600737ba099f19481bbdf84f84d363703e41e3ac1b41022d63e5d328d27626f1c7
7
- data.tar.gz: dd84da4c11fc666acfe948655f2b748a97a63a85b7096b6f45656ccafff8365bc29a0c758f7672cc9481b35789c8ff2855874614aff55cf33ad124ad3404f9e1
6
+ metadata.gz: 702be470e2fbf06f17db9b4b8e57b2e61370e7b0db3e85d276557dd298bb231d35992822c8fb9ae5d2e3f9b1aa72de85f9e0b5d62d295ec8b0101d5eaafd8e20
7
+ data.tar.gz: 2da08e5a886073939875bff42902ca68103615e86477a96928c59c97fb6f16c91e956f3d6288e0654ad94a4a1bac7b709971d4bc488e05a658eb5cf88e348070
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3.pre.4.pls.work.2
1
+ 0.0.3.pre.4.pls.work.3
data/lib/tasks/grade.rake CHANGED
@@ -35,7 +35,7 @@ namespace :grade do
35
35
  !input_token.nil? &&
36
36
  input_token != [] &&
37
37
  input_token != {}
38
-
38
+
39
39
  token = input_token
40
40
  student_config["personal_access_token"] = input_token
41
41
  update_config_file(config_file_name, student_config)
@@ -57,6 +57,7 @@ namespace :grade do
57
57
  new_personal_access_token = $stdin.gets.chomp.strip
58
58
 
59
59
  if new_personal_access_token!= "" && is_valid_token?(submission_url, new_personal_access_token) == false
60
+ p "You entered: #{new_personal_access_token}"
60
61
  puts "Please enter valid token"
61
62
  new_personal_access_token = ""
62
63
  end
@@ -119,6 +120,7 @@ end
119
120
 
120
121
  def is_valid_token?(root_url, token)
121
122
  return false unless token.is_a?(String) && token =~ /^[1-9A-Za-z][^OIl]{23}$/
123
+ p "remove me later"
122
124
  url = "#{root_url}/submissions/validate_token?token=#{token}"
123
125
  uri = URI.parse(url)
124
126
  req = Net::HTTP::Get.new(uri, 'Content-Type' => 'application/json')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grade_runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3.pre.4.pls.work.2
4
+ version: 0.0.3.pre.4.pls.work.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Raghu Betina