mumuki-gobstones-runner 2.14.3 → 2.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gobstones_runner.rb +1 -1
- data/lib/render/editor/editor.html.erb +4 -14
- data/lib/version_hook.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a15ee12be9e4246c28713f50d1056af82fa89c4269a87607ff067cbb09eebe9f
|
4
|
+
data.tar.gz: 6b815a6fd0c6504f10e7fe35ebbf45d6f6867e33f570d77b23a81f51d7c78977
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f4262bd784f1893ab2d54eedd4d3050b4ab1d8ea0fde55913c97706c57d56fc33750d946cc6e5211d32e813384a7e5a60b616d93feb4507a4a87a49c7f7db21
|
7
|
+
data.tar.gz: 72ac755149cbb61b71df6dda5389af2846d82c6b3dc5a2cce554857149a225a4061291f5bb747b30ee8a4b87157d31b42c29defbb9ee924eca4158373b5a33ae
|
data/lib/gobstones_runner.rb
CHANGED
@@ -6,7 +6,7 @@ I18n.load_translations_path File.join(__dir__, 'locales', '*.yml')
|
|
6
6
|
|
7
7
|
Mumukit.runner_name = 'gobstones'
|
8
8
|
Mumukit.configure do |config|
|
9
|
-
config.docker_image = 'mumuki/mumuki-gobstones-worker:
|
9
|
+
config.docker_image = 'mumuki/mumuki-gobstones-worker:10.0'
|
10
10
|
config.content_type = 'html'
|
11
11
|
config.structured = true
|
12
12
|
config.settings = true
|
@@ -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.
|
833
|
+
const promise = mumuki.submission.processSolution({ solution })
|
834
834
|
.then((results) => {
|
835
835
|
if (promise !== this.serverPromise) return;
|
836
836
|
|
@@ -869,20 +869,10 @@
|
|
869
869
|
if (reason === "end") {
|
870
870
|
this._onExecutionEnd(editor);
|
871
871
|
}
|
872
|
-
else if (reason === "cancel") {
|
873
|
-
this._onExecutionCancel(editor);
|
874
|
-
}
|
875
|
-
else this.serverPromise = undefined;
|
876
|
-
},
|
877
|
-
|
878
|
-
_onExecutionCancel: function(editor) {
|
879
|
-
if(editor.interactiveMode) {
|
872
|
+
else if (reason === "cancel" && editor.interactiveMode) {
|
880
873
|
this._onInteractiveStop(editor);
|
881
874
|
}
|
882
|
-
else
|
883
|
-
this._onResetState();
|
884
|
-
this.serverPromise = undefined;
|
885
|
-
}
|
875
|
+
else this.serverPromise = undefined;
|
886
876
|
},
|
887
877
|
|
888
878
|
_onExecutionEnd: function (editor) {
|
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.
|
4
|
+
version: 2.15.0
|
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-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: gobstones-board
|
@@ -59,14 +59,14 @@ dependencies:
|
|
59
59
|
requirements:
|
60
60
|
- - "~>"
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: '2.
|
62
|
+
version: '2.38'
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: '2.
|
69
|
+
version: '2.38'
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: nokogiri
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|