rdf-microdata 3.2.0 → 3.3.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
  SHA256:
3
- metadata.gz: c40058dfbaf168c8469eec752aabb848c20b7a2741588e92e54a758ef067f700
4
- data.tar.gz: 2d72ad155b19196055839c53e762ad697b82797a854a31bc7068d6c4652c56d5
3
+ metadata.gz: 26ef8eb271d343ac3d24af0dc8b5e1951e7175d827e41d8f1929f0dbe306ad4f
4
+ data.tar.gz: da7a5a4e51cce5cae387ce7b105f64039f16ea7dd4be468db8afa9a68dcde0ff
5
5
  SHA512:
6
- metadata.gz: 6c93b3a0781394c2cf72b81c1d642e31f28336e65434e61e1ec98b53c84287fb2ceaeb85489ab29c714d64fb490b9cfad78098ec47db8e5222ba353e3ef7f79d
7
- data.tar.gz: efd38042dbf48993cbb02f5e14fac1a683dd24250dfd9517ee00d4fbdab1fd6edbd5d5cbe60c40f89d273566c9c9a74d179dd46bacc41338f70cf77a1a555983
6
+ metadata.gz: ad9feb6848aed4a271ecc888e73894b70516f2722785387f3a232e92f5395887e40b8cac726fd03219028710325f28607a712ccba4264d0274e34851da279489
7
+ data.tar.gz: c3d7c142c913a527a2d2a0f7439ef7ed0f06b930868df582ea93e6d0d77cc9199d83e56e53914380f0400ad5c6161c209a83dcefa11276205f0e3682f6fde448
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [Microdata][] parser for RDF.rb.
4
4
 
