mumuki-gobstones-runner 1.11.2 → 1.12.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: ad5a554da38635c13349424d4990830c576f71fed31bcc6c8ec427f28fab0aa0
4
- data.tar.gz: 180d1b67e7f44f735f9622c7cc83b2dbc20ad2ba6b0dfa6197325d4bcc759fa5
3
+ metadata.gz: 1e36d7b11f8825eeb025a780fce051608454b8de38e264a96b3d052e5925bc29
4
+ data.tar.gz: 5c4fe022a38ce11a63bd0281118432ef50c0bbc4abf1be7eb9af45270a880713
5
5
  SHA512:
6
- metadata.gz: 10635f02a509a179f973a57000ceddd2b2d61a7a7064572546bf7e417d6c59a3b323c71de7368887cdaa5d3798dc7f8c2c05a577ae906ab7c10dda3489e3065e
7
- data.tar.gz: 76bb8bad8d87cf3faa5d8351d05e0c69d1387f8a8c11a0b6f23c3fa837b50d6c95360c655e0850bbad2d4558232c39f33c7c43a064283b7ecf41f711ed938c7e
6
+ metadata.gz: abbc0be7c630768d595e92ba3a73b09985fdbaf11a691a2b348a2ef3941cd1e25ec0c2427400420dd612adb5c8bdc9158cde055af9d0591b620d52bd7251a838
7
+ data.tar.gz: cce358699eb00043da2d7a1c543418dc75e53231db57bc0a86fee4a01b139bc7ef9b43240b908fbafabf31ea150676d1e1291e1e52eb5298d59a9e89d22c8752
@@ -106,6 +106,9 @@
106
106
  if (typeof Blockly === 'undefined' || !Blockly.CUSTOM_COLORS) return postpone(setBlocklyCustomSettings);
107
107
  setBlocklySounds();
108
108
  setBlocklyColors();
109
+
110
+ // Removing "/" from the block id character set to avoid syntax errors
111
+ Blockly.utils.genUid.soup_ = Blockly.utils.genUid.soup_.replace("/", "");
109
112
  };
110
113
 
111
114
  const updateFields = () => {
@@ -676,18 +679,19 @@
676
679
  },
677
680
 
678
681
  ready: function () {
682
+ document.addEventListener('board-attire-changed', this._updateVisibility.bind(this));
683
+ },
684
+
685
+ _updateVisibility: function () {
679
686
  this.boards = $(".mu-kids-states").find("gs-board");
680
- setTimeout(() => {
681
- this.shouldDisplay = this.boards.toArray().some(board => board.attire);
682
- }, 500);
687
+ this.shouldDisplay = this.boards.toArray().some(board => board.attire);
683
688
  },
684
689
 
685
690
  _onButtonClick: function () {
686
691
  this.isEnabled = !this.isEnabled;
687
692
 
688
693
  this.boards.each((__, board) => {
689
- if (this.isEnabled) board.detectAttire();
690
- else board.attire = null;
694
+ if (board.attire) board.set("attire.enabled", this.isEnabled);
691
695
  gbsBoardRemoveBorder(board);
692
696
  });
693
697
  }
@@ -1,3 +1,3 @@
1
1
  module GobstonesVersionHook
2
- VERSION = '1.11.2'
2
+ VERSION = '1.12.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: 1.11.2
4
+ version: 1.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Alfonso
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.16'
47
+ version: '1.18'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.16'
54
+ version: '1.18'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: gobstones-blockly
57
57
  requirement: !ruby/object:Gem::Requirement