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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bbfc3d3119b217a814903fa6af591daadf41700c
4
- data.tar.gz: 3339d6dedbeb3c11d37ee0c3d7486ef07d8f5c89
3
+ metadata.gz: d449d11e6c57df4afd917cd98ac58b2b692c488e
4
+ data.tar.gz: 80bb55e731a91b0e64ef3feb53c3b8bbc519eb98
5
5
  SHA512:
6
- metadata.gz: 5372e9ff514ccf44afbc60738b76544553c94306e2484085a80bf6350dec7f1f3fd842d76e3d1838f7a3dd3791016591612e8b92dbaf214e9ac2c9fb6951f2cd
7
- data.tar.gz: 1fef36149174569a9663171755ccc579a0ed1eec66a57e379a63d772ef9d31c00ba8f20088df893a54aaa7c6196098ea6d1658e76cb0768f0dc9609f9beab1d8
6
+ metadata.gz: f1911215b98351100b217713fef96f80d455220edc4784944011e9b2045529cec5a33d96ebe219466e65db99564634c1b6e693019097473a34e338aff055c4bf
7
+ data.tar.gz: a1a60628c89d149d082197a0abb85d3ab050ef2352b518c6ee0139e189cfc280f74662e9ef7a4843572e6f2eb19f48f6c93baeaf4de3ae0474fb2f9276327519
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.0.beta1
1
+ 2.0.0.beta2
@@ -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
- RDF::Vocabulary.load(vocab, class_name: "D#{Digest::MD5.hexdigest vocab}")
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.beta1
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-02-22 00:00:00.000000000 Z
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.5.1
370
+ rubygems_version: 2.4.8
371
371
  signing_key:
372
372
  specification_version: 4
373
373
  summary: RDFa reader/writer for RDF.rb.