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.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/Gemfile.lock +13 -1
  4. data/VERSION +1 -1
  5. data/lib/tasks/grade.rake +5 -5
  6. metadata +16 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ec6b13148746487cc8e34d45d70599ff04536a6059e2930b335927968efd8b8a
4
- data.tar.gz: cc28a6e8dd8473de1f15ba0060594e1e9c55ca97829878224175305c17b5ffac
3
+ metadata.gz: ca530a6b168d51bb6af3ef07e150af9d99da3c9b6e07930e89d1130bfcafdec1
4
+ data.tar.gz: 1eea47abfc05bad7f62a929aa403e4bbc7b4c159c92bdb12a36677c75b344709
5
5
  SHA512:
6
- metadata.gz: 324a47dcdd6517e91ca3e2c50e8d9de6f86fd2b6e44c90d55890284437766b8c7ff8d976ab3d7f2dfe3ee34edd95988d37d8c83ab738b4966f831fe3e07329f2
7
- data.tar.gz: 65605cab0a3f94cb4463872ad9bbd144de91f5214ca8a654594420fe718b09b5c2fd35137c30e69fddf9bb651dcf52cdac1ea5886f24bcc927bc2e70371c7646
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
- # gem "activesupport", ">= 2.3.5"
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.16.6
128
+ 1.17.2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4.pre.16
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 != "" && input_token != " " && !input_token.nil?
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 != "" && file_token != " " && !file_token.nil?
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 != "" && token != " " && !token.nil?
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.16
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-03 00:00:00.000000000 Z
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