relaton-w3c 1.8.0 → 1.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,16 +1,16 @@
1
1
  module RelatonW3c
2
2
  class Scrapper
3
- class << self
4
- DOCTYPES = {
5
- "CR" => "candidateRecommendation",
6
- "NOTE" => "groupNote",
7
- "PER" => "proposedEditedRecommendation",
8
- "PR" => "proposedRecommendation",
9
- "REC" => "recommendation",
10
- "RET" => "retired",
11
- "WD" => "workingDraft",
12
- }.freeze
3
+ DOCTYPES = {
4
+ "CR" => "candidateRecommendation",
5
+ "NOTE" => "groupNote",
6
+ "PER" => "proposedEditedRecommendation",
7
+ "PR" => "proposedRecommendation",
8
+ "REC" => "recommendation",
9
+ "RET" => "retired",
10
+ "WD" => "workingDraft",
11
+ }.freeze
13
12
 
13
+ class << self
14
14
  # @param hit [Hash]
15
15
  # @return [RelatonW3c::W3cBibliographicItem]
16
16
  def parse_page(hit) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
@@ -29,7 +29,7 @@ module RelatonW3c
29
29
  doctype: fetch_doctype(hit, doc),
30
30
  contributor: fetch_contributor(hit, doc),
31
31
  relation: fetch_relation(doc),
32
- keyword: hit["keyword"]
32
+ keyword: hit["keyword"],
33
33
  )
34
34
  end
35
35
 
@@ -53,7 +53,7 @@ module RelatonW3c
53
53
  titles << { content: title.gsub(/\n/, " "), type: "main" }
54
54
  end
55
55
  subtitle = doc.at(
56
- "//h2[@id='subtitle']|//p[contains(@class, 'subline')]"
56
+ "//h2[@id='subtitle']|//p[contains(@class, 'subline')]",
57
57
  )&.text
58
58
  titles << { content: subtitle, tipe: "subtitle" } if subtitle
59
59
  end
@@ -62,7 +62,7 @@ module RelatonW3c
62
62
  end
63
63
  titles.map do |t|
64
64
  title = RelatonBib::FormattedString.new(
65
- content: t[:content], language: "en", script: "Latn"
65
+ content: t[:content], language: "en", script: "Latn",
66
66
  )
67
67
  RelatonBib::TypedTitleString.new(type: t[:type], title: title)
68
68
  end
@@ -88,7 +88,7 @@ module RelatonW3c
88
88
  # @param hit [Hash]
89
89
  # @param doc [Nokogiri::HTML::Document, NilClass]
90
90
  # @return [Array<RelatonBib::BibliographicDate>]
91
- def fetch_date(hit, doc)
91
+ def fetch_date(hit, doc) # rubocop:disable Metrics/CyclomaticComplexity
92
92
  on = hit["datepub"] || doc&.at("//h2/time[@datetime]")&.attr(:datetime)
93
93
  on ||= fetch_date1(doc) || fetch_date2(doc)
94
94
  [RelatonBib::BibliographicDate.new(type: "published", on: on)] if on
@@ -143,7 +143,7 @@ module RelatonW3c
143
143
  end
144
144
  mem
145
145
  end
146
- contribs.map { |c| contrib_info **c }
146
+ contribs.map { |c| contrib_info(**c) }
147
147
  else
148
148
  hit["editor"].map do |ed|
149
149
  contrib_info name: ed, role: [{ type: "editor" }]
@@ -162,7 +162,7 @@ module RelatonW3c
162
162
  # @param element [Nokogiri::XML::Element]
163
163
  # @param type [String]
164
164
  # @return [Hash]
165
- def parse_contrib(element, type)
165
+ def parse_contrib(element, type) # rubocop:disable Metrics/MethodLength
166
166
  p = element.at("a")
167
167
  return unless p
168
168
 
@@ -187,7 +187,7 @@ module RelatonW3c
187
187
  name = RelatonBib::FullName.new completename: completename
188
188
  af = []
189
189
  if args[:org]
190
- org = RelatonBib::Organization.new **args[:org]
190
+ org = RelatonBib::Organization.new(**args[:org])
191
191
  af << RelatonBib::Affiliation.new(organization: org)
