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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1b244e3280bfaca356fd1ef62b451f829961373477c9246531b87bf80c37efbf
4
- data.tar.gz: 58e31a7aae944b043c4be7a471d8f3622d47205a3be0395c0350f6b7425597b8
3
+ metadata.gz: a15ee12be9e4246c28713f50d1056af82fa89c4269a87607ff067cbb09eebe9f
4
+ data.tar.gz: 6b815a6fd0c6504f10e7fe35ebbf45d6f6867e33f570d77b23a81f51d7c78977
5
5
  SHA512:
6
- metadata.gz: '0941624faa0e39fd3e52a9379c026292581085979580fc44f87bc22cc6e6568d00e2588c6a02b19b8c1d123f4325c3d18685c1e495f82258b41e7c1436fcae97'
7
- data.tar.gz: 9ce27aef7d8681b10b1baa6b8d86fd4a2c08bca8ecf8e71e35e9ffa30dcec9963d37cf8f5fc79fba4c852299886fff4c47e3571caa5f2a8e1ccc9ba492d70abc
6
+ metadata.gz: 1f4262bd784f1893ab2d54eedd4d3050b4ab1d8ea0fde55913c97706c57d56fc33750d946cc6e5211d32e813384a7e5a60b616d93feb4507a4a87a49c7f7db21
7
+ data.tar.gz: 72ac755149cbb61b71df6dda5389af2846d82c6b3dc5a2cce554857149a225a4061291f5bb747b30ee8a4b87157d31b42c29defbb9ee924eca4158373b5a33ae
@@ -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.1'
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.sendSolution({solution})
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
@@ -1,3 +1,3 @@
1
1
  module GobstonesVersionHook
2
- VERSION = '2.14.3'
2
+ VERSION = '2.15.0'
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.3
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-22 00:00:00.000000000 Z
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.37'
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.37'
69
+ version: '2.38'
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: nokogiri
72
72
  requirement: !ruby/object:Gem::Requirement