relaton 1.15.5 → 1.15.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/release.yml +2 -1
- data/docs/README.adoc +23 -3
- data/lib/relaton/registry.rb +1 -1
- data/lib/relaton/version.rb +1 -1
- data/relaton.gemspec +1 -0
- data/spec/relaton/db_spec.rb +1 -1
- data/spec/relaton/registry_spec.rb +4 -0
- data/spec/relaton_spec.rb +9 -0
- data/spec/vcr_cassetes/3gpp_tr_00_01u_umts_3_0_0.yml +19 -19
- data/spec/vcr_cassetes/api_relaton_org.yml +7 -7
- data/spec/vcr_cassetes/api_relaton_org_unavailable.yml +2325 -2194
- data/spec/vcr_cassetes/cc_dir_10005_2019.yml +21 -21
- data/spec/vcr_cassetes/cie_001_1980.yml +20 -20
- data/spec/vcr_cassetes/doi_10_6028_nist_ir_8245.yml +6 -6
- data/spec/vcr_cassetes/ecma_6.yml +19 -19
- data/spec/vcr_cassetes/en_10160_1999.yml +6180 -6148
- data/spec/vcr_cassetes/ieee_528_2019.yml +2736 -2727
- data/spec/vcr_cassetes/iso_111111119115_1.yml +5 -74
- data/spec/vcr_cassetes/iso_19115_1.yml +2575 -2444
- data/spec/vcr_cassetes/iso_19115_1_2.yml +4901 -4642
- data/spec/vcr_cassetes/iso_19115_1_std.yml +2938 -0
- data/spec/vcr_cassetes/iso_19115_all_parts.yml +2893 -2776
- data/spec/vcr_cassetes/iso_19133_2005.yml +2368 -2290
- data/spec/vcr_cassetes/iso_combined_applied.yml +4617 -4406
- data/spec/vcr_cassetes/iso_combined_included.yml +4618 -4407
- data/spec/vcr_cassetes/iso_dis.yml +2034 -1951
- data/spec/vcr_cassetes/ogc_19_025r1.yml +186 -185
- data/spec/vcr_cassetes/omg_ami4ccm_1_0.yml +9 -9
- data/spec/vcr_cassetes/rfc_8341.yml +32 -31
- metadata +17 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3dac46b50e726942c4c5aeca479583d4842e4efb8178ba9e93534ff37f4474a4
|
4
|
+
data.tar.gz: 3369c556a03505d768c38a25ab1edfaa7ea5f3ee520f1ea72ac22676fc736967
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fab5efffa95ea6eebab422482541b4ec648c96a1ed397f12e246cd97317c4f3556d68cfccc192197b998b31bf4e969ffc1bf582f7c23af6ebcba2b2d7a07926
|
7
|
+
data.tar.gz: ff70a2f3ae2d2031a0256bc2295327a887feb87a01db3f7c989cb940514fea72340af8b1cd9dd85a67afce70097b0a7c36d5477f8d5c16fede982a7f6be15dd3
|
@@ -7,7 +7,8 @@ on:
|
|
7
7
|
inputs:
|
8
8
|
next_version:
|
9
9
|
description: |
|
10
|
-
Next release version. Possible values: x.y.z, major, minor, patch or pre|rc|etc
|
10
|
+
Next release version. Possible values: x.y.z, major, minor, patch (or pre|rc|etc).
|
11
|
+
Also, you can pass 'skip' to skip 'git tag' and do 'gem push' for the current version
|
11
12
|
required: true
|
12
13
|
default: 'skip'
|
13
14
|
repository_dispatch:
|
data/docs/README.adoc
CHANGED
@@ -16,15 +16,35 @@ The gem also caches entries it has retrieved so that subsequent iterations do no
|
|
16
16
|
|
17
17
|
Entries are retrieved and stored in https://github.com/relaton/relaton-models[Relaton bibliographic model], which is an expression of ISO 690. The subset of the model used and serialized for Relaton is defined in the https://github.com/relaton/relaton-bib[relaton-bib] and https://github.com/relaton/relaton-iso-bib[relaton-iso-bib] gems.
|
18
18
|
|
19
|
-
Entries are serialized to and from an internal data model, and multiple formats are intended to be supported. Currently only https://github.com/relaton/relaton-models/blob/master/grammars/biblio.rnc[Relaton XML] is supported.
|
19
|
+
Entries are serialized to and from an internal data model, and multiple formats are intended to be supported. Currently, only https://github.com/relaton/relaton-models/blob/master/grammars/biblio.rnc[Relaton XML] is supported.
|
20
20
|
|
21
21
|
Relaton imports bibliographic entries from:
|
22
22
|
|
23
|
-
*
|
24
|
-
*
|
23
|
+
* 3GPP through the portal.3gpp.org website, via the https://github.com/relaton/relaton-3gpp[relaton-3gpp] gem
|
24
|
+
* BIPM through the https://github.com/metanorma/bipm-data-outcomes[bipm-data-outcomes], https://github.com/metanorma/bipm-si-brochure[bipm-si-brochure], https://github.com/relaton/rawdata-bipm-metrologia[rawdata-bipm-metrologia] datasets, via the the https://github.com/relaton/relaton-bipm[relaton-bipm] gem
|
25
|
+
* BSI through the knowledge.bsigroup.com/search website, via the https://github.com/relaton/relaton-bsi[relaton-bsi] gem
|
26
|
+
* CalConnect through the standards.calconnect.org website, via the https://github.com/relaton/relaton-calconnect[relaton-calconnect] gem
|
27
|
+
* CCSDS through the public.ccsds.org/Publications/AllPubs.aspx website, via the https://github.com/relaton/relaton-ccsds[relaton-ccsds] gem
|
28
|
+
* CEN through the standards.cencenelec.eu website, via the https://github.com/relaton/relaton-cen[relaton-cen] gem
|
29
|
+
* CIE through the techstreet.com website, via the https://github.com/relaton/relaton-cie[relaton-cie] gem
|
30
|
+
* DOI through the api.crossref.org website, via the https://github.com/relaton/relaton-doi[relaton-doi] gem
|
31
|
+
* ECMA through the ecma-international.org website, via the https://github.com/relaton/relaton-ecma[relaton-ecma] gem
|
25
32
|
* GB (Chinese national standards) through the GB websites, via the https://github.com/relaton/relaton-gb[relaton-gb] gem
|
33
|
+
* IANA through the https://github.com/ietf-tools/iana-registries[iana-registries] dataset, via the https://github.com/relaton/relaton-iana[relaton-iana] gem
|
34
|
+
* IEC through the iec.ch website, via the https://github.com/relaton/relaton-iec[relaton-iec] gem
|
35
|
+
* IEEE through the standards.ieee.org website, via the https://github.com/relaton/relaton-ieee[relaton-ieee] gem
|
26
36
|
* IETF standards (Internet Drafts, RFC) through the http://xml2rfc.tools.ietf.org website, via the https://github.com/relaton/relaton-ietf[relaton-ietf] gem
|
37
|
+
* IHO through the iho.int website, via the https://github.com/relaton/relaton-iho[relaton-iho] gem
|
38
|
+
* ISO through the iso.org website, via the https://github.com/relaton/relaton-iso[relaton-iso] gem
|
39
|
+
* ITU through the itu.int website, via the https://github.com/relaton/relaton-itu[relaton-itu] gem
|
40
|
+
* JIS through the webdesk.jsa.or.jp website, via the https://gihub.com/relaton/relaton-jis[relaton-jis] gem
|
27
41
|
* NIST standards through the nist.gov website, via the https://github.com/relaton/relaton-nist[relaotn-nist] gem
|
42
|
+
* OASIS through the www.oasis-open.org/standards website, via the https://github.com/relaton/relaton-oasis[relaton-oasis] gem
|
43
|
+
* OGC through the https://github.com/opengeospatial/NamingAuthority[dataset], via the https://gibhub.com/relaton/relaton-ogc[relaton-ogc] gem
|
44
|
+
* OMG through the omg.org/spec website, via the https://github.com/relaton/relaton-omg[relaton-omg] gem
|
45
|
+
* UN through the documents.un.org website, via the https://github.com/relaton/relaton-un[relaton-un] gem
|
46
|
+
* W3C through the w3c.org website, via the https://github.com/relaton/relaton-w3c[relaton-w3c] gem
|
47
|
+
* XSF through the xmpp.org website, via the https://github.com/relaton/relaton-xsf[relaton-xsf] gem
|
28
48
|
|
29
49
|
The identifiers for which bibliographic entries are to be retrieved need to indicate which standards body they belong to. To do so, this gem adopts the convention of bracketing identifiers, and preceding them with a code that indicates the standards body:
|
30
50
|
|
data/lib/relaton/registry.rb
CHANGED
@@ -10,7 +10,7 @@ module Relaton
|
|
10
10
|
relaton_ogc relaton_calconnect relaton_omg relaton_un relaton_w3c
|
11
11
|
relaton_ieee relaton_iho relaton_bipm relaton_ecma relaton_cie relaton_bsi
|
12
12
|
relaton_cen relaton_iana relaton_3gpp relaton_oasis relaton_doi relaton_jis
|
13
|
-
relaton_xsf
|
13
|
+
relaton_xsf relaton_ccsds
|
14
14
|
].freeze
|
15
15
|
|
16
16
|
include Singleton
|
data/lib/relaton/version.rb
CHANGED
data/relaton.gemspec
CHANGED
@@ -33,6 +33,7 @@ Gem::Specification.new do |spec|
|
|
33
33
|
spec.add_dependency "relaton-bipm", "~> 1.14.0"
|
34
34
|
spec.add_dependency "relaton-bsi", "~> 1.14.0"
|
35
35
|
spec.add_dependency "relaton-calconnect", "~> 1.14.0"
|
36
|
+
spec.add_dependency "relaton-ccsds", "~> 1.14.0"
|
36
37
|
spec.add_dependency "relaton-cen", "~> 1.14.0"
|
37
38
|
spec.add_dependency "relaton-cie", "~> 1.14.0"
|
38
39
|
spec.add_dependency "relaton-doi", "~> 1.14.0"
|
data/spec/relaton/db_spec.rb
CHANGED
@@ -194,7 +194,7 @@ RSpec.describe Relaton::Db do
|
|
194
194
|
|
195
195
|
it "fetch std" do
|
196
196
|
db = Relaton::Db.new "testcache", nil
|
197
|
-
VCR.use_cassette "
|
197
|
+
VCR.use_cassette "iso_19115_1_std" do
|
198
198
|
bib = db.fetch_std("ISO 19115-1", nil, :relaton_iso, {})
|
199
199
|
expect(bib).to be_instance_of RelatonIsoBib::IsoBibliographicItem
|
200
200
|
end
|
@@ -113,6 +113,10 @@ RSpec.describe Relaton::Registry do
|
|
113
113
|
it "XSF" do
|
114
114
|
expect(Relaton::Registry.instance.by_type("XEP")).to be_instance_of RelatonXsf::Processor
|
115
115
|
end
|
116
|
+
|
117
|
+
it "CCSDS" do
|
118
|
+
expect(Relaton::Registry.instance.by_type("CCSDS")).to be_instance_of RelatonCcsds::Processor
|
119
|
+
end
|
116
120
|
end
|
117
121
|
|
118
122
|
it "find processot by dataset" do
|
data/spec/relaton_spec.rb
CHANGED
@@ -245,6 +245,15 @@ RSpec.describe Relaton::Db do
|
|
245
245
|
expect(bib.docidentifier.first.id).to eq "W3C REC-json-ld11-20200716"
|
246
246
|
end
|
247
247
|
|
248
|
+
it "get CCSDS reference" do
|
249
|
+
docid = RelatonBib::DocumentIdentifier.new id: "CCSDS 230.2-G-1", type: "CCSDS"
|
250
|
+
item = RelatonCcsds::BibliographicItem.new docid: [docid]
|
251
|
+
expect(RelatonCcsds::Bibliography).to receive(:get).with("CCSDS 230.2-G-1", nil, {}).and_return item
|
252
|
+
bib = @db.fetch "CCSDS 230.2-G-1", nil, {}
|
253
|
+
expect(bib).to be_instance_of RelatonCcsds::BibliographicItem
|
254
|
+
expect(bib.docidentifier.first.id).to eq "CCSDS 230.2-G-1"
|
255
|
+
end
|
256
|
+
|
248
257
|
it "get IEEE reference" do
|
249
258
|
VCR.use_cassette "ieee_528_2019" do
|
250
259
|
bib = @db.fetch "IEEE 528-2019"
|
@@ -29,7 +29,7 @@ http_interactions:
|
|
29
29
|
Content-Type:
|
30
30
|
- application/zip
|
31
31
|
Etag:
|
32
|
-
- W/"
|
32
|
+
- W/"7aa63e69e862eba07901de38ca845fd2d2a3eac8e0420107e30370eeb1ba61e9"
|
33
33
|
Strict-Transport-Security:
|
34
34
|
- max-age=31536000
|
35
35
|
X-Content-Type-Options:
|
@@ -39,21 +39,21 @@ http_interactions:
|
|
39
39
|
X-Xss-Protection:
|
40
40
|
- 1; mode=block
|
41
41
|
X-Github-Request-Id:
|
42
|
-
-
|
42
|
+
- D0C0:2F6A:1F464C:259268:64E9622A
|
43
43
|
Accept-Ranges:
|
44
44
|
- bytes
|
45
45
|
Date:
|
46
|
-
- Sat,
|
46
|
+
- Sat, 26 Aug 2023 02:23:38 GMT
|
47
47
|
Via:
|
48
48
|
- 1.1 varnish
|
49
49
|
X-Served-By:
|
50
|
-
- cache-iad-
|
50
|
+
- cache-iad-kcgs7200082-IAD
|
51
51
|
X-Cache:
|
52
52
|
- MISS
|
53
53
|
X-Cache-Hits:
|
54
54
|
- '0'
|
55
55
|
X-Timer:
|
56
|
-
-
|
56
|
+
- S1693016618.303212,VS0,VE124
|
57
57
|
Vary:
|
58
58
|
- Authorization,Accept-Encoding,Origin
|
59
59
|
Access-Control-Allow-Origin:
|
@@ -61,16 +61,16 @@ http_interactions:
|
|
61
61
|
Cross-Origin-Resource-Policy:
|
62
62
|
- cross-origin
|
63
63
|
X-Fastly-Request-Id:
|
64
|
-
-
|
64
|
+
- 227234511e418f825c831f4b7be77dbeaecc96fc
|
65
65
|
Expires:
|
66
|
-
- Sat,
|
66
|
+
- Sat, 26 Aug 2023 02:28:38 GMT
|
67
67
|
Source-Age:
|
68
68
|
- '0'
|
69
69
|
body:
|
70
70
|
encoding: UTF-8
|
71
71
|
base64_string: |
|
72
|
-
|
73
|
-
|
72
|
+
UEsDBBQAAAAIAAJyGVdm2jZFNLUHABZeUAANABwAaW5kZXgtdjEueWFtbFVU
|
73
|
+
CQADpLfoZEi46GR1eAsAAQTpAwAABOcDAACM/cGuLTuOJArO31fkD0TeLblc
|
74
74
|
Lt1pVQI96AQebkQANTt4qMyHfkD1qGpQ/fd9li+XRK1FM+PoIuJssyWXKJIi
|
75
75
|
Kepvf/vb//G3f/nz//mPP//lH3/9y8/Pv/6kf/75z3//x9//OP719//4P/7l
|
76
76
|
X/78v/+f//Gff/7Lf/xf/+v/+uMff/16/8mv15/8uv/kX/9//9f/939AjqQ5
|
@@ -11296,10 +11296,10 @@ http_interactions:
|
|
11296
11296
|
rrxmUhWRmbSOyEyqIjKT1hGZSVVEZtI6IjOpishMWkdkJlURmUkqIv8ru70S
|
11297
11297
|
Z9ntlShFt1eiLLu9EqWomSbKsmb6RtFjvKxTflAWU9AH5WMG+qAsJo4Pyse8
|
11298
11298
|
saB8TGMLykYoRc00UZY10w+KGpdlz1iiFJXXRFlWXhOlqLwmSqq8/h9QSwEC
|
11299
|
-
|
11300
|
-
|
11299
|
+
HgMUAAAACAACchlXZto2RTS1BwAWXlAADQAYAAAAAAABAAAApIEAAAAAaW5k
|
11300
|
+
ZXgtdjEueWFtbFVUBQADpLfoZHV4CwABBOkDAAAE5wMAAFBLBQYAAAAAAQAB
|
11301
11301
|
AFMAAAB7tQcAAAA=
|
11302
|
-
recorded_at: Sat,
|
11302
|
+
recorded_at: Sat, 26 Aug 2023 02:23:38 GMT
|
11303
11303
|
- request:
|
11304
11304
|
method: get
|
11305
11305
|
uri: https://raw.githubusercontent.com/relaton/relaton-data-3gpp/main/data/TR_00.01U_UMTS_3.0.0.yaml
|
@@ -11341,21 +11341,21 @@ http_interactions:
|
|
11341
11341
|
X-Xss-Protection:
|
11342
11342
|
- 1; mode=block
|
11343
11343
|
X-Github-Request-Id:
|
11344
|
-
-
|
11344
|
+
- C302:5715:218BF8:27D983:64E9622D
|
11345
11345
|
Accept-Ranges:
|
11346
11346
|
- bytes
|
11347
11347
|
Date:
|
11348
|
-
- Sat,
|
11348
|
+
- Sat, 26 Aug 2023 02:23:42 GMT
|
11349
11349
|
Via:
|
11350
11350
|
- 1.1 varnish
|
11351
11351
|
X-Served-By:
|
11352
|
-
- cache-iad-
|
11352
|
+
- cache-iad-kcgs7200039-IAD
|
11353
11353
|
X-Cache:
|
11354
11354
|
- MISS
|
11355
11355
|
X-Cache-Hits:
|
11356
11356
|
- '0'
|
11357
11357
|
X-Timer:
|
11358
|
-
-
|
11358
|
+
- S1693016622.097934,VS0,VE164
|
11359
11359
|
Vary:
|
11360
11360
|
- Authorization,Accept-Encoding,Origin
|
11361
11361
|
Access-Control-Allow-Origin:
|
@@ -11363,9 +11363,9 @@ http_interactions:
|
|
11363
11363
|
Cross-Origin-Resource-Policy:
|
11364
11364
|
- cross-origin
|
11365
11365
|
X-Fastly-Request-Id:
|
11366
|
-
-
|
11366
|
+
- df92f1d497edb09d92eedae2fd91d7064d7741a3
|
11367
11367
|
Expires:
|
11368
|
-
- Sat,
|
11368
|
+
- Sat, 26 Aug 2023 02:28:42 GMT
|
11369
11369
|
Source-Age:
|
11370
11370
|
- '0'
|
11371
11371
|
body:
|
@@ -11406,5 +11406,5 @@ http_interactions:
|
|
11406
11406
|
bWVldGluZzogU01HLTI4CiAgZnJlZXplX3N0YWdlMl9tZWV0aW5nOiBTTUct
|
11407
11407
|
MjgKICBmcmVlemVfc3RhZ2UzX21lZXRpbmc6IFNNRy0yOAogIGNsb3NlX21l
|
11408
11408
|
ZXRpbmc6IFNQLTI4CiAgcHJvamVjdF9lbmQ6ICcxOTk5LTAyLTEyJwo=
|
11409
|
-
recorded_at: Sat,
|
11409
|
+
recorded_at: Sat, 26 Aug 2023 02:23:42 GMT
|
11410
11410
|
recorded_with: VCR 6.2.0
|
@@ -27,27 +27,27 @@ http_interactions:
|
|
27
27
|
Connection:
|
28
28
|
- keep-alive
|
29
29
|
Date:
|
30
|
-
- Sat,
|
30
|
+
- Sat, 26 Aug 2023 02:24:34 GMT
|
31
31
|
X-Amzn-Requestid:
|
32
|
-
-
|
32
|
+
- e1f2aef8-2328-4272-ba57-6c73af5e133f
|
33
33
|
Access-Control-Allow-Origin:
|
34
34
|
- "*"
|
35
35
|
Access-Control-Allow-Headers:
|
36
36
|
- Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token
|
37
37
|
X-Amz-Apigw-Id:
|
38
|
-
-
|
38
|
+
- KPxNCF7eoAMFrwQ=
|
39
39
|
Access-Control-Allow-Methods:
|
40
40
|
- GET, POST, OPTIONS
|
41
41
|
X-Amzn-Trace-Id:
|
42
|
-
- Root=1-
|
42
|
+
- Root=1-64e96253-2d739a395f45263944c49bee;Sampled=0;lineage=521d48d5:0
|
43
43
|
X-Cache:
|
44
44
|
- Miss from cloudfront
|
45
45
|
Via:
|
46
|
-
- 1.1
|
46
|
+
- 1.1 d2c82a47dca9b567464b4d0c63ebebc8.cloudfront.net (CloudFront)
|
47
47
|
X-Amz-Cf-Pop:
|
48
48
|
- ATL51-C1
|
49
49
|
X-Amz-Cf-Id:
|
50
|
-
-
|
50
|
+
- OnWNM6h_BuH4g1uDUswndgA2__OEPYieOUoyIXybI9FAxYan2tGb1A==
|
51
51
|
body:
|
52
52
|
encoding: UTF-8
|
53
53
|
base64_string: |
|
@@ -117,5 +117,5 @@ http_interactions:
|
|
117
117
|
dHJ1Y3R1cmVkaWRlbnRpZmllciB0eXBlPSJJU08iPgogICAgICA8cHJvamVj
|
118
118
|
dC1udW1iZXI+SVNPIDE5MTE1PC9wcm9qZWN0LW51bWJlcj4KICAgIDwvc3Ry
|
119
119
|
dWN0dXJlZGlkZW50aWZpZXI+CiAgPC9leHQ+CjwvYmliZGF0YT4=
|
120
|
-
recorded_at: Sat,
|
120
|
+
recorded_at: Sat, 26 Aug 2023 02:24:34 GMT
|
121
121
|
recorded_with: VCR 6.2.0
|