coursemology-evaluator 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.env +3 -3
- data/.gitignore +23 -23
- data/.hound.yml +8 -8
- data/.idea/Coursemology Evaluator.iml +8 -8
- data/.rspec +2 -2
- data/.rubocop.unhound.yml +109 -109
- data/.rubocop.yml +46 -46
- data/.travis.yml +17 -17
- data/Gemfile +4 -4
- data/Procfile +1 -1
- data/README.md +52 -52
- data/Rakefile +6 -6
- data/bin/evaluator +5 -5
- data/coursemology-evaluator.gemspec +38 -38
- data/lib/coursemology/evaluator.rb +41 -41
- data/lib/coursemology/evaluator/cli.rb +74 -74
- data/lib/coursemology/evaluator/client.rb +84 -84
- data/lib/coursemology/evaluator/docker_container.rb +79 -79
- data/lib/coursemology/evaluator/logging.rb +12 -12
- data/lib/coursemology/evaluator/logging/client_log_subscriber.rb +25 -25
- data/lib/coursemology/evaluator/logging/docker_log_subscriber.rb +21 -21
- data/lib/coursemology/evaluator/models.rb +7 -7
- data/lib/coursemology/evaluator/models/base.rb +50 -50
- data/lib/coursemology/evaluator/models/programming_evaluation.rb +55 -55
- data/lib/coursemology/evaluator/models/programming_evaluation/package.rb +12 -12
- data/lib/coursemology/evaluator/services.rb +6 -6
- data/lib/coursemology/evaluator/services/evaluate_programming_package_service.rb +151 -151
- data/lib/coursemology/evaluator/string_io.rb +14 -14
- data/lib/coursemology/evaluator/utils.rb +42 -42
- data/lib/coursemology/evaluator/version.rb +5 -5
- data/lib/coursemology/polyglot/extensions.rb +3 -3
- data/lib/coursemology/polyglot/extensions/language.rb +24 -24
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f414d5605ffb74fe31af8712a330c03e806e1c88
|
4
|
+
data.tar.gz: e3320a2d4272738ebe5df01d0dc3c6dfb14e929c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39b2249a592488edc2f81c8c571d43f4a1b1f440de923f41b802e84911e710f79c53a2cb96de967a3fce7514eb7e9e95fa1a38679985f32c3cb4a504f91755c3
|
7
|
+
data.tar.gz: e8181d35138d076698bbb2508a79d49a5f3e3754ae01315347f52d6b78952d867dafc344209509c395b3b75459d10058df7edc3c90324b7334df7ffc5b16fb9c
|
data/.env
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
HOST=http://localhost:3000
|
2
|
-
API_TOKEN=YOUR_TOKEN_HERE
|
3
|
-
API_USER_EMAIL=test@example.org
|
1
|
+
HOST=http://localhost:3000
|
2
|
+
API_TOKEN=YOUR_TOKEN_HERE
|
3
|
+
API_USER_EMAIL=test@example.org
|
data/.gitignore
CHANGED
@@ -1,23 +1,23 @@
|
|
1
|
-
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
|
2
|
-
#
|
3
|
-
# If you find yourself ignoring temporary files generated by your text editor
|
4
|
-
# or operating system, you probably want to add a global ignore instead:
|
5
|
-
# git config --global core.excludesfile '~/.gitignore_global'
|
6
|
-
|
7
|
-
# Ignore bundler config and gems.
|
8
|
-
/.bundle
|
9
|
-
/vendor/bundle
|
10
|
-
/Gemfile.lock
|
11
|
-
|
12
|
-
# Ignore user-specific Intellij project files
|
13
|
-
/.idea/dictionaries/*
|
14
|
-
/.idea/.rakeTasks
|
15
|
-
/.idea/.generators
|
16
|
-
/.idea/workspace.xml
|
17
|
-
|
18
|
-
# Ignore generated code coverage information
|
19
|
-
/spec/coverage/*
|
20
|
-
/coverage/*
|
21
|
-
|
22
|
-
# Ignore RSpec state
|
23
|
-
/spec/examples.txt
|
1
|
+
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
|
2
|
+
#
|
3
|
+
# If you find yourself ignoring temporary files generated by your text editor
|
4
|
+
# or operating system, you probably want to add a global ignore instead:
|
5
|
+
# git config --global core.excludesfile '~/.gitignore_global'
|
6
|
+
|
7
|
+
# Ignore bundler config and gems.
|
8
|
+
/.bundle
|
9
|
+
/vendor/bundle
|
10
|
+
/Gemfile.lock
|
11
|
+
|
12
|
+
# Ignore user-specific Intellij project files
|
13
|
+
/.idea/dictionaries/*
|
14
|
+
/.idea/.rakeTasks
|
15
|
+
/.idea/.generators
|
16
|
+
/.idea/workspace.xml
|
17
|
+
|
18
|
+
# Ignore generated code coverage information
|
19
|
+
/spec/coverage/*
|
20
|
+
/coverage/*
|
21
|
+
|
22
|
+
# Ignore RSpec state
|
23
|
+
/spec/examples.txt
|
data/.hound.yml
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
ruby:
|
2
|
-
config_file: .rubocop.yml
|
3
|
-
|
4
|
-
java_script:
|
5
|
-
config_file: .jshintrc
|
6
|
-
|
7
|
-
scss:
|
8
|
-
config_file: .scss-lint.yml
|
1
|
+
ruby:
|
2
|
+
config_file: .rubocop.yml
|
3
|
+
|
4
|
+
java_script:
|
5
|
+
config_file: .jshintrc
|
6
|
+
|
7
|
+
scss:
|
8
|
+
config_file: .scss-lint.yml
|
@@ -1,9 +1,9 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<module type="RUBY_MODULE" version="4">
|
3
|
-
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
4
|
-
<exclude-output />
|
5
|
-
<content url="file://$MODULE_DIR$" />
|
6
|
-
<orderEntry type="inheritedJdk" />
|
7
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
8
|
-
</component>
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<module type="RUBY_MODULE" version="4">
|
3
|
+
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
4
|
+
<exclude-output />
|
5
|
+
<content url="file://$MODULE_DIR$" />
|
6
|
+
<orderEntry type="inheritedJdk" />
|
7
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
8
|
+
</component>
|
9
9
|
</module>
|
data/.rspec
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
--color
|
2
|
-
--require spec_helper
|
1
|
+
--color
|
2
|
+
--require spec_helper
|
data/.rubocop.unhound.yml
CHANGED
@@ -1,109 +1,109 @@
|
|
1
|
-
Style/CollectionMethods:
|
2
|
-
Enabled: true
|
3
|
-
PreferredMethods:
|
4
|
-
reduce:
|
5
|
-
inject: 'reduce'
|
6
|
-
find:
|
7
|
-
detect: 'find'
|
8
|
-
|
9
|
-
Style/FileName:
|
10
|
-
Enabled: true
|
11
|
-
|
12
|
-
Style/GuardClause:
|
13
|
-
Enabled: true
|
14
|
-
|
15
|
-
Style/IfUnlessModifier:
|
16
|
-
Enabled: true
|
17
|
-
|
18
|
-
Style/PercentLiteralDelimiters:
|
19
|
-
Enabled: true
|
20
|
-
|
21
|
-
Style/SignalException:
|
22
|
-
Enabled: true
|
23
|
-
|
24
|
-
Style/SingleLineBlockParams:
|
25
|
-
Enabled: true
|
26
|
-
|
27
|
-
Style/SingleLineMethods:
|
28
|
-
Enabled: true
|
29
|
-
|
30
|
-
Style/TrailingCommaInArguments:
|
31
|
-
Enabled: true
|
32
|
-
|
33
|
-
Style/TrailingCommaInLiteral:
|
34
|
-
Enabled: true
|
35
|
-
|
36
|
-
Metrics/AbcSize:
|
37
|
-
Enabled: true
|
38
|
-
|
39
|
-
Metrics/ClassLength:
|
40
|
-
Enabled: true
|
41
|
-
|
42
|
-
Metrics/ModuleLength:
|
43
|
-
Enabled: true
|
44
|
-
|
45
|
-
Metrics/CyclomaticComplexity:
|
46
|
-
Enabled: true
|
47
|
-
|
48
|
-
Metrics/MethodLength:
|
49
|
-
Enabled: true
|
50
|
-
|
51
|
-
Metrics/ParameterLists:
|
52
|
-
Enabled: true
|
53
|
-
|
54
|
-
Metrics/PerceivedComplexity:
|
55
|
-
Enabled: true
|
56
|
-
|
57
|
-
Lint/AssignmentInCondition:
|
58
|
-
Enabled: true
|
59
|
-
|
60
|
-
Style/AccessorMethodName:
|
61
|
-
Enabled: true
|
62
|
-
|
63
|
-
Style/Alias:
|
64
|
-
Enabled: true
|
65
|
-
EnforcedStyle: prefer_alias_method
|
66
|
-
|
67
|
-
Style/Documentation:
|
68
|
-
Enabled: true
|
69
|
-
|
70
|
-
Style/DoubleNegation:
|
71
|
-
Enabled: true
|
72
|
-
|
73
|
-
Style/EachWithObject:
|
74
|
-
Enabled: true
|
75
|
-
|
76
|
-
Style/EmptyLiteral:
|
77
|
-
Enabled: true
|
78
|
-
|
79
|
-
Style/ModuleFunction:
|
80
|
-
Enabled: true
|
81
|
-
|
82
|
-
Style/OneLineConditional:
|
83
|
-
Enabled: true
|
84
|
-
|
85
|
-
Style/PerlBackrefs:
|
86
|
-
Enabled: true
|
87
|
-
|
88
|
-
Style/SpecialGlobalVars:
|
89
|
-
Enabled: true
|
90
|
-
|
91
|
-
Style/VariableInterpolation:
|
92
|
-
Enabled: true
|
93
|
-
|
94
|
-
Style/WhenThen:
|
95
|
-
Enabled: true
|
96
|
-
|
97
|
-
Lint/EachWithObjectArgument:
|
98
|
-
Enabled: true
|
99
|
-
|
100
|
-
Lint/HandleExceptions:
|
101
|
-
Enabled: true
|
102
|
-
|
103
|
-
Lint/LiteralInCondition:
|
104
|
-
Description: Checks of literals used in conditions.
|
105
|
-
Enabled: true
|
106
|
-
|
107
|
-
Lint/LiteralInInterpolation:
|
108
|
-
Description: Checks for literals used in interpolation.
|
109
|
-
Enabled: true
|
1
|
+
Style/CollectionMethods:
|
2
|
+
Enabled: true
|
3
|
+
PreferredMethods:
|
4
|
+
reduce:
|
5
|
+
inject: 'reduce'
|
6
|
+
find:
|
7
|
+
detect: 'find'
|
8
|
+
|
9
|
+
Style/FileName:
|
10
|
+
Enabled: true
|
11
|
+
|
12
|
+
Style/GuardClause:
|
13
|
+
Enabled: true
|
14
|
+
|
15
|
+
Style/IfUnlessModifier:
|
16
|
+
Enabled: true
|
17
|
+
|
18
|
+
Style/PercentLiteralDelimiters:
|
19
|
+
Enabled: true
|
20
|
+
|
21
|
+
Style/SignalException:
|
22
|
+
Enabled: true
|
23
|
+
|
24
|
+
Style/SingleLineBlockParams:
|
25
|
+
Enabled: true
|
26
|
+
|
27
|
+
Style/SingleLineMethods:
|
28
|
+
Enabled: true
|
29
|
+
|
30
|
+
Style/TrailingCommaInArguments:
|
31
|
+
Enabled: true
|
32
|
+
|
33
|
+
Style/TrailingCommaInLiteral:
|
34
|
+
Enabled: true
|
35
|
+
|
36
|
+
Metrics/AbcSize:
|
37
|
+
Enabled: true
|
38
|
+
|
39
|
+
Metrics/ClassLength:
|
40
|
+
Enabled: true
|
41
|
+
|
42
|
+
Metrics/ModuleLength:
|
43
|
+
Enabled: true
|
44
|
+
|
45
|
+
Metrics/CyclomaticComplexity:
|
46
|
+
Enabled: true
|
47
|
+
|
48
|
+
Metrics/MethodLength:
|
49
|
+
Enabled: true
|
50
|
+
|
51
|
+
Metrics/ParameterLists:
|
52
|
+
Enabled: true
|
53
|
+
|
54
|
+
Metrics/PerceivedComplexity:
|
55
|
+
Enabled: true
|
56
|
+
|
57
|
+
Lint/AssignmentInCondition:
|
58
|
+
Enabled: true
|
59
|
+
|
60
|
+
Style/AccessorMethodName:
|
61
|
+
Enabled: true
|
62
|
+
|
63
|
+
Style/Alias:
|
64
|
+
Enabled: true
|
65
|
+
EnforcedStyle: prefer_alias_method
|
66
|
+
|
67
|
+
Style/Documentation:
|
68
|
+
Enabled: true
|
69
|
+
|
70
|
+
Style/DoubleNegation:
|
71
|
+
Enabled: true
|
72
|
+
|
73
|
+
Style/EachWithObject:
|
74
|
+
Enabled: true
|
75
|
+
|
76
|
+
Style/EmptyLiteral:
|
77
|
+
Enabled: true
|
78
|
+
|
79
|
+
Style/ModuleFunction:
|
80
|
+
Enabled: true
|
81
|
+
|
82
|
+
Style/OneLineConditional:
|
83
|
+
Enabled: true
|
84
|
+
|
85
|
+
Style/PerlBackrefs:
|
86
|
+
Enabled: true
|
87
|
+
|
88
|
+
Style/SpecialGlobalVars:
|
89
|
+
Enabled: true
|
90
|
+
|
91
|
+
Style/VariableInterpolation:
|
92
|
+
Enabled: true
|
93
|
+
|
94
|
+
Style/WhenThen:
|
95
|
+
Enabled: true
|
96
|
+
|
97
|
+
Lint/EachWithObjectArgument:
|
98
|
+
Enabled: true
|
99
|
+
|
100
|
+
Lint/HandleExceptions:
|
101
|
+
Enabled: true
|
102
|
+
|
103
|
+
Lint/LiteralInCondition:
|
104
|
+
Description: Checks of literals used in conditions.
|
105
|
+
Enabled: true
|
106
|
+
|
107
|
+
Lint/LiteralInInterpolation:
|
108
|
+
Description: Checks for literals used in interpolation.
|
109
|
+
Enabled: true
|
data/.rubocop.yml
CHANGED
@@ -1,46 +1,46 @@
|
|
1
|
-
inherit_from:
|
2
|
-
- .rubocop.unhound.yml
|
3
|
-
|
4
|
-
AllCops:
|
5
|
-
Include:
|
6
|
-
- '**/Gemfile'
|
7
|
-
- '**/Rakefile'
|
8
|
-
Exclude:
|
9
|
-
- 'vendor/bundle/**/*'
|
10
|
-
TargetRubyVersion: 2.1
|
11
|
-
|
12
|
-
Metrics/LineLength:
|
13
|
-
Max: 100
|
14
|
-
|
15
|
-
Style/ClassAndModuleChildren:
|
16
|
-
EnforcedStyle: compact
|
17
|
-
|
18
|
-
Style/DotPosition:
|
19
|
-
EnforcedStyle: trailing
|
20
|
-
|
21
|
-
Style/Documentation:
|
22
|
-
Enabled: false
|
23
|
-
|
24
|
-
Style/IndentHash:
|
25
|
-
EnforcedStyle: consistent
|
26
|
-
|
27
|
-
Style/IfUnlessModifier:
|
28
|
-
MaxLineLength: 100
|
29
|
-
|
30
|
-
Style/ParallelAssignment:
|
31
|
-
Enabled: false
|
32
|
-
|
33
|
-
Style/StringLiterals:
|
34
|
-
EnforcedStyle: single_quotes
|
35
|
-
|
36
|
-
Style/WhileUntilModifier:
|
37
|
-
MaxLineLength: 100
|
38
|
-
|
39
|
-
Style/WordArray:
|
40
|
-
Enabled: false
|
41
|
-
|
42
|
-
Style/RegexpLiteral:
|
43
|
-
AllowInnerSlashes: true
|
44
|
-
|
45
|
-
Style/ClassAndModuleChildren:
|
46
|
-
EnforcedStyle: compact
|
1
|
+
inherit_from:
|
2
|
+
- .rubocop.unhound.yml
|
3
|
+
|
4
|
+
AllCops:
|
5
|
+
Include:
|
6
|
+
- '**/Gemfile'
|
7
|
+
- '**/Rakefile'
|
8
|
+
Exclude:
|
9
|
+
- 'vendor/bundle/**/*'
|
10
|
+
TargetRubyVersion: 2.1
|
11
|
+
|
12
|
+
Metrics/LineLength:
|
13
|
+
Max: 100
|
14
|
+
|
15
|
+
Style/ClassAndModuleChildren:
|
16
|
+
EnforcedStyle: compact
|
17
|
+
|
18
|
+
Style/DotPosition:
|
19
|
+
EnforcedStyle: trailing
|
20
|
+
|
21
|
+
Style/Documentation:
|
22
|
+
Enabled: false
|
23
|
+
|
24
|
+
Style/IndentHash:
|
25
|
+
EnforcedStyle: consistent
|
26
|
+
|
27
|
+
Style/IfUnlessModifier:
|
28
|
+
MaxLineLength: 100
|
29
|
+
|
30
|
+
Style/ParallelAssignment:
|
31
|
+
Enabled: false
|
32
|
+
|
33
|
+
Style/StringLiterals:
|
34
|
+
EnforcedStyle: single_quotes
|
35
|
+
|
36
|
+
Style/WhileUntilModifier:
|
37
|
+
MaxLineLength: 100
|
38
|
+
|
39
|
+
Style/WordArray:
|
40
|
+
Enabled: false
|
41
|
+
|
42
|
+
Style/RegexpLiteral:
|
43
|
+
AllowInnerSlashes: true
|
44
|
+
|
45
|
+
Style/ClassAndModuleChildren:
|
46
|
+
EnforcedStyle: compact
|
data/.travis.yml
CHANGED
@@ -1,17 +1,17 @@
|
|
1
|
-
sudo: required
|
2
|
-
language: ruby
|
3
|
-
rvm:
|
4
|
-
- 2.1.8
|
5
|
-
- 2.2.4
|
6
|
-
- 2.3.0
|
7
|
-
- ruby-head
|
8
|
-
matrix:
|
9
|
-
allow_failures:
|
10
|
-
- rvm: ruby-head
|
11
|
-
services:
|
12
|
-
- docker
|
13
|
-
bundler_args: "--jobs=3 --retry=3"
|
14
|
-
cache: bundler
|
15
|
-
|
16
|
-
before_install:
|
17
|
-
- gem install bundler
|
1
|
+
sudo: required
|
2
|
+
language: ruby
|
3
|
+
rvm:
|
4
|
+
- 2.1.8
|
5
|
+
- 2.2.4
|
6
|
+
- 2.3.0
|
7
|
+
- ruby-head
|
8
|
+
matrix:
|
9
|
+
allow_failures:
|
10
|
+
- rvm: ruby-head
|
11
|
+
services:
|
12
|
+
- docker
|
13
|
+
bundler_args: "--jobs=3 --retry=3"
|
14
|
+
cache: bundler
|
15
|
+
|
16
|
+
before_install:
|
17
|
+
- gem install bundler
|