rdf-rdfa 3.2.1 → 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: 57e75308db5870f193ff4ab962820fa3ba1e416b40d6df62b9bc54bd1045c430
4
- data.tar.gz: b9f761b04ff31f928a61be7790a9c60c7d79090fd0664977893c533b46941bfb
3
+ metadata.gz: 7feec7f60f1dafd543529dbd168e96a883603a8c1c509ee6f9184c05e6f09fb9
4
+ data.tar.gz: 43f0c661e4bb2b4cb9e9b49bf63b331659f972490e859216fa20988da065c532
5
5
  SHA512:
6
- metadata.gz: 9707d86f3ffac0558c8308718235b4f3db79783466b656776ee8ddc78517923134fb3e1b92b6c744cb2ddb1769df96c930bcea0fd9e23d9b835fa3ca01ed64d6
7
- data.tar.gz: 397fdcb1ecf2b4d0777328c5999748dfad58f9a56f6a95f39d42c3e8cfec4eb510731199cc6cb3feb087c572f127f24ba4f0c6a27cff8cefbcc136dd7996d13a
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.1
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
@@ -764,7 +764,7 @@ module RDF::RDFa
764
764
  log_debug {"hamlify locals: #{locals.inspect}"}
765
765
 
766
766
  haml_opts = @options[:haml_options] || HAML_OPTIONS
767
- haml_runner = if Haml.const_defined?(:Template)
767
+ haml_runner = if Haml::VERSION >= "6"
768
768
  Haml::Template.new(**haml_opts) {template}
769
769
  else
770
770
  Haml::Engine.new(template, **haml_opts)
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.1
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-03 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.