192
192
  end
193
193
  en = RelatonBib::Person.new name: name, url: args[:url], affiliation: af
@@ -1,3 +1,3 @@
1
1
  module RelatonW3c
2
- VERSION = "1.8.0".freeze
2
+ VERSION = "1.9.3".freeze
3
3
  end
@@ -10,7 +10,7 @@ module RelatonW3c
10
10
  if args[:doctype] && !TYPES.include?(args[:doctype])
11
11
  warn "[relaton-w3c] invalid document type: #{args[:doctype]}"
12
12
  end
13
- super **args
13
+ super
14
14
  end
15
15
  end
16
16
  end
@@ -5,11 +5,19 @@ require "net/http"
5
5
  module RelatonW3c
6
6
  # Class methods for search W3C standards.
7
7
  class W3cBibliography
8
+ SOURCE = "https://raw.githubusercontent.com/relaton/relaton-data-w3c/main/data/"
9
+
8
10
  class << self
9
11
  # @param text [String]
10
12
  # @return [RelatonW3c::HitCollection]
11
- def search(text)
12
- HitCollection.new text
13
+ def search(text) # rubocop:disable Metrics/MethodLength
14
+ # HitCollection.new text
15
+ file = text.sub(/^W3C\s/, "").gsub(/[\s,:\/]/, "_").squeeze("_").upcase
16
+ url = "#{SOURCE}#{file}.yaml"
17
+ resp = Net::HTTP.get_response(URI.parse(url))
18
+ hash = YAML.safe_load resp.body
19
+ item_hash = ::RelatonW3c::HashConverter.hash_to_bib(hash)
20
+ ::RelatonW3c::W3cBibliographicItem.new(**item_hash)
13
21
  rescue SocketError, Timeout::Error, Errno::EINVAL, Errno::ECONNRESET,
14
22
  EOFError, Net::HTTPBadResponse, Net::HTTPHeaderSyntaxError,
15
23
  Net::ProtocolError, Errno::ETIMEDOUT
@@ -24,11 +32,11 @@ module RelatonW3c
24
32
  def get(ref, _year = nil, _opts = {})
25
33
  warn "[relaton-w3c] (\"#{ref}\") fetching..."
26
34
  result = search(ref)
27
- return unless result.any?
35
+ return unless result # .any?
28
36
 
29
- ret = result.first.fetch
30
- warn "[relaton-w3c] (\"#{ref}\") found #{ret.title.first.title.content}"
31
- ret
37
+ # ret = result.first.fetch
38
+ warn "[relaton-w3c] (\"#{ref}\") found #{result.title.first.title.content}"
39
+ result
32
40
  end
33
41
  end
34
42
  end
