rdf-rdfa 2.0.0.beta1 → 2.0.0.beta2
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/expansion.rb +4 -2
- data/lib/rdf/rdfa/reader/nokogiri.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d449d11e6c57df4afd917cd98ac58b2b692c488e
|
4
|
+
data.tar.gz: 80bb55e731a91b0e64ef3feb53c3b8bbc519eb98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1911215b98351100b217713fef96f80d455220edc4784944011e9b2045529cec5a33d96ebe219466e65db99564634c1b6e693019097473a34e338aff055c4bf
|
7
|
+
data.tar.gz: a1a60628c89d149d082197a0abb85d3ab050ef2352b518c6ee0139e189cfc280f74662e9ef7a4843572e6f2eb19f48f6c93baeaf4de3ae0474fb2f9276327519
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.0.
|
1
|
+
2.0.0.beta2
|
data/lib/rdf/rdfa/expansion.rb
CHANGED
@@ -21,8 +21,10 @@ module RDF::RDFa
|
|
21
21
|
vocabs.map! do |vocab|
|
22
22
|
begin
|
23
23
|
# Create the name with a predictable name so that it is enumerated and can be found
|
24
|
-
v = RDF::Vocabulary.find(vocab) ||
|
25
|
-
|
24
|
+
v = RDF::Vocabulary.find(vocab) || begin
|
25
|
+
vg = RDF::Graph.load(vocab)
|
26
|
+
RDF::Vocabulary.from_graph(vg, url: vocab, class_name: "D#{Digest::MD5.hexdigest vocab}") unless vg.empty?
|
27
|
+
end
|
26
28
|
rescue Exception => e
|
27
29
|
# indicate the warning if the vocabulary fails to laod
|
28
30
|
add_warning("expand", "Error loading vocabulary #{vocab}: #{e.message}", RDF::RDFA.UnresolvedVocabulary)
|
@@ -280,7 +280,7 @@ module RDF::RDFa
|
|
280
280
|
# Document errors
|
281
281
|
def doc_errors
|
282
282
|
# FIXME: Nokogiri version 1.5.5 thinks many HTML5 elements are invalid
|
283
|
-
@doc.errors.reject {|e| e.to_s =~ /(Tag (?:article|aside|audio|canvas|command|datalist|details|embed|figcaption|figure|footer|header|hgroup|keygen|main|mark|meter|nav|output|progress|ruby|section|time|video|wbr) invalid|Missing attribute name)/}
|
283
|
+
@doc.errors.reject {|e| e.to_s =~ /(Tag (?:article|aside|audio|canvas|command|data|datalist|details|embed|figcaption|figure|footer|header|hgroup|keygen|main|mark|meter|nav|output|progress|ruby|section|source|time|track|video|wbr) invalid|Missing attribute name)/}
|
284
284
|
end
|
285
285
|
|
286
286
|
##
|
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: 2.0.0.
|
4
|
+
version: 2.0.0.beta2
|
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: 2016-
|
12
|
+
date: 2016-04-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rdf
|
@@ -367,7 +367,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
367
367
|
version: 1.3.1
|
368
368
|
requirements: []
|
369
369
|
rubyforge_project: rdf-rdfa
|
370
|
-
rubygems_version: 2.
|
370
|
+
rubygems_version: 2.4.8
|
371
371
|
signing_key:
|
372
372
|
specification_version: 4
|
373
373
|
summary: RDFa reader/writer for RDF.rb.
|