mulang 6.0.2 → 6.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/mulang +0 -0
- data/lib/locales/en.yml +1 -1
- data/lib/locales/es.yml +1 -1
- data/lib/locales/pt.yml +1 -1
- data/lib/mulang/expectation.rb +1 -1
- data/lib/mulang/tokens.rb +1 -0
- data/lib/mulang/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 182d9dc0befc244e258aad82df8004b96c4cfbf4e3c61b2267fd8eca5cea24f5
|
4
|
+
data.tar.gz: 47e8caed69cf3e891b1b61edae11351d7c994153d3556676926117e9ae1f5efd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ec56318e2bead4146346ae0841a0967b51aad104ff0f45ad4e315bc6c71dada1784ce70c2d4f3128ee2bf867994528a67665d2d40e7350322effd0551b8d6be
|
7
|
+
data.tar.gz: 5bded1ee77300941d9353b0ffef44b7d59d113a3d79e643a3b1278d3f5e4deb4a1787101e3026d8038489c5e208c75a09f130f657e69484ec7cd051df13e8d33
|
data/bin/mulang
CHANGED
Binary file
|
data/lib/locales/en.yml
CHANGED
@@ -171,7 +171,7 @@ en:
|
|
171
171
|
UsesComprehension: '%{binding} %{must} use comprehensions'
|
172
172
|
UsesConditional: '%{binding} %{must} use conditionals'
|
173
173
|
UsesCut: '%{binding} uses <code>!</li> operator, which is a bad practice'
|
174
|
-
|
174
|
+
UsesDynamicPolymorphism: '%{binding} %{must} use polymorphism'
|
175
175
|
UsesDynamicMethodOverload: '%{binding} %{must} use overload'
|
176
176
|
UsesFail: '%{binding} uses <code>%{keyword_Fail}</li>, which is a bad practice'
|
177
177
|
UsesFindall: '%{binding} %{must} use <code>%{keyword_Findall}</code>'
|
data/lib/locales/es.yml
CHANGED
@@ -183,7 +183,7 @@ es:
|
|
183
183
|
UsesComprehension: '%{binding} %{must} emplear listas por comprensión'
|
184
184
|
UsesConditional: '%{binding} %{must} utilizar condicionales'
|
185
185
|
UsesCut: '%{binding} usa el operador !, lo cual es una mala práctica'
|
186
|
-
|
186
|
+
UsesDynamicPolymorphism: '%{binding} %{must} usar polimorfismo'
|
187
187
|
UsesDynamicMethodOverload: '%{binding} %{must} usar sobrecarga'
|
188
188
|
UsesExceptionHandling: '%{binding} %{must} realizar manejo de excepciones'
|
189
189
|
UsesExceptions: '%{binding} %{must} usar excepciones'
|
data/lib/locales/pt.yml
CHANGED
@@ -175,7 +175,7 @@ pt:
|
|
175
175
|
UsesComprehension: '%{binding} %{must} usar listas pelo entendimento'
|
176
176
|
UsesConditional: '%{binding} %{must} usar conditional'
|
177
177
|
UsesCut: '%{binding} usa o operador !, que é uma má prática'
|
178
|
-
|
178
|
+
UsesDynamicPolymorphism: '%{binding} %{must} usar polimorfismo'
|
179
179
|
UsesDynamicMethodOverload: '%{binding} %{must} usar sobrecarga'
|
180
180
|
UsesExceptionHandling: '%{binding} %{must} executar o tratamento de exceção'
|
181
181
|
UsesExceptions: '%{binding} %{must} usar exceções'
|
data/lib/mulang/expectation.rb
CHANGED
@@ -72,7 +72,7 @@ module Mulang::Expectation
|
|
72
72
|
def self.guess_type(expectation)
|
73
73
|
if expectation[:binding] == '<<custom>>'
|
74
74
|
Custom
|
75
|
-
elsif expectation[:inspection] =~
|
75
|
+
elsif expectation[:inspection] =~ /^(Not\:)?Has.*/ && !has_smell?(expectation[:inspection])
|
76
76
|
V0
|
77
77
|
else
|
78
78
|
V2
|
data/lib/mulang/tokens.rb
CHANGED
@@ -207,6 +207,7 @@ module Mulang
|
|
207
207
|
operator_BitwiseXor: '^',
|
208
208
|
operator_BitwiseLeftShift: '<<',
|
209
209
|
operator_BitwiseRightShift: '>>',
|
210
|
+
operator_Size: 'length',
|
210
211
|
operator_Hash: 'hash',
|
211
212
|
operator_ForwardComposition: '>>',
|
212
213
|
operator_BackwardComposition: '<<'
|
data/lib/mulang/version.rb
CHANGED
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: 6.0.
|
4
|
+
version: 6.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Franco Bulgarelli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-01
|
11
|
+
date: 2021-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mumukit-core
|