rdf-rdfxml 2.1.0 → 2.2.0

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: c09e2c03981f607db89feff748f72476728de1c7
4
- data.tar.gz: 671669e3b8643b452e928c50f5735f0a9af723af
3
+ metadata.gz: b8310f26e09171c0aceb847061bf5208733d3ec7
4
+ data.tar.gz: cc188f02a0b0c950cdcd96e406fa3a9574940509
5
5
  SHA512:
6
- metadata.gz: 4aea12d47881ae63f93c4a74d4dde1e5620ee1637031ca1315d11150d7bfe6565e1330a5171d1dae5764923d6beb94bcad7d6fc1a08616aa178bad8bceda2e48
7
- data.tar.gz: ca9dc408d616e72c3a6f7e2fede59cc9971ed790620f27f1921c9c817ad87d1a0daf9971cd5ffa1c6c271b63d4ac48fed232aebd7f541b7638705f504422553c
6
+ metadata.gz: 726c8a2f593b0c43c18e752a658d0208bb2e4f3397e3672c5a38052881e9fee845e32370c7f3d4310dccb0cc8f5c84f5eeb3244adf6d24b49608c0a215858c90
7
+ data.tar.gz: 1140cf589d9b9a678f9ed7e1b761729276c1c0fc3a1f37504894b23d8d05bb37b6acb4425b4a4d317ba6206e78be3c23473857fa3fc82b87cb6580b02d016c95
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.0
1
+ 2.2.0
@@ -38,8 +38,7 @@ module RDF::RDFXML
38
38
  - if expanded_type.start_with?('_:')
39
39
  - haml_tag(get_qname(RDF.type), "rdf:nodeID" => expanded_type[2..-1])
40
40
  -else
41
- - # FIXME: closing tag forces close tag, as :/ is not honored in 5.0.1
42
- - haml_tag(get_qname(RDF.type), "", "rdf:resource" => expanded_type)
41
+ - haml_tag(get_qname(RDF.type), "rdf:resource" => expanded_type)
43
42
  - predicates.each do |p|
44
43
  = yield(p)
45
44
  ),
@@ -60,11 +59,9 @@ module RDF::RDFXML
60
59
  - haml_tag(property, :"<", "xml:lang" => object.language, "rdf:datatype" => (object.datatype unless object.plain?)) do
61
60
  = object.value.to_s.encode(xml: :text)
62
61
  - elsif object.node?
63
- - # FIXME: closing tag forces close tag, as :/ is not honored in 5.0.1
64
- - haml_tag(property, "", "rdf:nodeID" => object.id)
62
+ - haml_tag(property, :"/", "rdf:nodeID" => object.id)
65
63
  - else
66
- - # FIXME: closing tag forces close tag, as :/ is not honored in 5.0.1
67
- - haml_tag(property, "", "rdf:resource" => relativize(object))
64
+ - haml_tag(property, :"/", "rdf:resource" => relativize(object))
68
65
  ),
69
66
 
70
67
  # Outpust for a list
@@ -78,11 +75,9 @@ module RDF::RDFXML
78
75
  - if recurse && res = yield(object)
79
76
  = res
80
77
  - elsif object.node?
81
- - # FIXME: closing tag forces close tag, as :/ is not honored in 5.0.1
82
- - haml_tag(get_qname(RDF.Description), "", "rdf:nodeID" => (object.id if ref_count(object) > 1))
78
+ - haml_tag(get_qname(RDF.Description), :"/", "rdf:nodeID" => (object.id if ref_count(object) > 1))
83
79
  - else
84
- - # FIXME: closing tag forces close tag, as :/ is not honored in 5.0.1
85
- - haml_tag(get_qname(RDF.Description), "", "rdf:about" => relativize(object))
80
+ - haml_tag(get_qname(RDF.Description), :"/", "rdf:about" => relativize(object))
86
81
  ),
87
82
  }
88
83
  HAML_TEMPLATES = {base: BASE_HAML}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf-rdfxml
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregg