rdf-rdfa 3.1.1 → 3.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/rdf/rdfa/reader/nokogiri.rb +4 -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: 417ba955ce570c72bfe1754246a214b35597c0c8ab65df29457f28b21f0e89ef
|
4
|
+
data.tar.gz: a266a47e8d0548e57f4033d183235139c658d0663b3983080af492555d52150d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5103efb22006992f5e8f63d27cecd868563a6352a0432e112a19ff9a531f7e2eeeb1fa8ccaef3f3d7db381942065bb931957f97fcd539d6c4b35c8a0998db0b
|
7
|
+
data.tar.gz: b5edc843e6b115cce6a5ccb9207e53beb3590c5007465336953b11fced26fffe955602cbd62b28352eddadc2aea3d651ec98aeb6318d0556b4c6783568430dda
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.1.
|
1
|
+
3.1.2
|
@@ -34,7 +34,7 @@ module RDF::RDFa
|
|
34
34
|
#
|
35
35
|
# @return [String]
|
36
36
|
def language
|
37
|
-
|
37
|
+
case
|
38
38
|
when @node.attribute_with_ns("lang", RDF::XML.to_s)
|
39
39
|
@node.attribute_with_ns("lang", RDF::XML.to_s)
|
40
40
|
when @node.attribute("xml:lang")
|
@@ -286,7 +286,9 @@ module RDF::RDFa
|
|
286
286
|
# FIXME: Nokogiri version 1.5 thinks many HTML5 elements are invalid, so just ignore all Tag errors.
|
287
287
|
# Nokogumbo might make this simpler
|
288
288
|
if @host_language == :html5
|
289
|
-
@doc.errors.reject
|
289
|
+
@doc.errors.reject do |e|
|
290
|
+
e.to_s =~ %r{(The doctype must be the first token in the document)|(Expected a doctype token)|(Unexpected '\?' where start tag name is expected)}
|
291
|
+
end
|
290
292
|
else
|
291
293
|
@doc.errors.reject {|e| e.to_s =~ /(?:Tag \w+ invalid)|(?:Missing attribute name)/}
|
292
294
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdf-rdfa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gregg
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-
|
12
|
+
date: 2020-07-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rdf
|