mumuki-prolog-runner 1.0.0 → 1.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 13d4e23a78247d40578287655fbd10a6ed83a2fd
4
- data.tar.gz: 335636f3b50c7b702dc2e80538e13a10cb7b2a6b
3
+ metadata.gz: dab434597d362d9a8c033197ed7c0eb47cd560d8
4
+ data.tar.gz: ad855475c88070abd0bfdbad357e4eb8316344b3
5
5
  SHA512:
6
- metadata.gz: 08ac692949314e4641f3cc96718577fb776233e1c6fb4ad5240f0640fa444b9a0f59223039e080b696b5dd033edf05871eeff90e3c07793a952003b1cf4c9f23
7
- data.tar.gz: 5ed272405a23dff488b813261ae7af1209b9ac805ffb84a21382f06a94b84bb3f6c3409325d8ef2a9ab22e11bc5d5a0888b11b2bac6ae83235e94619b953a249
6
+ metadata.gz: 41434c5e8eeca6b9660dd5af71242cf608dc1a7f83a5f3d582f46b758dc20312d5d68217cb58238e108f6d09fd3caf83ac414ccab6f16f174048ace18902a7f8
7
+ data.tar.gz: b948b58825f5374cfb854a817c9dd7a339cde391b01738cc9c52388c9553e6b91573d6cc33a9eaf8f203902563d0217449a7db8245d827b073a56aa80cb864e1
@@ -0,0 +1,5 @@
1
+ en:
2
+ time_exceeded: 'Timeout: test aborted. Do you have an infinite recursion in your program?'
3
+ wrong_distinct_operator: Remeber that the distinct operator in Prolog is \=
4
+ singleton_variables: "You are not using `%{target}` variable. Perhaps you want to use anonymous variable"
5
+ operator_error: "It looks like your code has syntax errors"
@@ -0,0 +1,13 @@
1
+ es:
2
+ time_exceeded: 'Tiempo excedido: test abortado. ¿Puede que tengas algun predicado con recursion inifinta?'
3
+ wrong_distinct_operator: 'Revisá esta parte: `...%{near}...`. Recordá que el predicado infijo distinto en prolog se escribe así: `\=`'
4
+ wrong_gte_operator: 'Revisá esta parte: `...%{near}...`. Recordá que el predicado infijo mayor o igual en prolog se escribe así: `>=`'
5
+ wrong_lte_operator: 'Revisá esta parte: `...%{near}...`. Recordá que el predicado infijo menor o igual en prolog se escribe así: `=<`'
6
+ clauses_not_together: 'Revisá el predicado `%{target}`. Recordá que es una buena práctica escribir toda las cláusulas de un mismo predicado juntas'
7
+ singleton_variables: "Tenés variables `%{target}` sin usar"
8
+ test_failed: "Tu código no pasó nuestras pruebas. Revisá si hiciste lo que pide el enunciado, y si **respetaste el orden de los parámetros** en los predicados solicitados"
9
+ operator_error: "Cuidado, tenés errores de sintaxis. Revisá que el código esté bien escrito"
10
+ wrong_comma: "Cuidado, tenes errores de sintaxis. ¿Puede ser que te esté faltando algún :- o que lo hayas confundido con una coma?"
11
+ missing_predicate: 'Revisá el predicado `%{target}`. Parece que intentaste usar `%{missing}`, pero no existe. ¿Habrás escrito mal su nombre o pasado una cantidad incorrecta de argumentos?'
12
+ not_sufficiently_instantiated: 'Ojo con la inversibilidad de `%{target}`. Cuando lo uses, asegurate de generar todos su argumentos no inversibles'
13
+ missing_dot_error: 'Cuidado, tenés errores de sintaxis. ¿Puede ser que te hayas olvidado algún punto final?'
data/lib/prolog_runner.rb CHANGED
@@ -1,9 +1,7 @@
1
- require 'i18n'
2
-
3
- I18n.load_path += Dir[File.join('.', 'locales', '*.yml')]
4
-
5
1
  require 'mumukit'
6
2
 
3
+ I18n.load_translations_path File.join(__dir__, 'locales', '*.yml')
4
+
7
5
  Mumukit.runner_name = 'prolog'
8
6
  Mumukit.configure do |config|
9
7
  config.docker_image = 'mumuki/mumuki-plunit-worker'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumuki-prolog-runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Leonardo Bulgarelli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-27 00:00:00.000000000 Z
11
+ date: 2016-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mumukit
@@ -16,14 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.5'
19
+ version: '2.6'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2.5'
26
+ version: '2.6'
27
+ - !ruby/object:Gem::Dependency
28
+ name: mumukit-inspection
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.1'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.1'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: bundler
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -103,6 +117,8 @@ extra_rdoc_files: []
103
117
  files:
104
118
  - lib/expectations_hook.rb
105
119
  - lib/feedback_hook.rb
120
+ - lib/locales/en.yml
121
+ - lib/locales/es.yml
106
122
  - lib/main.pl.erb
107
123
  - lib/metadata_hook.rb
108
124
  - lib/prolog_runner.rb