mulang 5.1.0.2 → 5.2.0

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: d89c5d28d9b39c74f3724825ccc3c29fd773712267fd15b3c0853f7d67b63f54
4
- data.tar.gz: a0b2fd73c979187897d9ded8b9f1f4375658f8e99b1734e243274658b5b59650
3
+ metadata.gz: b5f2532a78fd09450660accc92e937121b5b10cfb3e72abebd27182fadd52eea
4
+ data.tar.gz: 9673dafb8b5643b692649116dcb816ef068128c917c54923a54dc19db2a98268
5
5
  SHA512:
6
- metadata.gz: 71ffc947d7e0e5e41c71bc55c53ca53af0cc4dda60278373aeda511b28f62656ab7d08b908a3b353758837ad25096ac81161c11a64c93e752ee3a79fb2e91803
7
- data.tar.gz: 4967f99afd203f00221edf8f01abafe95c81b3981c68ad8af0a04c61838679ea966dcc8758c6dddce3d570351aea7071a809c6ed428ea90ca209c0afd96280ca
6
+ metadata.gz: 43ac61e3aacf5d5caef6ac737c4d99cfd512007dae3d8effd7e6a8ad73b01281717bcb660a0d0fb6c5fa37d4c30753b6da7d48a5aae12f07f0fb98f9bac52639
7
+ data.tar.gz: 735ec1621b40a3241120274b920e6d28cac2c8e1045a3afdb9b6466f0cc9ea3efe81b3251ffb894814b1a330d6340ac6f0b1a09eb7a5d34c6a0bd23ce0c7f1c1
data/bin/mulang CHANGED
Binary file
@@ -105,6 +105,7 @@ en:
105
105
  HasAssignmentReturn: '%{binding} returns the result of an assignment'
106
106
  HasCodeDuplication: '%{binding} has code duplication'
107
107
  HasEmptyIfBranches: '%{binding} has empty <i>%{keyword_if}</i> branches'
108
+ HasEmptyRepeat: '%{binding} has empty <i>%{keyword_repeat}</i>'
108
109
  HasLongParameterList: '%{binding} has too many parameters. You may be missing an abstraction.'
109
110
  HasMisspelledBindings: '%{binding} is misspelled'
110
111
  HasMisspelledIdentifiers: '%{binding} is misspelled'
@@ -143,6 +144,7 @@ en:
143
144
  Returns: '%{binding} %{must} return%{matching}'
144
145
  ReturnsNil: '%{binding} retuns <i>%{keyword_null}</i>, which is a bad practice'
145
146
  ReturnsNull: '%{binding} retuns <i>%{keyword_null}</i>, which is a bad practice'
147
+ ShouldInvertIfCondition: '%{binding} should invert <i>%{keyword_if}</i> condition and swap branches'
146
148
  TypesAs_named: '%{binding} %{must} type as %{target}'
147
149
  TypesAs: '%{binding} %{must} type'
148
150
  TypesParameterAs_except: '%{binding} %{must} type parameters with a type distinct from %{target}'
@@ -109,6 +109,7 @@ es:
109
109
  HasAssignmentReturn: '%{binding} devuelve el resultado de una asignación'
110
110
  HasCodeDuplication: '%{binding} tiene código repetido'
111
111
  HasEmptyIfBranches: '%{binding} tiene ramas de <i>%{keyword_if}</i> vacías'
112
+ HasEmptyRepeat: '%{binding} tiene un <i>%{keyword_repeat}</i> vacío'
112
113
  HasLongParameterList: '%{binding} tiene demasiados parámetros. Te podría estar faltando una abstracción'
113
114
  HasMisspelledBindings: '%{binding} está mal escrito. Revisá la ortografía y procurá no usar abreviaturas'
114
115
  HasMisspelledIdentifiers: '%{binding} está mal escrito. Revisá la ortografía y procurá no usar abreviaturas'
@@ -155,6 +156,7 @@ es:
155
156
  Returns: '%{binding} %{must} retornar%{matching}'
156
157
  ReturnsNil: '%{binding} retorna null, lo cual es una mala práctica'
157
158
  ReturnsNull: '%{binding} retorna null, lo cual es una mala práctica'