@@ -0,0 +1,339 @@
1
+ 'https://www.w3.org/DOM/Group':
2
+ name: Web Hypertext Application Technology Working Group
3
+ abbrev: WHATWG
4
+ 'https://www.w3.org/2002/mmi':
5
+ name: Multimodal Interaction Working Group
6
+ 'https://www.w3.org/Math':
7
+ name: Math Working Group
8
+ 'https://www.w3.org/html/wg':
9
+ name: HTML Working Group
10
+ abbrev: HTMLWG
11
+ 'https://www.w3.org/groups/wg/htmlwg':
12
+ name: HTML Working Group
13
+ abbrev: HTMLWG
14
+ 'https://www.w3.org/XML/EXI':
15
+ name: Efficient Extensible Interchange Working Group
16
+ abbrev: EXIWG
17
+ 'https://www.w3.org/2007/OWL':
18
+ name: OWL Working Group
19
+ abbrev: OWLWG
20
+ 'https://www.w3.org/2001/sw/BestPractices':
21
+ name: Semantic Web Best Practices and Deployment Working Group
22
+ abbrev: SWBPD
23
+ 'https://www.w3.org/2000/xp/Group':
24
+ name: XML Protocol Working Group
25
+ 'https://www.w3.org/2011/audio':
26
+ name: Audio Working Group
27
+ 'https://www.w3.org/2001/12/URI':
28
+ name: URI Interest Group
29
+ 'https://www.w3.org/2005/MWI/BPWG':
30
+ name: Mobile Web Best Practices Working Group
31
+ abbrev: BPWG
32
+ 'https://www.w3.org/WAI/EO':
33
+ name: Education and Outreach Working Group
34
+ abbrev: EOWG
35
+ 'https://www.w3.org/2001/sw/WebOnt':
36
+ name: Web-Ontology Working Group
37
+ 'http://www.w3.org/MarkUp/Forms':
38
+ name: Forms Working Group
39
+ 'https://www.w3.org/Style/CSS':
40
+ name: Cascading Style Sheets Working Group
41
+ abbrev: CSSWG
42
+ 'https://www.w3.org/2001/tag':
43
+ name: Technical Architecture Group
44
+ abbrev: TAG
45
+ 'https://www.w3.org/2002/ws/policy':
46
+ name: Web Services Policy Working Group
47
+ 'https://www.w3.org/2008/xmlsec':
48
+ name: XML Security Working Group
49
+ 'https://www.w3.org/2011/prov':
50
+ name: Provenance Working Group
51
+ 'https://www.w3.org/2019/webapps':
52
+ name: Web Applications Working Group
53
+ 'https://www.w3.org/WebPlatform/WG':
54
+ name: Web Applications Working Group
55
+ 'https://www.w3.org/2008/webapps':
56
+ name: Web Applications Working Group
57
+ 'https://www.w3.org/das':
58
+ name: Devices and Sensors Working Group
59
+ abbrev: DAS WG
60
+ 'https://www.w3.org/2007/uwa':
61
+ name: Ubiquitous Web Applications Working Group
62
+ abbrev: UWA
63
+ 'https://www.w3.org/Style/XSL':
64
+ name: Extensible Stylesheet Language Family
65
+ 'https://www.w3.org/XML/Query':
66
+ name: XML Query Working Group
67
+ 'https://www.w3.org/immersive-web':
68
+ name: Immersive Web Working Group
69
+ 'https://www.w3.org/2002/ws/addr':
70
+ name: Web Services Addressing Working Group
71
+ 'https://www.w3.org/WAI/GL':
72
+ name: Accessibility Guidelines Working Group
73
+ abbrev: AG WG
74
+ 'https://www.w3.org/WAI/APA':
75
+ name: Accessible Platform Architectures
76
+ abbrev: APA WG
77
+ 'https://www.w3.org/2011/rdf-wg':
78
+ name: RDF Working Group
79
+ 'https://www.w3.org/Voice':
80
+ name: Voice Browser Working Group
81
+ 'https://www.w3.org/webperf':
82
+ name: Web Performance Working Group
83
+ 'https://www.w3.org/Graphics/SVG/WG':
84
+ name: SVG Working Group
85
+ 'https://www.w3.org/International/core':
86
+ name: Internationalization Working Group
87
+ 'https://www.w3.org/WebCommerce/IG':
88
+ name: Web Commerce Interest Group
89
+ abbrev: WCIG
90
+ 'https://www.w3.org/AudioVideo/TT':
91
+ name: Timed Text Working Group
92
+ abbrev: TTWG
93
+ 'https://www.w3.org/2002/ws/desc':
94
+ name: Web Services Description Working Group
95
+ 'https://www.w3.org/2001/sw/RDFCore':
96
+ name: RDFCore Working Group
97
+ 'https://www.w3.org/2002/ws/arch':
98
+ name: Web Services Architecture Working Group
99
+ 'https://www.w3.org/2011/webappsec':
100
+ name: Web Application Security Working Group
101
+ 'https://www.w3.org/Social/WG':
102
+ name: Social Web Working Group
103
+ 'https://www.w3.org/XML/Core':
104
+ name: XML Core Working Group
105
+ 'https://www.w3.org/2006/07/SWD':
106
+ name: Semantic Web Deployment Working Group
107
+ abbrew: SWD
108
+ 'https://www.w3.org/WAI/PF':
109
+ name: Protocols and Formats Working Group
110
+ abbrev: PFWG
111
+ 'https://www.w3.org/XML/Group/Binary':
112
+ name: XML Binary Characterization Working Group
113
+ 'https://www.w3.org/2012/sysapps':
114
+ name: System Applications Working Group
115
+ 'https://www.w3.org/2017/vc':
116
+ name: Verifiable Credentials Working Group
117
+ abbrev: VCWG
118
+ 'https://www.w3.org/sw':
119
+ name: Service Workers Working Group
120
+ 'https://www.w3.org/XML/SML':
121
+ name: Service Modeling Language
122
+ abbrev: SML WG
123
+ 'https://www.w3.org/WoT/WG':
124
+ name: Web of Things Working Group
125
+ abbrev: WoT WG
126
+ 'https://www.w3.org/2017/dxwg':
127
+ name: Dataset Exchange Working Group
128
+ abbrev: DXWG
129
+ 'https://www.w3.org/groups/wg/webmachinelearning':
130
+ name: Web Machine Learning Working Group
131
+ 'https://www.w3.org/2008/WebVideo/Annotations':
132
+ name: Media Annotations Working Group
133
+ abbrev: MAWG
134
+ 'https://www.w3.org/2001/sw/DataAccess':
135
+ name: SPARQL Working Group
136
+ 'https://www.w3.org/publishing/groups/publ-wg':
137
+ name: Audiobooks Working Group
138
+ 'https://www.w3.org/2013/csvw':
139
+ name: CSV on the Web Working Group
140
+ 'https://www.w3.org/AudioVideo':
141
+ name: Synchronized Multimedia Working Group
142
+ abbrev: SYMM WG
143
+ 'https://www.w3.org/2001/sw/grddl-wg':
144
+ name: GRDDL Working Group
145
+ 'https://www.w3.org/XML/Schema':
146
+ name: XML Schema Working Group
147
+ 'https://www.w3.org/2012/ldp':
148
+ name: Linked Data Platform Working Group
149
+ abbrev: LDP WG
150
+ 'https://www.w3.org/2006/appformats':
151
+ name: Web Application Formats Working Group
152
+ abbrev: WAF WG
153
+ 'https://www.w3.org/2007/powder':
154
+ name: Protocol for Web Description Resources Working Group
155
+ abbrev: POWDER WG
156
+ 'https://www.w3.org/2010/02/rdfa':
157
+ name: RDFa Working Group
158
+ 'https://www.w3.org/2021/sdw':
159
+ name: Spatial Data on the Web Working Group
160
+ abbrev: SDW WG
161
+ 'https://www.w3.org/groups/wg/webrtc':
162
+ name: Web Real-Time Communications Working Group
163
+ 'https://www.w3.org/2001/di/Group':
164
+ name: Device Independence Working Group
165
+ abbrev: DIWG
166
+ 'https://www.w3.org/2001/sw/interest':
167
+ name: Semantic Web Interest Group
168
+ abbrev: SWIG
169
+ 'https://www.w3.org/2016/poe':
170
+ name: Permissions and Obligations Expression Working Group
171
+ abbrev: POE WG
172
+ 'https://www.w3.org/WoT/IG':
173
+ name: WoT Interest Group
174
+ 'https://www.w3.org/Payments/WG':
175
+ name: Web Payments Working Group
176
+ 'https://www.w3.org/dpub/IG':
177
+ name: Digital Publishing Interest Group
178
+ 'https://www.w3.org/2008/geolocation':
179
+ name: Geolocation Working Group
180
+ 'https://www.w3.org/2005/MWI/DDWG':
181
+ name: Mobile Web Initiative Device Description Working Group
182
+ 'https://www.w3.org/2005/rules/wg.html':
183
+ name: RIF Working Group
184
+ 'https://www.w3.org/groups/wg/distributed-tracing':
185
+ name: Distributed Tracing Working Group
186
+ 'https://www.w3.org/publishing/groups/epub-wg':
187
+ name: EPUB 3 Working Group
188
+ 'https://www.w3.org/2010/POI':
189
+ name: Points of Interest Working Group
190
+ abbrev: POI WG
191
+ 'https://www.w3.org/MarkUp':
192
+ name: XHTML2 Working Group
193
+ 'https://www.w3.org/2011/gld':
194
+ name: Government Linked Data Working Group
195
+ abbrev: GLD WG
196
+ 'https://www.w3.org/2014/secondscreen':
197
+ name: Second Screen Working Group
198
+ 'https://www.w3.org/securepay':
199
+ name: Web Payment Security Interest Group
200
+ abbrev: WPSIG
201
+ 'https://www.w3.org/2008/WebVideo/Fragments':
202
+ name: Media Fragments Working Group
203
+ 'https://www.w3.org/2011/mbui':
204
+ name: Model-Based User Interfaces Working Group
205
+ abbrev: MBUI WG
206
+ 'https://www.w3.org/International/its':
207
+ name: ITS Working Group
208
+ 'https://www.w3.org/QA/WG':
209
+ name: Quality Assurance Working Group
210
+ abbrev: QAWG
211
+ 'https://www.w3.org/P3P/Group/Specification':
212
+ name: P3P Specification Working Group
213
+ 'https://www.w3.org/2011/webtv':
214
+ name: Media and Entertainment Interest Group
215
+ 'https://www.w3.org/2001/sw/hcls':
216
+ name: Semantic Web Health Care and Life Sciences Interest Group
217
+ abbrev: HCLS IG
218
+ 'https://www.w3.org/2002/ws/chor':
219
+ name: Web Services Choreography Working Group
220
+ 'https://www.w3.org/2005/MWI/Tests':
221
+ name: Mobile Web Test Suites Working Group
222
+ 'https://www.w3.org/XML/Group/Linking':
223
+ name: XML Linking Working Group
224
+ 'https://www.w3.org/WAI/ARIA':
225
+ name: Accessible Rich Internet Applications Working Group
226
+ abbrev: ARIA WG
227
+ 'https://www.w3.org/wasm':
228
+ name: WebAssembly Working Group
229
+ 'https://www.w3.org/groups/wg/webediting':
230
+ name: Web Editing Working Group
231
+ 'https://www.w3.org/2014/data-shapes':
232
+ name: RDF Data Shapes Working Group
233
+ 'https://www.w3.org/Mobile/IG':
234
+ name: Web and Mobile Interest Group
235
+ 'https://www.w3.org/2019/did-wg':
236
+ name: Decentralized Identifier Working Group
237
+ abbrev: DID WG
238
+ 'https://www.w3.org/egov/IG':
239
+ name: eGovernment Interest Group
240
+ 'https://www.w3.org/WAI/ER':
241
+ name: Evaluation and Repair Tools Working Group
242
+ abbrev: ERT WG
243
+ 'https://www.w3.org/2002/ws/soapjms':
244
+ name: SOAP-JMS Binding Working Group
245
+ 'https://www.w3.org/media-wg':
246
+ name: Media Working Group
247
+ 'https://www.w3.org/2018/json-ld-wg':
248
+ name: JSON-LD Working Group
249
+ 'https://www.w3.org/2020/gpu':
250
+ name: GPU for the Web Working Group
251
+ 'https://www.w3.org/Fonts/WG':
252
+ name: Web Fonts Working Group
253
+ 'https://www.w3.org/groups/wg/auto':
254
+ name: Automotive Working Group
255
+ 'https://www.w3.org/2001/sw/rdb2rdf':
256
+ name: RDB2RDF Working Group
257
+ 'https://www.w3.org/2006/WSC':
258
+ name: Web Security Context Working Group
259
+ 'https://www.w3.org/Graphics/WebCGM/WG':
260
+ name: WebCGM Working Group
261
+ 'https://www.w3.org/XML/Processing':
262
+ name: XML Processing Model Working Group
263
+ 'https://www.w3.org/testing/browser':
264
+ name: Browser Testing and Tools Working Group
265
+ 'https://www.w3.org/2004/CDF':
266
+ name: Compound Document Formats Working Group
267
+ abbrev: CDF WG
268
+ 'https://www.w3.org/2012/webcrypto':
269
+ name: Web Cryptography Working Group
270
+ 'https://www.w3.org/2002/ws/ra':
271
+ name: Web Services Resource Access Working Group
272
+ 'https://www.w3.org/2010/webevents':
273
+ name: Web Events Working Group
274
+ 'https://www.w3.org/WAI/UA':
275
+ name: User Agent Accessibility Guidelines Working Group
276
+ abbrev: UAWG
277
+ 'https://www.w3.org/groups/wg/pointer-events':
278
+ name: Pointer Events Working Group
279
+ 'https://www.w3.org/International/multilingualweb/lt':
280
+ name: MultilingualWeb-LT Working Group
281
+ 'https://www.w3.org/2017/sdwig':
282
+ name: Spatial Data on the Web Interest Group
283
+ abbrev: SDWIG
284
+ 'https://www.w3.org/Privacy':
285
+ name: Privacy Interest Group
286
+ abbrev: PING
287
+ 'https://www.w3.org/Mobile/CCPP/Group':
288
+ name: Composite Capability/Preference Profiles Working Group
289
+ abbrev: CC/PP WG
290
+ 'https://www.w3.org/2008/MW4D':
291
+ name: MW4D Interest Group
292
+ abbrev: MW4D IG
293
+ 'https://www.w3.org/2011/tracking-protection':
294
+ name: Tracking Protection Working Group
295
+ 'https://www.w3.org/annotation':
296
+ name: Annotation Working Group
297
+ 'https://www.w3.org/WAI/AU':
298
+ name: Authoring Tool Accessibility Guidelines Working Group
299
+ abbrev: ATAG WG
300
+ 'https://www.w3.org/MarkUp/CoordGroup':
301
+ name: Hypertext Coordination Group
302
+ abbrev: HCG
303
+ 'https://www.w3.org/2021/miniapps':
304
+ name: MiniApps Working Group
305
+ 'https://www.w3.org/webauthn':
306
+ name: Web Authentication Working Group
307
+ abbrev: WebAuthn WG
308
+ 'https://www.w3.org/2002/ws/sawsdl':
309
+ name: Semantic Annotations for WSDL Working Group
310
+ abbrev: SAWSDL WG
311
+ 'https://www.w3.org/2010/web-notifications':
312
+ name: Web Notification Working Group
313
+ 'https://www.w3.org/2006/webapi':
314
+ name: Web API Working Group
315
+ 'https://www.w3.org/webtransport':
316
+ name: WebTransport Working Group
317
+ 'https://www.w3.org/WAI/RD':
318
+ name: Research and Development Working Group
319
+ abbrev: RDWG
320
+ 'https://www.w3.org/XML/XPPL':
321
+ name: XML Print and Page Layout Working Group
322
+ abbrev: XPPL WG
323
+ 'https://www.w3.org/2007/xmlsec':
324
+ name: XML Security Specifications Maintenance Working Group
325
+ 'https://www.w3.org/2013/dwbp':
326
+ name: Data on the Web Best Practices Working Group
327
+ abbrev: DWBP WG
328
+ 'https://www.w3.org/2012/nfc':
329
+ name: Near Field Communications Working Group
330
+ abbrev: NFC WG
331
+ 'https://www.w3.org/2002/ws/databinding':
332
+ name: XML Schema Patterns for Databinding Working Group
333
+ 'https://www.w3.org/2018/chinese-web-ig':
334
+ name: Chinese Web Interest Group
335
+ 'https://www.w3.org/2016/tvcontrol':
336
+ name: TV Control Working Group
337
+ 'https://www.w3.org/WAI/IndieUI':
338
+ name: Independent User Interface Working Group
339
+ abbrev: Indie UI WG
@@ -18,7 +18,7 @@ module RelatonW3c
18
18
  # @param item_hash [Hash]
