grade_runner 0.0.4.pre.16 → 0.0.4.pre.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +13 -1
- data/VERSION +1 -1
- data/lib/tasks/grade.rake +5 -5
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca530a6b168d51bb6af3ef07e150af9d99da3c9b6e07930e89d1130bfcafdec1
|
4
|
+
data.tar.gz: 1eea47abfc05bad7f62a929aa403e4bbc7b4c159c92bdb12a36677c75b344709
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a6687f02a90ce950c01f673e16f5a061e294ca6c82de57342ab156a64d99f99eb2830d5d010ba2a4c53556d54741260f2eba3b01a484b3945f587cf1ff9ef6c
|
7
|
+
data.tar.gz: e3325faaa86d2dda10f08526e3b511fc630e6042b99af10b610444bddf9620e25514fde0528f8abf9cbbb62d95283b636fdb76db7de92e9ce30429acd1a33beb
|
data/Gemfile
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
source "https://rubygems.org"
|
2
2
|
# Add dependencies required to use your gem here.
|
3
3
|
# Example:
|
4
|
-
|
4
|
+
gem "activesupport", ">= 2.3.5"
|
5
5
|
|
6
6
|
# Add dependencies to develop your gem here.
|
7
7
|
# Include everything needed to run rake, tests, features, etc.
|
data/Gemfile.lock
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
GEM
|
2
2
|
remote: https://rubygems.org/
|
3
3
|
specs:
|
4
|
+
activesupport (5.2.3)
|
5
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
6
|
+
i18n (>= 0.7, < 2)
|
7
|
+
minitest (~> 5.1)
|
8
|
+
tzinfo (~> 1.1)
|
4
9
|
addressable (2.6.0)
|
5
10
|
public_suffix (>= 2.0.2, < 4.0)
|
6
11
|
binding_of_caller (0.8.0)
|
@@ -8,6 +13,7 @@ GEM
|
|
8
13
|
builder (3.2.3)
|
9
14
|
byebug (11.0.1)
|
10
15
|
coderay (1.1.2)
|
16
|
+
concurrent-ruby (1.1.5)
|
11
17
|
debug_inspector (0.0.3)
|
12
18
|
descendants_tracker (0.0.4)
|
13
19
|
thread_safe (~> 0.3, >= 0.3.1)
|
@@ -24,6 +30,8 @@ GEM
|
|
24
30
|
oauth2 (~> 1.0)
|
25
31
|
hashie (3.6.0)
|
26
32
|
highline (2.0.2)
|
33
|
+
i18n (1.6.0)
|
34
|
+
concurrent-ruby (~> 1.0)
|
27
35
|
interception (0.5)
|
28
36
|
json (1.8.6)
|
29
37
|
juwelier (2.1.3)
|
@@ -39,6 +47,7 @@ GEM
|
|
39
47
|
jwt (2.2.1)
|
40
48
|
method_source (0.9.2)
|
41
49
|
mini_portile2 (2.4.0)
|
50
|
+
minitest (5.11.3)
|
42
51
|
multi_json (1.13.1)
|
43
52
|
multi_xml (0.6.0)
|
44
53
|
multipart-post (2.1.1)
|
@@ -94,12 +103,15 @@ GEM
|
|
94
103
|
simplecov-html (0.10.2)
|
95
104
|
slop (3.6.0)
|
96
105
|
thread_safe (0.3.6)
|
106
|
+
tzinfo (1.2.5)
|
107
|
+
thread_safe (~> 0.1)
|
97
108
|
yard (0.9.19)
|
98
109
|
|
99
110
|
PLATFORMS
|
100
111
|
ruby
|
101
112
|
|
102
113
|
DEPENDENCIES
|
114
|
+
activesupport (>= 2.3.5)
|
103
115
|
bundler (~> 1.0)
|
104
116
|
juwelier (~> 2.1.0)
|
105
117
|
pry (~> 0)
|
@@ -113,4 +125,4 @@ DEPENDENCIES
|
|
113
125
|
simplecov
|
114
126
|
|
115
127
|
BUNDLED WITH
|
116
|
-
1.
|
128
|
+
1.17.2
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.4.pre.
|
1
|
+
0.0.4.pre.17
|
data/lib/tasks/grade.rake
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
require 'yaml'
|
2
2
|
require 'net/http'
|
3
3
|
require "json"
|
4
|
+
require 'active_support'
|
5
|
+
require 'active_support/core_ext'
|
4
6
|
require_relative "../grade_runner/runner"
|
5
7
|
|
6
8
|
desc "Alias for \"grade:next\"."
|
@@ -31,13 +33,11 @@ namespace :grade do
|
|
31
33
|
submission_url = "https://grades.firstdraft.com"
|
32
34
|
end
|
33
35
|
|
34
|
-
if input_token
|
35
|
-
|
36
|
+
if input_token.present?
|
36
37
|
token = input_token
|
37
38
|
student_config["personal_access_token"] = input_token
|
38
39
|
update_config_file(config_file_name, student_config)
|
39
|
-
elsif input_token.nil? && file_token
|
40
|
-
|
40
|
+
elsif input_token.nil? && file_token.present?
|
41
41
|
token = file_token
|
42
42
|
elsif input_token.nil? && file_token.nil?
|
43
43
|
puts "Enter your access token for this project"
|
@@ -60,7 +60,7 @@ namespace :grade do
|
|
60
60
|
end
|
61
61
|
end
|
62
62
|
|
63
|
-
if token
|
63
|
+
if token.present?
|
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)
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grade_runner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.4.pre.
|
4
|
+
version: 0.0.4.pre.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Raghu Betina
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activesupport
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 2.3.5
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 2.3.5
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: rspec
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|