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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 45823ede62f0dab0aaecc19ed12332cfeae22a593c9809fb31f248b8d922f006
4
- data.tar.gz: a16ec2877eadbbf19db14b57b62f6ee96222d41d8978634da9aa93ba8561fdd1
3
+ metadata.gz: 1b244e3280bfaca356fd1ef62b451f829961373477c9246531b87bf80c37efbf
4
+ data.tar.gz: 58e31a7aae944b043c4be7a471d8f3622d47205a3be0395c0350f6b7425597b8
5
5
  SHA512:
6
- metadata.gz: 9d5749f67661dbf6d2d2f00f4f1bd48ab4ab86a1abda93e275e08916cd23ddc41eda5aa0498b4b7a76f760ee9d011f8dd8e1a4b592a68225138ef6680d3d640c
7
- data.tar.gz: 3f61470fe0aa02a8f84723a37939147441fb1ace1e7c58be13ea5fc4d4fc79e5824993198d9b22986ee3559c062c0a931ad4d864b8b8f14f5bf937a3e2699649
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 : function ({size, table, header, boom}) {
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.processSolution({ solution })
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" && editor.interactiveMode) {
873
- this._onInteractiveStop(editor);
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();
@@ -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
  });
@@ -1,3 +1,3 @@
1
1
  module GobstonesVersionHook
2
- VERSION = '2.14.2'
2
+ VERSION = '2.14.3'
3
3
  end
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.2
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-07 00:00:00.000000000 Z
12
+ date: 2021-01-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gobstones-board