grade_runner 0.0.3.pre.4.pls.work.3.2 → 0.0.3.pre.4.pls.work.3.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 +5 -0
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b780b45b00591f511a005d6506abe8c5312756278976cc6111e1330557491d97
4
- data.tar.gz: ee1850d1bad74adc453f2034ffaadeba264772c522c4c4a85f55d33a9963225d
3
+ metadata.gz: '090560dd5a4881e87921401028494680336569b8fc9dc3b17ea36c55cbf22195'
4
+ data.tar.gz: f6167abb2b728eeb8228c13e754b497442a7f9939a8ba35ec72360dba9ab222b
5
5
  SHA512:
6
- metadata.gz: 235fc9117365174a33541c3b364dbe4c0349a9b4aaacb68eeab41c95624e37e2071ea08a0bc817e28d1c79b80d6750d1557d2cb08dc39d21e9cb4115a3fa981f
7
- data.tar.gz: cdfea981c8a12065a3b558347fa97510a3fffd10174baa9583bbdc4ca6e9246243e386631238221f43a09b0b6a4a7309b2e742969aa96f5c84588ab90f527669
6
+ metadata.gz: 897dd67127ced4ab11ee2d2af4b019ed5e2339cc22fb292441c56e27a76ee90fccb664d6f63048a05b879a8ae0563537b9af259def4cb6f44ad98e7fe5dd46fb
7
+ data.tar.gz: 22dc23122a8f5a7442256344e42c771199814ce93b814c1ca0f79e551c006b613ab2c3e14fb93f4375fbd7006a1f23ec52c38d9318f424a54a1b939ae376535c
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3.pre.4.pls.work.3.2
1
+ 0.0.3.pre.4.pls.work.3.3
data/lib/tasks/grade.rake CHANGED
@@ -122,15 +122,20 @@ def is_valid_token?(root_url, token)
122
122
  return false unless token.is_a?(String) && token =~ /^[1-9A-Za-z][^OIl]{23}$/
123
123
  p "remove me later"
124
124
  url = "#{root_url}/submissions/validate_token?token=#{token}"
125
+ p "url: #{url}"
125
126
  uri = URI.parse(url)
127
+ p "uri: #{uri.to_s}"
126
128
  req = Net::HTTP::Get.new(uri, 'Content-Type' => 'application/json')
127
129
  res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http|
128
130
  http.request(req)
131
+ p "httpi: #{http.request.to_s}"
129
132
  end
130
133
  result = JSON.parse(res.body)
131
134
  p "Result: "
132
135
  p result
133
136
  result["success"]
134
137
  rescue => e
138
+ p "error!"
139
+ p e
135
140
  return false
136
141
  end
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.3.2
4
+ version: 0.0.3.pre.4.pls.work.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Raghu Betina