gobstones-blockly 0.30.1 → 0.31.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: ee734308b712fc16be07265981a1bd81a6d2b60217edb28d2db58816a3896671
4
- data.tar.gz: 2712be3d8c68e44ff965c1070c5c904ed3cfe6ddd5f143c7a203985a047f4bce
3
+ metadata.gz: a635ac1b19348ea87ca23976497fa8aad110558d6d17bda146c80b7a8064b3c4
4
+ data.tar.gz: 8caab52b4dcd9e632ecad56d56f0c4a72c08bea83cbd46fbad7d371936940580
5
5
  SHA512:
6
- metadata.gz: 92d039633ca41130a695c26f2f147d106d1fd61c97ed55737401e7a0c146d43dfe9198066dbf90a78c67e605007c833d681ced4cb5ed3b4a6d98a1bee1f82b8b
7
- data.tar.gz: 3f80012e300bbdcb62f5ae8b682f20163c641b6dc5f70d0e1fced709a28ede8f06e507c74d958dd8e6c0da00a82840855f454396eb544ee91c08545d6e1659d3
6
+ metadata.gz: a808286901cf84d9147a906750909fb558fbcdaa108754368cc3d3b202af9f0a1120ff30244448a10f62d4f7e6a82e040fb9f2f73b975b9472b5314cdaf8f5c6
7
+ data.tar.gz: 11fbab2de6de522690905cc434b43ac2f33084873d60435e1f8692d2d059c2c0897c50c0ae5d6eb094b746539644522ad2d187826028d6604712f2b811f94757
@@ -6934,7 +6934,11 @@ Blockly.ErrorInforming.CssContent = [
6934
6934
  if (parent.id === block.$parent) break;
6935
6935
  }
6936
6936
 
6937
- block.setDisabled(parent === null);
6937
+ const isDisabled = parent === null;
6938
+ const isConnected = block.getSurroundParent() !== null;
6939
+ const isInvalid = isDisabled && isConnected;
6940
+ block.setDisabled(isDisabled);
6941
+ Blockly.utils[isInvalid ? "addClass" : "removeClass"](block.svgGroup_, 'blocklyInvalidParent');
6938
6942
  } else {
6939
6943
  block.dispose();
6940
6944
  }
@@ -1,5 +1,5 @@
1
1
  module Gobstones
2
2
  module Blockly
3
- VERSION = "0.30.1"
3
+ VERSION = "0.31.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gobstones-blockly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.30.1
4
+ version: 0.31.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Alfonso
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-21 00:00:00.000000000 Z
11
+ date: 2019-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
89
  requirements: []
90
- rubygems_version: 3.0.2
90
+ rubygems_version: 3.0.3
91
91
  signing_key:
92
92
  specification_version: 4
93
93
  summary: Gobstones Blockly