rdf-rdfa 3.2.2 → 3.2.3

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: 9f75ea1f2749a0d47ceb49a9968b419523908148428154510a276ea9353982e6
4
- data.tar.gz: 06acea15580c87656d573d7cc1e931b9510cd560d786c81355798ad280adfb26
3
+ metadata.gz: 7feec7f60f1dafd543529dbd168e96a883603a8c1c509ee6f9184c05e6f09fb9
4
+ data.tar.gz: 43f0c661e4bb2b4cb9e9b49bf63b331659f972490e859216fa20988da065c532
5
5
  SHA512:
6
- metadata.gz: c53ac6cede929d3fe122f9eb722d2d6abb01b7064943231cf909f0ecea1c4d25f20e4e44cac534e388c7a6a57796c8b7b3c673098f320e654d7c44a0e7541aab
7
- data.tar.gz: 871fecae5aa1b85e48fe8ad476d3e250587ac25da3f9f5328c2dc5477b4536e0ccbd9636b86a54b78fdfce3803862c1f1ea4fee6f8ee6cc5fdd15fdfd93ff13e
6
+ metadata.gz: 93b6f5dded6a6d832dd6aa0a65f89c307d763266a670050e23e1721464ccedf5e3f7fc153ca3cfcecb63350d6fd7ae5fd55572afb9dcbb66862925f25ca96905
7
+ data.tar.gz: 9ba0a940b2540d44a51dd009112151f80b4da99e5682a98797e4169ce04eaa5fccfe71a3e5f8ce701d619db14d1e7f0a4e55ca9bbd177a6b85e738181acd7917
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [RDFa][RDFa 1.1 Core] parser for RDF.rb.
4
4
 
5
- [![Gem Version](https://badge.fury.io/rb/rdf-rdfa.png)](https://badge.fury.io/rb/rdf-rdfa)
5
+ [![Gem Version](https://badge.fury.io/rb/rdf-rdfa.svg)](https://badge.fury.io/rb/rdf-rdfa)
6
6
  [![Build Status](https://github.com/ruby-rdf/rdf-rdfa/workflows/CI/badge.svg?branch=develop)](https://github.com/ruby-rdf/rdf-rdfa/actions?query=workflow%3ACI)
7
7
  [![Coverage Status](https://coveralls.io/repos/ruby-rdf/rdf-rdfa/badge.svg?branch=develop)](https://coveralls.io/github/ruby-rdf/rdf-rdfa?branch=develop)
8
8
  [![Gitter chat](https://badges.gitter.im/ruby-rdf/rdf.png)](https://gitter.im/ruby-rdf/rdf)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.2.2
1
+ 3.2.3
@@ -35,8 +35,8 @@ module RDF::RDFa
35
35
  # @return [String]
36
36
  def language
37
37
  case
38
- when @node.attribute_with_ns("lang", RDF::XML.to_s)
39
- @node.attribute_with_ns("lang", RDF::XML.to_s)
38
+ when @node.attribute_with_ns("lang", "http://www.w3.org/XML/1998/namespace")
39
+ @node.attribute_with_ns("lang", "http://www.w3.org/XML/1998/namespace")
40
40
  when @node.attribute("xml:lang")
41
41
  @node.attribute("xml:lang").to_s
42
42
  when @node.attribute("lang")
@@ -49,7 +49,7 @@ module RDF::RDFa
49
49
  #
50
50
  # @return [String]
51
51
  def base
52
- @node.attribute_with_ns("base", RDF::XML.to_s) || @node.attribute('xml:base')
52
+ @node.attribute_with_ns("base", "http://www.w3.org/XML/1998/namespace") || @node.attribute('xml:base')
53
53
  end
54
54
 
55
55
  def display_path
@@ -303,7 +303,7 @@ module RDF::RDFa
303
303
  base_el = @doc.at_css("html>head>base")
304
304
  base = base.join(base_el.attribute("href").to_s.split("#").first) if base_el
305
305
  else
306
- xml_base = root.attribute_with_ns("base", RDF::XML.to_s) || root.attribute('xml:base') if root
306
+ xml_base = root.attribute_with_ns("base", "http://www.w3.org/XML/1998/namespace") || root.attribute('xml:base') if root
307
307
  base = base.join(xml_base) if xml_base
308
308
  end
309
309
 
@@ -36,9 +36,9 @@ module RDF::RDFa
36
36
  #
37
37
  # @return [String]
38
38
  def language
39
- language = case
40
- when @node.attribute("lang", RDF::XML.to_s)
41
- @node.attribute("lang", RDF::XML.to_s)
39
+ case
40
+ when @node.attribute("lang", "http://www.w3.org/XML/1998/namespace")
41
+ @node.attribute("lang", "http://www.w3.org/XML/1998/namespace")
42
42
  when @node.attribute("xml:lang")
43
43
  @node.attribute("xml:lang").to_s
44
44
  when @node.attribute("lang")
@@ -51,7 +51,7 @@ module RDF::RDFa
51
51
  #
52
52
  # @return [String]
53
53
  def base
54
- @node.attribute("base", RDF::XML.to_s) || @node.attribute('xml:base')
54
+ @node.attribute("base", "http://www.w3.org/XML/1998/namespace") || @node.attribute('xml:base')
55
55
  end
56
56
 
57
57
  def display_path
@@ -224,7 +224,7 @@ module RDF::RDFa
224
224
  @base_uri = base_uri ? base_uri.to_s : nil
225
225
 
226
226
  # Only parse as XML, no HTML mode
227
- doc = ::REXML::Document.new(input.respond_to?(:read) ? input.read : input.to_s)
227
+ ::REXML::Document.new(input.respond_to?(:read) ? input.read : input.to_s)
228
228
  end
229
229
  end
230
230
 
@@ -331,7 +331,7 @@ module RDF::RDFa
331
331
  base_el = ::REXML::XPath.first(@doc, "/html/head/base") rescue nil
332
332
  base = base.join(base_el.attribute("href").to_s.split("#").first) if base_el
333
333
  else
334
- xml_base = root.attribute("base", RDF::XML.to_s) || root.attribute('xml:base') if root
334
+ xml_base = root.attribute("base", "http://www.w3.org/XML/1998/namespace") || root.attribute('xml:base') if root
335
335
  base = base.join(xml_base) if xml_base
336
336
  end
337
337
 
@@ -155,7 +155,4 @@ module RDF
155
155
  "dc:description": "is the class for all warnings".freeze,
156
156
  subClassOf: "rdfa:PGClass".freeze
157
157
  end
158
-
159
- XML = Class.new(Vocabulary("http://www.w3.org/XML/1998/namespace"))
160
- XSI = Class.new(Vocabulary("http://www.w3.org/2001/XMLSchema-instance"))
161
158
  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.2.2
4
+ version: 3.2.3
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: 2023-04-05 00:00:00.000000000 Z
12
+ date: 2023-07-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rdf
@@ -291,7 +291,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
291
291
  - !ruby/object:Gem::Version
292
292
  version: '0'
293
293
  requirements: []
294
- rubygems_version: 3.4.6
294
+ rubygems_version: 3.3.26
295
295
  signing_key:
296
296
  specification_version: 4
297
297
  summary: RDFa reader/writer for RDF.rb.