gobstones-code-runner 0.6.0 → 0.7.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: dd4d6e14b4c9d319c5aac21edc4bbdc650ef33c7a3cc8e21d84e9289fb76945b
4
- data.tar.gz: 2b0b1dbae7ea6ff8e1d072c2d7d3604f555fe728f3b26e9e0dfe6bebef6f8711
3
+ metadata.gz: 52fc7202ed879fa1f60339f3c665bccbc218c33c8eb96716b4bb496f373b5460
4
+ data.tar.gz: 76da2ccc52e0107c1cfe0786c090435c0978f60fd84a5eac84c3d84a05c07ddc
5
5
  SHA512:
6
- metadata.gz: d88527faa85751e22ec962217ffd9ac4ed314df55d4053532ee1ce619bd24a5f242896a9925d264fb61cf3c78cf489bf0810f8184026f4f0d3f31d5121822258
7
- data.tar.gz: de88f8d3e46319c3af98bb97d2e8db4a0d20051a0f95ef6be858716aa2213a1655f1f7911cff89346eaf1df79001ec549922e35913306943faa2e366e1f577ab
6
+ metadata.gz: a4d550010c1d0e750f763c9901566db3786ac1d2dbb593d1d2f173a00ab58c51aa83437b35c436565fba770100a78251f077c145ba2ff84091d3821920694684
7
+ data.tar.gz: fc1f2b9fd8bd813d135966fdf5dc3532a89f06b55f8c91fffa279caece7ad94e548c499ed43da368d259d1c6669c4942aba283c8397bec2d12d6f6b257866547
@@ -9119,6 +9119,8 @@ var LOCALE_ES = exports.LOCALE_ES = {
9119
9119
 
9120
9120
  'errmsg:patterns-in-interactive-program-must-be-events': 'Los patrones de un "interactive program" deben ser eventos.',
9121
9121
 
9122
+ 'errmsg:patterns-in-interactive-program-cannot-be-variables': 'El patrón no puede ser una variable.',
9123
+
9122
9124
  'errmsg:patterns-in-switch-must-not-be-events': 'El patrón no puede ser un evento.',
9123
9125
 
9124
9126
  'errmsg:structure-construction-repeated-field': function errmsgStructureConstructionRepeatedField(constructorName, fieldName) {
@@ -9327,7 +9329,7 @@ var LOCALE_ES = exports.LOCALE_ES = {
9327
9329
  'PRIM:minDir': 'minDir',
9328
9330
  'PRIM:maxDir': 'maxDir',
9329
9331
 
9330
- 'PRIM:isEmpty': 'vacía',
9332
+ 'PRIM:isEmpty': 'esVacía',
9331
9333
  'PRIM:head': 'primero',
9332
9334
  'PRIM:tail': 'resto',
9333
9335
  'PRIM:init': 'comienzo',
@@ -15742,6 +15744,7 @@ var Linter = exports.Linter = function () {
15742
15744
  'structure-pattern-repeats-timeout': true,
15743
15745
  'pattern-does-not-match-type': true,
15744
15746
  'patterns-in-interactive-program-must-be-events': true,
15747
+ 'patterns-in-interactive-program-cannot-be-variables': true,
15745
15748
  'patterns-in-switch-must-not-be-events': true,
15746
15749
  'patterns-in-foreach-must-not-be-events': true,
15747
15750
  'repeated-variable-in-tuple-assignment': true,
@@ -16408,6 +16411,9 @@ var Linter = exports.Linter = function () {
16408
16411
  if (patternType !== null && patternType !== (0, _i18n.i18n)('TYPE:Event')) {
16409
16412
  this._lintCheck(branch.pattern.startPos, branch.pattern.endPos, 'patterns-in-interactive-program-must-be-events', []);
16410
16413
  }
16414
+ if (branch.pattern.tag === _ast.N_PatternVariable) {
16415
+ this._lintCheck(branch.pattern.startPos, branch.pattern.endPos, 'patterns-in-interactive-program-cannot-be-variables', []);
16416
+ }
16411
16417
  }
16412
16418
  } catch (err) {
16413
16419
  _didIteratorError13 = true;
@@ -1,5 +1,5 @@
1
1
  module Gobstones
2
2
  module CodeRunner
3
- VERSION = "0.6.0"
3
+ VERSION = "0.7.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gobstones-code-runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.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: 2018-10-16 00:00:00.000000000 Z
11
+ date: 2018-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler