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 +4 -4
- data/app/assets/htmls/gs-element-blockly.html +5 -1
- data/lib/gobstones/blockly/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a635ac1b19348ea87ca23976497fa8aad110558d6d17bda146c80b7a8064b3c4
|
4
|
+
data.tar.gz: 8caab52b4dcd9e632ecad56d56f0c4a72c08bea83cbd46fbad7d371936940580
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
}
|
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.
|
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-
|
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.
|
90
|
+
rubygems_version: 3.0.3
|
91
91
|
signing_key:
|
92
92
|
specification_version: 4
|
93
93
|
summary: Gobstones Blockly
|