reviser 0.0.3 → 0.0.3.1
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/bin/reviser +1 -1
- data/config.yml +8 -3
- data/lib/reviser/criteria/execution.rb +8 -0
- data/lib/{exec.rb → reviser/exec.rb} +4 -4
- data/type/example/Labyrinthe.yml +3 -1
- metadata +2 -9
- data/res/css/web_validators/css-base.css +0 -733
- data/res/css/web_validators/css-results.css +0 -257
- data/res/css/web_validators/html-base.css +0 -746
- data/res/css/web_validators/html-results.css +0 -489
- data/res/labys/labfich11.txt +0 -19
- data/res/labys/test.txt +0 -3
- data/res/labys/yoda.txt +0 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47778f95556ef386df98ca2e951922cbf814d9c5
|
4
|
+
data.tar.gz: 3dfdcb68d7f82de0d32e500e46964b2411cbfa03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76db74d7c0fcefd3dce71721a2baa7c9d70f094cd69a354f8aa46b0d9d5a284e53d1cf2ce41703e1f95583fc8fbc6d895c6973ba9fb7b1678cd74c9459ee27eb
|
7
|
+
data.tar.gz: 4f43cb85efc0be84bd7db3f71b28803defb40fdd9b9ef8dc7a7b695b2306d090de59a56f7b9dbb14e6007431bc36d4db0dc83bc68c1b362ceb19693c31af05e9
|
data/bin/reviser
CHANGED
data/config.yml
CHANGED
@@ -77,9 +77,14 @@ criteria:
|
|
77
77
|
- compile
|
78
78
|
- execute
|
79
79
|
|
80
|
-
# Extensions you want to use
|
81
|
-
|
82
|
-
|
80
|
+
# Extensions you want to use
|
81
|
+
# Some are already available in ext/
|
82
|
+
# but you can also define your own
|
83
|
+
# and add your criteria here
|
84
|
+
# (don't forget to register it with Reviser::register)
|
85
|
+
# extensions:
|
86
|
+
# - my_custom_criterion
|
87
|
+
#
|
83
88
|
|
84
89
|
# Whether to create a git repository for each project
|
85
90
|
# relies on 'git' gem
|
@@ -88,6 +88,14 @@ module Reviser
|
|
88
88
|
|
89
89
|
program = "#{Cfg[:program_prefix]}#{program}"
|
90
90
|
|
91
|
+
#
|
92
|
+
# if it's a file, we change the param to its path
|
93
|
+
#
|
94
|
+
file = Cfg.resource(param).to_path
|
95
|
+
if File.exists? file
|
96
|
+
param = file
|
97
|
+
end
|
98
|
+
|
91
99
|
cmd = "#{Cfg[:execute_command]} #{program} #{param}"
|
92
100
|
out = exec_with_timeout cmd
|
93
101
|
|
@@ -23,8 +23,8 @@ require 'thor'
|
|
23
23
|
require 'fileutils'
|
24
24
|
require 'colorize'
|
25
25
|
|
26
|
-
require_relative 'reviser'
|
27
|
-
require_relative '
|
26
|
+
require_relative '../reviser'
|
27
|
+
require_relative 'helpers/criteria'
|
28
28
|
|
29
29
|
#
|
30
30
|
# Module used for managing all actions in command line
|
@@ -36,7 +36,7 @@ require_relative 'reviser/helpers/criteria'
|
|
36
36
|
module Reviser
|
37
37
|
class Exec < Thor
|
38
38
|
|
39
|
-
VERSION = '0.0.3'
|
39
|
+
VERSION = '0.0.3.1'
|
40
40
|
|
41
41
|
map '--version' => :version
|
42
42
|
map '-v' => :version
|
@@ -44,7 +44,7 @@ module Reviser
|
|
44
44
|
@@setup = false
|
45
45
|
|
46
46
|
# path of config template file.
|
47
|
-
$template_path = File.join(
|
47
|
+
$template_path = File.join(Cfg::ROOT, 'config.yml')
|
48
48
|
|
49
49
|
def initialize(*args)
|
50
50
|
super
|
data/type/example/Labyrinthe.yml
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reviser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.3
|
4
|
+
version: 0.0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Renan Strauss
|
@@ -93,7 +93,6 @@ files:
|
|
93
93
|
- lang/HTML.yml
|
94
94
|
- lang/Java.yml
|
95
95
|
- lang/Ruby.yml
|
96
|
-
- lib/exec.rb
|
97
96
|
- lib/reviser.rb
|
98
97
|
- lib/reviser/component.rb
|
99
98
|
- lib/reviser/components/archiver.rb
|
@@ -106,6 +105,7 @@ files:
|
|
106
105
|
- lib/reviser/criteria/code_analysis.rb
|
107
106
|
- lib/reviser/criteria/compilation.rb
|
108
107
|
- lib/reviser/criteria/execution.rb
|
108
|
+
- lib/reviser/exec.rb
|
109
109
|
- lib/reviser/helpers/criteria.rb
|
110
110
|
- lib/reviser/helpers/git.rb
|
111
111
|
- lib/reviser/helpers/project.rb
|
@@ -116,14 +116,7 @@ files:
|
|
116
116
|
- res/css/component.css
|
117
117
|
- res/css/normalize.css
|
118
118
|
- res/css/style_logs.css
|
119
|
-
- res/css/web_validators/css-base.css
|
120
|
-
- res/css/web_validators/css-results.css
|
121
|
-
- res/css/web_validators/html-base.css
|
122
|
-
- res/css/web_validators/html-results.css
|
123
119
|
- res/example/data.json
|
124
|
-
- res/labys/labfich11.txt
|
125
|
-
- res/labys/test.txt
|
126
|
-
- res/labys/yoda.txt
|
127
120
|
- res/scss/style_logs.scss
|
128
121
|
- type/example/CProject.yml
|
129
122
|
- type/example/HelloWorldRuby.yml
|