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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 22ce649a3b14df8df8f9e3f8bc6f62b762b589489abfd09fb46cf3fc90d3fb30
4
- data.tar.gz: 2994d75163681a80278d2701f51acd767ac38011290b3c24561255118b8a697b
3
+ metadata.gz: dff7f074449c50ec32ccb543937e3515296583e72eb891776cd907c34e6f8485
4
+ data.tar.gz: 2b15f45753aa9a7372ac2972fb9cab6a6f8d6852cf1fba62a0b146681c176616
5
5
  SHA512:
6
- metadata.gz: 816d7ef8942dfdcf7cc9e9ea3de4cf682a9cded874d080002d1a9689f01ec432f137c6e8bd74ec7568e06ed8cc401e433ca7300e22fca18615e8909a1620ae19
7
- data.tar.gz: 611763003e4faa41a922d4cf49a5236f40c40c95fe348a413a112911a7f0393005308651bd657b4e6d5a21c7c6ee10c7945c389d2844825fde5cc5326b660176
6
+ metadata.gz: d7e624491c4cdcfb99d65b588395e549dc999860e20d0f1d371cd7b6380e5dc375e705c75023ce9e242df4c0b362cc9cedb0061fe29456742dcfa58713a9c385
7
+ data.tar.gz: 6ff814a8b1b1afc447b0ce124aba5cae850a5b9699762ecaa554459cb266ef21f43c20f9b01c9699b8e8ace39a16f3bc38790e7e5a6db55bd621951db593fdb5
@@ -5,7 +5,6 @@ name: rake
5
5
  on:
6
6
  push:
7
7
  branches: [ master, main ]
8
- tags: [ v* ]
9
8
  pull_request:
10
9
 
11
10
  jobs:
@@ -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>
@@ -54,7 +54,6 @@ module RelatonW3c
54
54
  RelatonW3c::W3cBibliographicItem.new(
55
55
  type: "standard",
56
56
  doctype: parse_doctype,
57
- fetched: Date.today.to_s,
58
57
  language: ["en"],
59
58
  script: ["Latn"],
60
59
  docstatus: parse_docstatus,
@@ -1,3 +1,3 @@
1
1
  module RelatonW3c
2
- VERSION = "1.13.0".freeze
2
+ VERSION = "1.13.1".freeze
3
3
  end
@@ -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.0
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-08-21 00:00:00.000000000 Z
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