159
+ ShouldInvertIfCondition: '%{binding} debería invertir la condición del <i>%{keyword_if}</i> e intercambiar las ramas'
158
160
  TypesAs_named: '%{binding} %{must} ser de tipo %{target}'
159
161
  TypesAs: '%{binding} %{must} tipar'
160
162
  TypesParameterAs_except: '%{binding} %{must} tipar parámetros con un tipo diferente a %{target}'
@@ -109,6 +109,7 @@ pt:
109
109
  HasAssignmentReturn: '%{binding} retorna o resultado de uma tarefa'
110
110
  HasCodeDuplication: '%{binding} tem código repetido'
111
111
  HasEmptyIfBranches: '%{binding} tem vazio <i>%{keyword_if}</i> ramos'
112
+ HasEmptyRepeat: '%{binding} tem um <i>%{keyword_repeat}</i> vazio'
112
113
  HasLongParameterList: '%{binding} tem muitos parâmetros. Você pode estar perdendo uma abstração.'
113
114
  HasMisspelledBindings: '%{binding} está incorreto. Verifique a ortografia e tente não usar abreviaturas'
114
115
  HasMisspelledIdentifiers: '%{binding} está incorreto. Verifique a ortografia e tente não usar abreviaturas'
@@ -143,6 +144,7 @@ pt:
143
144
  Raises_except: '%{binding} %{must} lançar exceções diferentes de %{target}'
144
145
  Raises_like: '%{binding} %{must} lançar exceções semelhantes a %{target}'
145
146
  Raises_named: '%{binding} %{must} launch %{target}'
147
+ ShouldInvertIfCondition: '%{binding} deve inverter a condição da <i>%{keyword_if}</i> e trocar as ramos'
146
148
  Raises: '%{binding} %{must} lançar exceções'
147
149
  Rescues_except: '%{binding} %{must} capturar exceções que não sejam %{target}'
148
150
  Rescues_like: '%{binding} %{must} capturar exceções semelhantes a %{target}'
@@ -1,12 +1,12 @@
1
1
  module Mulang::Expectation
2
2
  SMELLS = %w(DiscardsExceptions DoesConsolePrint DoesNilTest DoesNullTest DoesTypeTest
3
- HasAssignmentReturn HasCodeDuplication HasEmptyIfBranches HasRedundantRepeat HasLongParameterList
3
+ HasAssignmentReturn HasCodeDuplication HasEmptyIfBranches HasEmptyRepeat HasRedundantRepeat HasLongParameterList
4
4
  HasMisspelledBindings HasMisspelledIdentifiers
5
5
  HasRedundantBooleanComparison HasRedundantGuards HasRedundantIf
6
6
  HasRedundantLambda HasRedundantLocalVariableReturn HasRedundantParameter
7
7
  HasRedundantReduction HasTooManyMethods HasTooShortBindings HasTooShortIdentifiers HasUnreachableCode
8
8
  HasWrongCaseBinding HasWrongCaseIdentifiers IsLongCode OverridesEqualOrHashButNotBoth
9
- ReturnsNil ReturnsNull UsesCut UsesFail UsesUnificationOperator)
9
+ ReturnsNil ReturnsNull ShouldInvertIfCondition UsesCut UsesFail UsesUnificationOperator)
10
10
 
11
11
  def self.guess_type(expectation)
12
12
  if expectation[:binding] == '<<custom>>'
@@ -1,4 +1,4 @@
1
1
  module Mulang
2
- VERSION = "5.1.0.2"
3
- MULANG_VERSION = "5.1.0"
2
+ VERSION = "5.2.0"
3
+ MULANG_VERSION = "5.2.0"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mulang
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.0.2
4
+ version: 5.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Bulgarelli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-08 00:00:00.000000000 Z
11
+ date: 2020-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mumukit-core
@@ -124,7 +124,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
126
  requirements: []
127
- rubygems_version: 3.0.3
127
+ rubyforge_project:
128
+ rubygems_version: 2.7.7
128
129
  signing_key:
129
130
  specification_version: 4
130
131
  summary: Gem wrapper for mulang tool