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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cd19d9b02be4c4299a532621f5de1874a26e0ec2acdcd3744066b8f96fa7f72a
4
- data.tar.gz: cdfecb5ce6bd98fe9a1666793ec9bf83b61a6d7d85c92d13520211b04133b03e
3
+ metadata.gz: c58f2482565774c9286029d5bce3bf05cd42fcfb7c9a44dfb86bffc517cda706
4
+ data.tar.gz: 48a86f55d1e32efa7e68d2935b4dbd7278b50c97a0db72398feb890587b3e047
5
5
  SHA512:
6
- metadata.gz: 2a3888189acbb6e93e752700411e5041345abe9272db0d8076e22b2a51ce606515c5c835541ce962df7f89d20c34d8f2f4ea39f7bb98791423f820be7c9c1833
7
- data.tar.gz: 78e30a2ce9fde63f548d56667cf938334ef4efaaca044494d55616bfedacd5a8c262a81173b689af39b7318eff3871314c399a658f7d945e958951b7f2918c13
6
+ metadata.gz: 1c7d1e1787e04fe8f2fd0237fa02a9dab445be547482e844a5cbb42589053feb39dc809d5e5fa7819a3b57ef70963ef6b19fd751fc823ad11d15b530d3512aa1
7
+ data.tar.gz: 5bf4b8d145f0bc2362c8b1ad1d8ce8d063d252f99203d41371bc3624a96d5365448c286458dc4b9c421ceed81c052dd41cddfb2cdf7a186416113b3a52250ee8
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  module Inspection
3
- VERSION = '5.0.0'
3
+ VERSION = '5.1.0'
4
4
  end
5
5
  end
@@ -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}'
@@ -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}'
@@ -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.0.0
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-08 00:00:00.000000000 Z
11
+ date: 2019-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mumukit-core