mumukit-inspection 5.0.0 → 5.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mumukit/inspection.rb +10 -0
- data/lib/mumukit/inspection/version.rb +1 -1
- data/lib/mumukit/locales/en.yml +2 -0
- data/lib/mumukit/locales/es.yml +2 -0
- data/lib/mumukit/locales/pt.yml +2 -0
- 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: c58f2482565774c9286029d5bce3bf05cd42fcfb7c9a44dfb86bffc517cda706
|
4
|
+
data.tar.gz: 48a86f55d1e32efa7e68d2935b4dbd7278b50c97a0db72398feb890587b3e047
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c7d1e1787e04fe8f2fd0237fa02a9dab445be547482e844a5cbb42589053feb39dc809d5e5fa7819a3b57ef70963ef6b19fd751fc823ad11d15b530d3512aa1
|
7
|
+
data.tar.gz: 5bf4b8d145f0bc2362c8b1ad1d8ce8d063d252f99203d41371bc3624a96d5365448c286458dc4b9c421ceed81c052dd41cddfb2cdf7a186416113b3a52250ee8
|
data/lib/mumukit/inspection.rb
CHANGED
@@ -25,6 +25,16 @@ module Mumukit
|
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
28
|
+
module Html
|
29
|
+
extend Mumukit::Inspection::Extension
|
30
|
+
|
31
|
+
REGEXP = /^(?<negation>Not:)?(?<type>DeclaresAttribute):(?<target>(href|src)=.*)$/
|
32
|
+
|
33
|
+
def self.parse(inspection_s)
|
34
|
+
new_inspection REGEXP.match(inspection_s)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
28
38
|
module Source
|
29
39
|
extend Mumukit::Inspection::Extension
|
30
40
|
|
data/lib/mumukit/locales/en.yml
CHANGED
@@ -2,6 +2,8 @@
|
|
2
2
|
en:
|
3
3
|
mumukit:
|
4
4
|
inspection:
|
5
|
+
DeclaresAttribute_named: '%{binding} %{must} declare an HTML attribute %{target}'
|
6
|
+
DeclaresAttribute: '%{binding} %{must} declare HTML attributes'
|
5
7
|
DeclaresStyle_except: '%{binding} %{must} declare style distinct from %{target}'
|
6
8
|
DeclaresStyle_like: '%{binding} %{must} declare a style similar to %{target}'
|
7
9
|
DeclaresStyle_named: '%{binding} %{must} declare a style %{target}'
|
data/lib/mumukit/locales/es.yml
CHANGED
@@ -2,6 +2,8 @@
|
|
2
2
|
es:
|
3
3
|
mumukit:
|
4
4
|
inspection:
|
5
|
+
DeclaresAttribute_named: '%{binding} %{must} declarar un atributo HTML %{target}'
|
6
|
+
DeclaresAttribute: '%{binding} %{must} declarar atributos HTML'
|
5
7
|
DeclaresStyle_except: '%{binding} %{must} declarar un estilo diferente a %{target}'
|
6
8
|
DeclaresStyle_like: '%{binding} %{must} declarar un estilo parecido a %{target}'
|
7
9
|
DeclaresStyle_named: '%{binding} %{must} declarar un estilo %{target}'
|
data/lib/mumukit/locales/pt.yml
CHANGED
@@ -2,6 +2,8 @@
|
|
2
2
|
pt:
|
3
3
|
mumukit:
|
4
4
|
inspection:
|
5
|
+
DeclaresAttribute_named: '%{binding} %{must} declarar um atributo HTML %{target}'
|
6
|
+
DeclaresAttribute: '%{binding} %{must} declarar atributos HTML'
|
5
7
|
DeclaresStyle_except: '%{binding} %{must} declarar um estilo diferentes de %{target}'
|
6
8
|
DeclaresStyle_like: '%{binding} %{must} declarar um estilo semelhante a %{target}'
|
7
9
|
DeclaresStyle_named: '%{binding} %{must} declarar um estilo %{target}'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mumukit-inspection
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Franco Leonardo Bulgarelli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mumukit-core
|