grade_runner 0.0.4.pre.17 → 0.0.4.pre.18

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 +0 -12
  4. data/VERSION +1 -1
  5. data/lib/tasks/grade.rake +3 -5
  6. metadata +1 -15
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ca530a6b168d51bb6af3ef07e150af9d99da3c9b6e07930e89d1130bfcafdec1
4
- data.tar.gz: 1eea47abfc05bad7f62a929aa403e4bbc7b4c159c92bdb12a36677c75b344709
3
+ metadata.gz: 6ccab5338a138ebad9c82e7e9e278eb2bff48c3bb13e3ef16d0572210c89eab3
4
+ data.tar.gz: 0dbe59b5c70697f1c987c5c3dc1823f5789d9f4176c2d3529b85297f5cd03731
5
5
  SHA512:
6
- metadata.gz: 1a6687f02a90ce950c01f673e16f5a061e294ca6c82de57342ab156a64d99f99eb2830d5d010ba2a4c53556d54741260f2eba3b01a484b3945f587cf1ff9ef6c
7
- data.tar.gz: e3325faaa86d2dda10f08526e3b511fc630e6042b99af10b610444bddf9620e25514fde0528f8abf9cbbb62d95283b636fdb76db7de92e9ce30429acd1a33beb
6
+ metadata.gz: 5a00456902c65ab2aaa7171307fa3dbe6893b014ff838ebb12d4f0653372af4644f6ff5d79caf7bda715e3df39cdc39d5e2148f94ba91337e050d946d8d2b5b6
7
+ data.tar.gz: 4110ab2d464d8629add69e38504f22942d68685be7a8debd76aa1f5a18f257bbdce452523bbb9f1dbf81806fefafa190668ed64ad928409db5b2c63a1e737638
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,11 +1,6 @@
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)
9
4
  addressable (2.6.0)
10
5
  public_suffix (>= 2.0.2, < 4.0)
11
6
  binding_of_caller (0.8.0)
@@ -13,7 +8,6 @@ GEM
13
8
  builder (3.2.3)
14
9
  byebug (11.0.1)
15
10
  coderay (1.1.2)
16
- concurrent-ruby (1.1.5)
17
11
  debug_inspector (0.0.3)
18
12
  descendants_tracker (0.0.4)
19
13
  thread_safe (~> 0.3, >= 0.3.1)
@@ -30,8 +24,6 @@ GEM
30
24
  oauth2 (~> 1.0)
31
25
  hashie (3.6.0)
32
26
  highline (2.0.2)
33
- i18n (1.6.0)
34
- concurrent-ruby (~> 1.0)
35
27
  interception (0.5)
36
28
  json (1.8.6)
37
29
  juwelier (2.1.3)
@@ -47,7 +39,6 @@ GEM
47
39
  jwt (2.2.1)
48
40
  method_source (0.9.2)
49
41
  mini_portile2 (2.4.0)
50
- minitest (5.11.3)
51
42
  multi_json (1.13.1)
52
43
  multi_xml (0.6.0)
53
44
  multipart-post (2.1.1)
@@ -103,15 +94,12 @@ GEM
103
94
  simplecov-html (0.10.2)
104
95
  slop (3.6.0)
105
96
  thread_safe (0.3.6)
106
- tzinfo (1.2.5)
107
- thread_safe (~> 0.1)
108
97
  yard (0.9.19)
109
98
 
110
99
  PLATFORMS
111
100
  ruby
112
101
 
113
102
  DEPENDENCIES
114
- activesupport (>= 2.3.5)
115
103
  bundler (~> 1.0)
116
104
  juwelier (~> 2.1.0)
117
105
  pry (~> 0)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4.pre.17
1
+ 0.0.4.pre.18
data/lib/tasks/grade.rake CHANGED
@@ -1,8 +1,6 @@
1
1
  require 'yaml'
2
2
  require 'net/http'
3
3
  require "json"
4
- require 'active_support'
5
- require 'active_support/core_ext'
6
4
  require_relative "../grade_runner/runner"
7
5
 
8
6
  desc "Alias for \"grade:next\"."
@@ -33,11 +31,11 @@ namespace :grade do
33
31
  submission_url = "https://grades.firstdraft.com"
34
32
  end
35
33
 
36
- if input_token.present?
34
+ if !input_token.nil?
37
35
  token = input_token
38
36
  student_config["personal_access_token"] = input_token
39
37
  update_config_file(config_file_name, student_config)
40
- elsif input_token.nil? && file_token.present?
38
+ elsif input_token.nil? && !file_token.nil?
41
39
  token = file_token
42
40
  elsif input_token.nil? && file_token.nil?
43
41
  puts "Enter your access token for this project"
@@ -60,7 +58,7 @@ namespace :grade do
60
58
  end
61
59
  end
62
60
 
63
- if token.present?
61
+ if !token.nil?
64
62
  if is_valid_token?(submission_url, token) == false
65
63
  student_config["personal_access_token"] = nil
66
64
  update_config_file(config_file_name, student_config)
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.4.pre.17
4
+ version: 0.0.4.pre.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Raghu Betina
@@ -10,20 +10,6 @@ bindir: bin
10
10
  cert_chain: []
11
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
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: rspec
29
15
  requirement: !ruby/object:Gem::Requirement