5
- [![Gem Version](https://badge.fury.io/rb/rdf-microdata.png)](https://badge.fury.io/rb/rdf-microdata)
5
+ [![Gem Version](https://badge.fury.io/rb/rdf-microdata.svg)](https://badge.fury.io/rb/rdf-microdata)
6
6
  [![Build Status](https://github.com/ruby-rdf/rdf-microdata/workflows/CI/badge.svg?branch=develop)](https://github.com/ruby-rdf/rdf-microdata/actions?query=workflow%3ACI)
7
7
  [![Coverage Status](https://coveralls.io/repos/ruby-rdf/rdf-microdata/badge.svg?branch=develop)](https://coveralls.io/github/ruby-rdf/rdf-microdata?branch=develop)
8
8
  [![Gitter chat](https://badges.gitter.im/ruby-rdf/rdf.png)](https://gitter.im/ruby-rdf/rdf)
@@ -46,11 +46,11 @@ GRDDL-type triple generation, such as for html>head>title anchor tags.
46
46
  If the `RDFa` parser is available, {RDF::Microdata::Format} will not assert content type `text/html` or file extension `.html`, as this is also asserted by RDFa. Instead, the RDFa reader will invoke the microdata reader if an `@itemscope` attribute is detected.
47
47
 
48
48
  ## Dependencies
49
- * [RDF.rb](https://rubygems.org/gems/rdf) (~> 3.2)
50
- * [RDF::RDFa](https://rubygems.org/gems/rdf-xsd) (~> 3.2)
51
- * [RDF::XSD](https://rubygems.org/gems/rdf-xsd) (~> 3.2)
49
+ * [RDF.rb](https://rubygems.org/gems/rdf) (~> 3.3)
50
+ * [RDF::RDFa](https://rubygems.org/gems/rdf-xsd) (~> 3.3)
51
+ * [RDF::XSD](https://rubygems.org/gems/rdf-xsd) (~> 3.3)
52
52
  * [HTMLEntities](https://rubygems.org/gems/htmlentities) ('~> 4.3')
53
- * [Nokogiri](https://rubygems.org/gems/nokogiri) (~> 1.12)
53
+ * [Nokogiri](https://rubygems.org/gems/nokogiri) (~> 1.15)
54
54
 
55
55
  ## Documentation
56
56
  Full documentation available on [Rubydoc.info][Microdata doc]
@@ -71,7 +71,7 @@ The reader exposes a `#rdfa` method, which can be used to retrieve the transform
71
71
 
72
72
  ## Resources
73
73
  * [RDF.rb][RDF.rb]
74
- * [Documentation](https://www.rubydoc.info/github/ruby-rdf/rdf-microdata/)
74
+ * [Documentation](https://ruby-rdf.github.io/rdf-microdata/)
75
75
  * [History](file:History.md)
76
76
  * [Microdata][]
77
77
  * [Microdata RDF][]
@@ -113,4 +113,4 @@ see <https://unlicense.org/> or the accompanying {file:UNLICENSE} file.
113
113
  [PDD]: https://unlicense.org/#unlicensing-contributions
114
114
  [Microdata]: https://dev.w3.org/html5/md/Overview.html "HTML Microdata"
115
115
  [Microdata RDF]: https://dvcs.w3.org/hg/htmldata/raw-file/default/microdata-rdf/index.html "Microdata to RDF"
116
- [Microdata doc]: https://rubydoc.info/github/ruby-rdf/rdf-microdata/frames
116
+ [Microdata doc]: https://ruby-rdf.github.io/rdf-microdata/frames
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.2.0
1
+ 3.3.0
@@ -26,7 +26,11 @@ module RDF::Microdata
26
26
  # Only define content type if RDFa is not available.
27
27
  # The Microdata processor will be launched from there
28
28
  # otherwise.
29
- content_type 'text/html;q=0.5', extension: :html unless RDF::Format.for(:rdfa)
29
+ unless RDF::Format.for(:rdfa)
30
+ content_type 'text/html;q=0.5',
31
+ extension: :html,
32
+ uri: 'http://www.w3.org/ns/formats/microdata'
33
+ end
30
34
  reader { RDF::Microdata::Reader }
31
35
 
32
36
  ##
@@ -97,7 +97,7 @@ module RDF::Microdata
97
97
  # Add @vocab to referenced using the closest ansestor having @vocab of item.
98
98
  # If the element with id reference has no resource attribute, add a resource attribute whose value is a NUMBER SIGN U+0023 followed by reference to the element.
99
99
  # If the element with id reference has no typeof attribute, add a typeof="rdfa:Pattern" attribute to the element.
100
- referenced.wrap(%(<div vocab="#{item_vocab}" resource="##{ref}" typeof="rdfa:Pattern"))
100
+ referenced.wrap(%(<div vocab="#{item_vocab}" resource="##{ref}" typeof="rdfa:Pattern" />))
101
101
 
102
102
  # Add a link child element to the element that represents the item, with a rel="rdfa:copy" attribute and an href attribute whose value is a NUMBER SIGN U+0023 followed by reference
103
103
  link = ::Nokogiri::XML::Node.new('link', input)
@@ -39,7 +39,7 @@ module RDF::Microdata
39
39
 
40
40
  ##
41
41
  # Reader options
42
- # @see https://www.rubydoc.info/github/ruby-rdf/rdf/RDF/Reader#options-class_method
42
+ # @see https://ruby-rdf.github.io/rdf/RDF/Reader#options-class_method
43
43
  def self.options
44
44
  super + [
45
45
  RDF::CLI::Option.new(
data/lib/rdf/microdata.rb CHANGED
@@ -15,7 +15,7 @@ module RDF
15
15
  # end
16
16
  # end
17
17
  #
18
- # @see https://www.rubydoc.info/github/ruby-rdf/rdf/
18
+ # @see https://ruby-rdf.github.io/rdf/
19
19
  # @see https://www.w3.org/TR/2011/WD-microdata-20110525/
20
20
  #
21
21
  # @author [Gregg Kellogg](https://greggkellogg.net/)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf-microdata
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.3.0
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: 2021-12-13 00:00:00.000000000 Z
12
+ date: 2023-09-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rdf
@@ -17,42 +17,42 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '3.2'
20
+ version: '3.3'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: '3.2'
27
+ version: '3.3'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rdf-rdfa
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: '3.2'
34
+ version: '3.3'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: '3.2'
41
+ version: '3.3'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rdf-xsd
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: '3.2'
48
+ version: '3.3'
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: '3.2'
55
+ version: '3.3'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: htmlentities
58
58
  requirement: !ruby/object:Gem::Requirement
@@ -73,14 +73,20 @@ dependencies:
73
73
  requirements:
74
74
  - - "~>"
75
75
  - !ruby/object:Gem::Version
76
- version: '1.12'
76
+ version: '1.15'
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ version: 1.15.4
77
80
  type: :runtime
78
81
  prerelease: false
79
82
  version_requirements: !ruby/object:Gem::Requirement
80
83
  requirements:
81
84
  - - "~>"
82
85
  - !ruby/object:Gem::Version
83
- version: '1.12'
86
+ version: '1.15'
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: 1.15.4
84
90
  - !ruby/object:Gem::Dependency
85
91
  name: equivalent-xml
86
92
  requirement: !ruby/object:Gem::Requirement
@@ -115,14 +121,14 @@ dependencies:
115
121
  requirements:
116
122
  - - "~>"
117
123
  - !ruby/object:Gem::Version
118
- version: '3.10'
124
+ version: '3.12'
119
125
  type: :development
120
126
  prerelease: false
121
127
  version_requirements: !ruby/object:Gem::Requirement
122
128
  requirements:
123
129
  - - "~>"
124
130
  - !ruby/object:Gem::Version
125
- version: '3.10'
131
+ version: '3.12'
126
132
  - !ruby/object:Gem::Dependency
127
133
  name: rspec-its
128
134
  requirement: !ruby/object:Gem::Requirement
@@ -143,56 +149,56 @@ dependencies:
143
149
  requirements:
144
150
  - - "~>"
145
151
  - !ruby/object:Gem::Version
146
- version: '3.2'
152
+ version: '3.3'
147
153
  type: :development
148
154
  prerelease: false
149
155
  version_requirements: !ruby/object:Gem::Requirement
150
156
  requirements:
151
157
  - - "~>"
152
158
  - !ruby/object:Gem::Version
153
- version: '3.2'
159
+ version: '3.3'
154
160
  - !ruby/object:Gem::Dependency
155
161
  name: rdf-turtle
156
162
  requirement: !ruby/object:Gem::Requirement
157
163
  requirements:
158
164
  - - "~>"
159
165
  - !ruby/object:Gem::Version
160
- version: '3.2'
166
+ version: '3.3'
161
167
  type: :development
162
168
  prerelease: false
163
169
  version_requirements: !ruby/object:Gem::Requirement
164
170
  requirements:
165
171
  - - "~>"
166
172
  - !ruby/object:Gem::Version
167
- version: '3.2'
173
+ version: '3.3'
168
174
  - !ruby/object:Gem::Dependency
169
175
  name: rdf-isomorphic
170
176
  requirement: !ruby/object:Gem::Requirement
171
177
  requirements:
172
178
  - - "~>"
173
179
  - !ruby/object:Gem::Version
174
- version: '3.2'
180
+ version: '3.3'
175
181
  type: :development
176
182
  prerelease: false
177
183
  version_requirements: !ruby/object:Gem::Requirement
178
184
  requirements:
179
185
  - - "~>"
180
186
  - !ruby/object:Gem::Version
181
- version: '3.2'
187
+ version: '3.3'
182
188
  - !ruby/object:Gem::Dependency
183
189
  name: json-ld
184
190
  requirement: !ruby/object:Gem::Requirement
185
191
  requirements:
186
192
  - - "~>"
187
193
  - !ruby/object:Gem::Version
188
- version: '3.2'
194
+ version: '3.3'
189
195
  type: :development
190
196
  prerelease: false
191
197
  version_requirements: !ruby/object:Gem::Requirement
192
198
  requirements:
193
199
  - - "~>"
194
200
  - !ruby/object:Gem::Version
195
- version: '3.2'
201
+ version: '3.3'
196
202
  description: Reads HTML Microdata as RDF.
197
203
  email: public-rdf-ruby@w3.org
198
204
  executables: []
@@ -216,10 +222,15 @@ files:
216
222
  - lib/rdf/microdata/registry.rb
217
223
  - lib/rdf/microdata/version.rb
218
224
  - lib/rdf/microdata/vocab.rb
219
- homepage: https://ruby-rdf.github.com/rdf-microdata
225
+ homepage: https://github.com/ruby-rdf/rdf-microdata
220
226
  licenses:
221
227
  - Unlicense
222
- metadata: {}
228
+ metadata:
229
+ documentation_uri: https://ruby-rdf.github.io/rdf-microdata
230
+ bug_tracker_uri: https://github.com/ruby-rdf/rdf-microdata/issues
231
+ homepage_uri: https://github.com/ruby-rdf/rdf-microdata
232
+ mailing_list_uri: https://lists.w3.org/Archives/Public/public-rdf-ruby/
233
+ source_code_uri: https://github.com/ruby-rdf/rdf-microdata
223
234
  post_install_message:
224
235
  rdoc_options: []
225
236
  require_paths:
@@ -228,14 +239,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
228
239
  requirements:
229
240
  - - ">="
230
241
  - !ruby/object:Gem::Version
231
- version: '2.6'
242
+ version: '3.0'
232
243
  required_rubygems_version: !ruby/object:Gem::Requirement
233
244
  requirements:
234
245
  - - ">="
235
246
  - !ruby/object:Gem::Version
236
247
  version: '0'
237
248
  requirements: []
238
- rubygems_version: 3.3.3
249
+ rubygems_version: 3.2.33
239
250
  signing_key:
240
251
  specification_version: 4
241
252
  summary: Microdata reader for Ruby.