19
19
  # @return [RelatonBib::BibliographicItem]
20
20
  def bib_item(item_hash)
21
- W3cBibliographicItem.new **item_hash
21
+ W3cBibliographicItem.new(**item_hash)
22
22
  end
23
23
  end
24
24
  end
data/lib/relaton_w3c.rb CHANGED
@@ -7,6 +7,7 @@ require "relaton_w3c/hit"
7
7
  require "relaton_w3c/scrapper"
8
8
  require "relaton_w3c/xml_parser"
9
9
  require "relaton_w3c/hash_converter"
10
+ require "relaton_w3c/data_fethcer"
10
11
 
11
12
  module RelatonW3c
12
13
  class Error < StandardError; end
data/relaton_w3c.gemspec CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
14
14
  "using the IsoBibliographicItem model"
15
15
  spec.homepage = "https://github.com/relaton/relaton-wc3"
16
16
  spec.license = "BSD-2-Clause"
17
- spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
17
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
18
18
 
19
19
  # spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
20
20
 
@@ -31,13 +31,15 @@ Gem::Specification.new do |spec|
31
31
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
32
32
  spec.require_paths = ["lib"]
33
33
 
34
- # spec.add_development_dependency "debase"
35
34
  spec.add_development_dependency "equivalent-xml", "~> 0.6"
