relaton-w3c 1.13.0 → 1.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +0 -1
- data/.github/workflows/release.yml +22 -0
- data/grammars/w3c.rng +16 -0
- data/lib/relaton_w3c/data_parser.rb +0 -1
- data/lib/relaton_w3c/version.rb +1 -1
- data/lib/relaton_w3c/w3c_bibliography.rb +1 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dff7f074449c50ec32ccb543937e3515296583e72eb891776cd907c34e6f8485
|
4
|
+
data.tar.gz: 2b15f45753aa9a7372ac2972fb9cab6a6f8d6852cf1fba62a0b146681c176616
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7e624491c4cdcfb99d65b588395e549dc999860e20d0f1d371cd7b6380e5dc375e705c75023ce9e242df4c0b362cc9cedb0061fe29456742dcfa58713a9c385
|
7
|
+
data.tar.gz: 6ff814a8b1b1afc447b0ce124aba5cae850a5b9699762ecaa554459cb266ef21f43c20f9b01c9699b8e8ace39a16f3bc38790e7e5a6db55bd621951db593fdb5
|
data/.github/workflows/rake.yml
CHANGED
@@ -0,0 +1,22 @@
|
|
1
|
+
# Auto-generated by Cimas: Do not edit it manually!
|
2
|
+
# See https://github.com/metanorma/cimas
|
3
|
+
name: release
|
4
|
+
|
5
|
+
on:
|
6
|
+
workflow_dispatch:
|
7
|
+
inputs:
|
8
|
+
next_version:
|
9
|
+
description: |
|
10
|
+
Next release version. Possible values: x.y.z, major, minor, patch or pre|rc|etc
|
11
|
+
required: true
|
12
|
+
default: 'skip'
|
13
|
+
push:
|
14
|
+
tags: [ v* ]
|
15
|
+
|
16
|
+
jobs:
|
17
|
+
release:
|
18
|
+
uses: relaton/support/.github/workflows/release.yml@master
|
19
|
+
with:
|
20
|
+
next_version: ${{ github.event.inputs.next_version }}
|
21
|
+
secrets:
|
22
|
+
rubygems-api-key: ${{ secrets.RELATON_CI_RUBYGEMS_API_KEY }}
|
data/grammars/w3c.rng
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<grammar xmlns="http://relaxng.org/ns/structure/1.0">
|
3
|
+
<!--
|
4
|
+
Currently we inherit from a namespaced grammar, isostandard. Until we inherit from isodoc,
|
5
|
+
we cannot have a new default namespace: we will end up with a grammar with two different
|
6
|
+
namespaces, one for isostandard and one for csand additions. And we do not want that.
|
7
|
+
-->
|
8
|
+
<include href="isodoc.rng">
|
9
|
+
<define name="DocumentType">
|
10
|
+
<choice>
|
11
|
+
<value>groupNote</value>
|
12
|
+
<value>technicalReport</value>
|
13
|
+
</choice>
|
14
|
+
</define>
|
15
|
+
</include>
|
16
|
+
</grammar>
|
data/lib/relaton_w3c/version.rb
CHANGED
@@ -20,6 +20,7 @@ module RelatonW3c
|
|
20
20
|
return unless resp.code == "200"
|
21
21
|
|
22
22
|
hash = YAML.safe_load resp.body
|
23
|
+
hash["fetched"] = Date.today.to_s
|
23
24
|
item_hash = ::RelatonW3c::HashConverter.hash_to_bib(hash)
|
24
25
|
::RelatonW3c::W3cBibliographicItem.new(**item_hash)
|
25
26
|
rescue SocketError, Timeout::Error, Errno::EINVAL, Errno::ECONNRESET,
|
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.13.
|
4
|
+
version: 1.13.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: equivalent-xml
|
@@ -201,6 +201,7 @@ extensions: []
|
|
201
201
|
extra_rdoc_files: []
|
202
202
|
files:
|
203
203
|
- ".github/workflows/rake.yml"
|
204
|
+
- ".github/workflows/release.yml"
|
204
205
|
- ".gitignore"
|
205
206
|
- ".hound.yml"
|
206
207
|
- ".rspec"
|
@@ -216,6 +217,7 @@ files:
|
|
216
217
|
- grammars/biblio.rng
|
217
218
|
- grammars/isodoc.rng
|
218
219
|
- grammars/reqt.rng
|
220
|
+
- grammars/w3c.rng
|
219
221
|
- lib/relaton_w3c.rb
|
220
222
|
- lib/relaton_w3c/bibxml_parser.rb
|
221
223
|
- lib/relaton_w3c/data_fetcher.rb
|