coursemology-evaluator 0.1.1 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/.env +3 -3
  3. data/.gitignore +23 -22
  4. data/.hound.yml +8 -8
  5. data/.idea/Coursemology Evaluator.iml +8 -8
  6. data/.rspec +2 -2
  7. data/.rubocop.unhound.yml +109 -109
  8. data/.rubocop.yml +46 -46
  9. data/.travis.yml +17 -17
  10. data/Gemfile +4 -4
  11. data/Procfile +1 -1
  12. data/README.md +29 -29
  13. data/Rakefile +6 -6
  14. data/bin/evaluator +5 -5
  15. data/coursemology-evaluator.gemspec +37 -37
  16. data/lib/coursemology/evaluator.rb +36 -36
  17. data/lib/coursemology/evaluator/cli.rb +52 -52
  18. data/lib/coursemology/evaluator/client.rb +81 -75
  19. data/lib/coursemology/evaluator/docker_container.rb +59 -59
  20. data/lib/coursemology/evaluator/logging.rb +12 -12
  21. data/lib/coursemology/evaluator/logging/client_log_subscriber.rb +25 -25
  22. data/lib/coursemology/evaluator/logging/docker_log_subscriber.rb +18 -18
  23. data/lib/coursemology/evaluator/models.rb +7 -7
  24. data/lib/coursemology/evaluator/models/base.rb +50 -50
  25. data/lib/coursemology/evaluator/models/programming_evaluation.rb +55 -67
  26. data/lib/coursemology/evaluator/models/programming_evaluation/package.rb +12 -12
  27. data/lib/coursemology/evaluator/services.rb +6 -6
  28. data/lib/coursemology/evaluator/services/evaluate_programming_package_service.rb +151 -151
  29. data/lib/coursemology/evaluator/string_io.rb +14 -14
  30. data/lib/coursemology/evaluator/utils.rb +42 -42
  31. data/lib/coursemology/evaluator/version.rb +5 -5
  32. data/lib/coursemology/polyglot/extensions.rb +3 -3
  33. data/lib/coursemology/polyglot/extensions/language.rb +24 -24
  34. metadata +15 -4
  35. data/Gemfile.lock +0 -114
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b252794553b802b276a7f319b90a77ae7ace0040
4
- data.tar.gz: 53db2d2e32dc391742b186516ea3e9c55e3b149e
3
+ metadata.gz: 2361d90ee822c05a9e26b9217eeaa788326d1119
4
+ data.tar.gz: 3bcad2014eecd4ea44c79ea5a3855fc1d894ef44
5
5
  SHA512:
6
- metadata.gz: 4b3f1b4037c772df3ece38701c2016e4799fda81f9b858fa874938fe197a38776f9dc1b1ddc43c95f1fa71716cfad407a690a87a7bcf7ed9c807f026c9a50708
7
- data.tar.gz: 57d310b7668069b31bb9335eedcd4b06d1c68ff4bde4974e9e4c79f53668cd4fe9bea3f58c719da32e0dbfc753e0b15b964b39880d66158c8fa83bd817479f0e
6
+ metadata.gz: 75fa50f0c17da2ed28a29a6384a58c47dffd23158ff924cd65983e243fa2c8f3b9c76721c5b19a3108c094b3bbc795fc25a58b5b5f18a12b50b0a2696273eb60
7
+ data.tar.gz: 5cc695d5a5eb9fccc4c9217474dde9bae852e6ae8df03d55bc10464b02e4ac7b04626b6fcc374ff62bf78a6f124140bba6ca008f910af921f9bd4d645135fa35
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,22 +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
-
11
- # Ignore user-specific Intellij project files
12
- /.idea/dictionaries/*
13
- /.idea/.rakeTasks
14
- /.idea/.generators
15
- /.idea/workspace.xml
16
-
17
- # Ignore generated code coverage information
18
- /spec/coverage/*
19
- /coverage/*
20
-
21
- # Ignore RSpec state
22
- /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
@@ -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
@@ -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
@@ -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 --deployment"
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