36
- # spec.add_development_dependency "ruby-debug-ide"
37
35
  spec.add_development_dependency "ruby-jing"
38
36
  spec.add_development_dependency "simplecov"
39
37
  spec.add_development_dependency "vcr"
40
38
  spec.add_development_dependency "webmock"
41
39
 
42
- spec.add_dependency "relaton-bib", ">= 1.8.0"
40
+ spec.add_dependency "linkeddata", "~> 3.1.0"
41
+ spec.add_dependency "mechanize", "~> 2.8.0"
42
+ spec.add_dependency "rdf", "~> 3.1.0"
43
+ spec.add_dependency "relaton-bib", ">= 1.9.0"
44
+ spec.add_dependency "sparql", "~> 3.1.0"
43
45
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-w3c
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0
4
+ version: 1.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-05-17 00:00:00.000000000 Z
11
+ date: 2021-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: equivalent-xml
@@ -80,20 +80,76 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: linkeddata
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 3.1.0
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 3.1.0
97
+ - !ruby/object:Gem::Dependency
98
+ name: mechanize
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 2.8.0
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 2.8.0
111
+ - !ruby/object:Gem::Dependency
112
+ name: rdf
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 3.1.0
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 3.1.0
83
125
  - !ruby/object:Gem::Dependency
84
126
  name: relaton-bib
