prolog-blockly 1.0.14 → 1.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f2844a64863dbc7b2ae9ed79348d67e4727b32853a9e8f7a2a981546abd5d462
4
- data.tar.gz: 748de21db30187284247da28485c898b31f386e2de32ee968bf8e0176d8b2949
3
+ metadata.gz: fdcc5d1cdcddd66bb19212426e14a672ad6fc81ef321071397d22c4f1ce7ecce
4
+ data.tar.gz: 76484a9557a7eb4b4a3f5ef82277f50bd19d079083e349c627b86c575ce4762f
5
5
  SHA512:
6
- metadata.gz: b70e5148ba641a39a3922e2f73b8463232c7508e5b6e04a8a4ac10b21fcff1f20ccda274542cbe9b20cb50100bb3570fda2735a47cdd2ab0b05fac5e6002a182
7
- data.tar.gz: deb2c258e1e4a7613af5f5a46a37c3a99ea00f9eda6eb2774ea90c680363b6d3e674c4da3d0e4205d56cd89c06e293031d57700e67ee17bc9382db19d11ac07a
6
+ metadata.gz: 62bf95021fd2e7f63130ce1a20989cc5012a28fb5eb5a843ce3d90e4b2ae1fd3d674a5ddb39f8f33630ce38e15be4b0418eafa9abd853cd2d69f1e5f79ce1ebf
7
+ data.tar.gz: 9d275ffd33446ecd0ab44ce5fb63d3d73bcb6872a7dcf851b7ad11294255c4a31307c0085edbd3e5d95dbd2b9b8039f40939c1f14abe339f2646ee64f319c1c4
@@ -4307,7 +4307,9 @@ Blockly.HSV_VALUE = 1;
4307
4307
  Blockly.MUMUKI_COLORS = {
4308
4308
  pink: "#FF5C82",
4309
4309
  blue: "#5CBEFF",
4310
- yellow: "#FFC95C"
4310
+ yellow: "#FFC95C",
4311
+ green: "#3FAA9D",
4312
+ dark_green:"#1F879A"
4311
4313
  };
4312
4314
  // reserved
4313
4315
  Blockly.CUSTOM_COLORS.program = Blockly.MUMUKI_COLORS.pink;
@@ -4321,16 +4323,19 @@ Blockly.CUSTOM_COLORS.controlStructure = Blockly.MUMUKI_COLORS.yellow;
4321
4323
  Blockly.CUSTOM_COLORS.primitiveCommand = Blockly.MUMUKI_COLORS.yellow;
4322
4324
  Blockly.CUSTOM_COLORS.primitiveProcedure = Blockly.MUMUKI_COLORS.yellow;
4323
4325
  Blockly.CUSTOM_COLORS.procedure_call = Blockly.MUMUKI_COLORS.yellow;
4324
- Blockly.CUSTOM_COLORS.assignation = Blockly.MUMUKI_COLORS.yellow;
4326
+ Blockly.CUSTOM_COLORS.assignation = Blockly.MUMUKI_COLORS.dark_green;
4327
+
4325
4328
  // expressions
4326
4329
  Blockly.Msg.MATH_HUE = Blockly.MUMUKI_COLORS.blue;
4327
4330
  Blockly.CUSTOM_COLORS.literalExpression = Blockly.MUMUKI_COLORS.blue;
4328
4331
  Blockly.CUSTOM_COLORS.primitiveExpression = Blockly.MUMUKI_COLORS.blue;
4329
4332
  Blockly.CUSTOM_COLORS.operator = Blockly.MUMUKI_COLORS.blue;
4330
- Blockly.CUSTOM_COLORS.variable = Blockly.MUMUKI_COLORS.blue;
4333
+ Blockly.CUSTOM_COLORS.VariableSelector = Blockly.MUMUKI_COLORS.green;
4331
4334
  Blockly.CUSTOM_COLORS.parameter = Blockly.MUMUKI_COLORS.blue;
4332
4335
  Blockly.CUSTOM_COLORS.primitiveFunction = Blockly.MUMUKI_COLORS.blue;
4333
4336
  Blockly.CUSTOM_COLORS.function_call = Blockly.MUMUKI_COLORS.blue;
4337
+ Blockly.CUSTOM_COLORS.Not = Blockly.MUMUKI_COLORS.dark_green;
4338
+ Blockly.CUSTOM_COLORS.ForAll = Blockly.MUMUKI_COLORS.dark_green;
4334
4339
 
4335
4340
  /**
4336
4341
  * Create the svg representation of a block and render
@@ -5590,7 +5595,7 @@ function individuoSelectorBlockCodeGenerator(type) {
5590
5595
 
5591
5596
  function variableSelectorBlockCodeGenerator(type) {
5592
5597
  return function(block) {
5593
- return [block.getFieldValue(type).replace(/^\w/, c => c.toUpperCase()), Blockly.PrologLanguage.ORDER_ATOMIC];
5598
+ return [(block.getFieldValue(type)[0].toUpperCase() + block.getFieldValue(type).slice(1)), Blockly.PrologLanguage.ORDER_ATOMIC];
5594
5599
  };
5595
5600
  }
5596
5601
 
@@ -1,5 +1,5 @@
1
1
  module Prolog
2
2
  module Blockly
3
- VERSION = "1.0.14"
3
+ VERSION = "1.0.15"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prolog-blockly
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.14
4
+ version: 1.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Agustin Pina
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-10 00:00:00.000000000 Z
11
+ date: 2018-11-04 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
  version: '0'
88
88
  requirements: []
89
89
  rubyforge_project:
90
- rubygems_version: 2.7.7
90
+ rubygems_version: 2.7.8
91
91
  signing_key:
92
92
  specification_version: 4
93
93
  summary: Prolog Blockly