mumuki-gobstones-runner 2.14.2 → 2.14.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/render/editor/editor.html.erb +14 -4
- data/lib/render/editor/editor.js +28 -0
- data/lib/version_hook.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b244e3280bfaca356fd1ef62b451f829961373477c9246531b87bf80c37efbf
|
4
|
+
data.tar.gz: 58e31a7aae944b043c4be7a471d8f3622d47205a3be0395c0350f6b7425597b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0941624faa0e39fd3e52a9379c026292581085979580fc44f87bc22cc6e6568d00e2588c6a02b19b8c1d123f4325c3d18685c1e495f82258b41e7c1436fcae97'
|
7
|
+
data.tar.gz: 9ce27aef7d8681b10b1baa6b8d86fd4a2c08bca8ecf8e71e35e9ffa30dcec9963d37cf8f5fc79fba4c852299886fff4c47e3571caa5f2a8e1ccc9ba492d70abc
|
@@ -809,7 +809,7 @@
|
|
809
809
|
this.$editor = $("mu-gobstones-custom-editor")[0];
|
810
810
|
},
|
811
811
|
|
812
|
-
_boardToState
|
812
|
+
_boardToState: function ({size, table, header, boom}) {
|
813
813
|
return {size, table, header, boom}
|
814
814
|
},
|
815
815
|
|
@@ -830,7 +830,7 @@
|
|
830
830
|
const targetStateIndex = this.multipleScenarios.currentScenarioIndex;
|
831
831
|
this.targetState = this.initialState[targetStateIndex];
|
832
832
|
|
833
|
-
const promise = mumuki.submission.
|
833
|
+
const promise = mumuki.submission.sendSolution({solution})
|
834
834
|
.then((results) => {
|
835
835
|
if (promise !== this.serverPromise) return;
|
836
836
|
|
@@ -869,12 +869,22 @@
|
|
869
869
|
if (reason === "end") {
|
870
870
|
this._onExecutionEnd(editor);
|
871
871
|
}
|
872
|
-
else if (reason === "cancel"
|
873
|
-
this.
|
872
|
+
else if (reason === "cancel") {
|
873
|
+
this._onExecutionCancel(editor);
|
874
874
|
}
|
875
875
|
else this.serverPromise = undefined;
|
876
876
|
},
|
877
877
|
|
878
|
+
_onExecutionCancel: function(editor) {
|
879
|
+
if(editor.interactiveMode) {
|
880
|
+
this._onInteractiveStop(editor);
|
881
|
+
}
|
882
|
+
else {
|
883
|
+
this._onResetState();
|
884
|
+
this.serverPromise = undefined;
|
885
|
+
}
|
886
|
+
},
|
887
|
+
|
878
888
|
_onExecutionEnd: function (editor) {
|
879
889
|
if(editor.interactiveMode) {
|
880
890
|
editor.toggleInteractiveMode();
|
data/lib/render/editor/editor.js
CHANGED
@@ -21,4 +21,32 @@ $(document).ready(function () {
|
|
21
21
|
$blockSvg.width($blocks.width());
|
22
22
|
$blockSvg.height($blocks.height());
|
23
23
|
});
|
24
|
+
|
25
|
+
mumuki.I18n.register({
|
26
|
+
'es': {
|
27
|
+
'kindergarten_passed': '¡Tu programa está muy bien!',
|
28
|
+
'kindergarten_passed_with_warnings': 'Tu programa está bien ¡pero se puede mejorar!',
|
29
|
+
'kindergarten_failed': 'Hay un error en tu programa. ¡Intentá de nuevo!',
|
30
|
+
'kindergarten_errored': 'Hay un error en tu programa. ¡Intentá de nuevo!',
|
31
|
+
},
|
32
|
+
'es-CL': {
|
33
|
+
'kindergarten_passed': '¡Tu programa está muy bien!',
|
34
|
+
'kindergarten_passed_with_warnings': 'Tu programa está bien ¡pero se puede mejorar!',
|
35
|
+
'kindergarten_failed': 'Hay un error en tu programa. ¡Intenta de nuevo!',
|
36
|
+
'kindergarten_errored': 'Hay un error en tu programa. ¡Intenta de nuevo!'
|
37
|
+
},
|
38
|
+
'en': {
|
39
|
+
'kindergarten_passed': 'Your program is very good!',
|
40
|
+
'kindergarten_passed_with_warnings': 'Your program is good. But it can be improved!',
|
41
|
+
'kindergarten_failed': 'There is an error in your program. Try again!',
|
42
|
+
'kindergarten_errored': 'There is an error in your program. Try again!'
|
43
|
+
},
|
44
|
+
'pt': {
|
45
|
+
'kindergarten_passed': 'Seu programa é muito bom!',
|
46
|
+
'kindergarten_passed_with_warnings': 'Seu programa é bom, mas pode ser melhorado!',
|
47
|
+
'kindergarten_failed': 'Há um erro no seu programa. Tenta de novo!',
|
48
|
+
'kindergarten_errored': 'Há um erro no seu programa. Tenta de novo!'
|
49
|
+
},
|
50
|
+
});
|
51
|
+
|
24
52
|
});
|
data/lib/version_hook.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mumuki-gobstones-runner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.14.
|
4
|
+
version: 2.14.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rodrigo Alfonso
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-01-
|
12
|
+
date: 2021-01-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: gobstones-board
|