85
127
  requirement: !ruby/object:Gem::Requirement
86
128
  requirements:
87
129
  - - ">="
88
130
  - !ruby/object:Gem::Version
89
- version: 1.8.0
131
+ version: 1.9.0
90
132
  type: :runtime
91
133
  prerelease: false
92
134
  version_requirements: !ruby/object:Gem::Requirement
93
135
  requirements:
94
136
  - - ">="
95
137
  - !ruby/object:Gem::Version
96
- version: 1.8.0
138
+ version: 1.9.0
139
+ - !ruby/object:Gem::Dependency
140
+ name: sparql
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 3.1.0
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: 3.1.0
97
153
  description: 'RelatonIso: retrieve W3C Standards for bibliographic using the IsoBibliographicItem
98
154
  model'
99
155
  email:
@@ -116,7 +172,11 @@ files:
116
172
  - bin/setup
117
173
  - grammars/basicdoc.rng
118
174
  - grammars/biblio.rng
175
+ - grammars/isodoc.rng
176
+ - grammars/reqt.rng
119
177
  - lib/relaton_w3c.rb
178
+ - lib/relaton_w3c/data_fethcer.rb
179
+ - lib/relaton_w3c/data_parser.rb
120
180
  - lib/relaton_w3c/hash_converter.rb
121
181
  - lib/relaton_w3c/hit.rb
122
182
  - lib/relaton_w3c/hit_collection.rb
@@ -125,6 +185,7 @@ files:
125
185
  - lib/relaton_w3c/version.rb
126
186
  - lib/relaton_w3c/w3c_bibliographic_item.rb
127
187
  - lib/relaton_w3c/w3c_bibliography.rb
188
+ - lib/relaton_w3c/workgroups.yaml
128
189
  - lib/relaton_w3c/xml_parser.rb
129
190
  - relaton_w3c.gemspec
130
191
  homepage: https://github.com/relaton/relaton-wc3
@@ -140,7 +201,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
140
201
  requirements:
141
202
  - - ">="
142
203
  - !ruby/object:Gem::Version
143
- version: 2.4.0
204
+ version: 2.5.0
144
205
  required_rubygems_version: !ruby/object:Gem::Requirement
145
206
  requirements:
146
207
  - - ">="