relaton 1.15.5 → 1.16.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: 660a04548bc776f45c6675c93929f092b9b09bf787f9c5327a0e77c4657396d6
4
- data.tar.gz: 524d02188fb9b718b051a9278f367b5ba96b1cc9b7e3f22e0ef289dc2e637104
3
+ metadata.gz: d14572eac995372e1d735ee2c8c8e285bb1e6934fcc7772bd2c2e35a3582c168
4
+ data.tar.gz: dbf741a9999428b9d9f855ce5ff38935da12fe4f5e7e6fb7f4c7b8614eec6152
5
5
  SHA512:
6
- metadata.gz: a888ab93816385d62c1a16e75dfdeeced6138793f89bd37b4b9570642c9ba6ab9fe2046185f514f0083e3a3293af4644b4e3232ef32c3786a58cc1c8afdb872a
7
- data.tar.gz: 715fdef1a7536b2cb8e42f89bb0aaa32ff11684e38787acc58afbebd94ff93c8c017166af1b518b92e53af2fbb9375ae7907d672081aa25694d9c77d0e111744
6
+ metadata.gz: 140bd7713fc697e7f2707a8053d61e5257613c2add3d22cc23a15416bfa12a7bf091d23fab458b297d761f92b2ac1fbb5b573b6202efa9f590a362fba5e4ca7d
7
+ data.tar.gz: 6b14e926668032d8c06afbe44f71f3b8a4415a127dd399a91f14ab69dda497ecf2ffd754714eb2d91e0e547d26eef0130efc6f7c109d15bb85ae580492a11fef
@@ -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
- * ISO through the iso.org website, via the https://github.com/relaton/relaton-iso[relaton-iso] gem
24
- * IEC through the iec.ch website, via the https://github.com/relaton/relaton-iec[relaton-iec] gem
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
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Relaton
2
- VERSION = "1.15.5".freeze
2
+ VERSION = "1.16.0".freeze
3
3
  end
data/relaton.gemspec CHANGED
@@ -29,28 +29,29 @@ Gem::Specification.new do |spec|
29
29
  # spec.test_files = `git ls-files -- {spec}/*`.split("\n")
30
30
  spec.required_ruby_version = Gem::Requirement.new(">= 2.6.0")
31
31
 
32
- spec.add_dependency "relaton-3gpp", "~> 1.14.0"
33
- spec.add_dependency "relaton-bipm", "~> 1.14.0"
34
- spec.add_dependency "relaton-bsi", "~> 1.14.0"
35
- spec.add_dependency "relaton-calconnect", "~> 1.14.0"
36
- spec.add_dependency "relaton-cen", "~> 1.14.0"
37
- spec.add_dependency "relaton-cie", "~> 1.14.0"
38
- spec.add_dependency "relaton-doi", "~> 1.14.0"
39
- spec.add_dependency "relaton-ecma", "~> 1.14.0"
40
- spec.add_dependency "relaton-gb", "~> 1.14.0"
41
- spec.add_dependency "relaton-iana", "~> 1.14.0"
42
- spec.add_dependency "relaton-iec", "~> 1.14.0"
43
- spec.add_dependency "relaton-ieee", "~> 1.14.0"
44
- spec.add_dependency "relaton-ietf", "~> 1.14.0"
45
- spec.add_dependency "relaton-iho", "~> 1.14.0"
46
- spec.add_dependency "relaton-iso", "~> 1.15.3"
47
- spec.add_dependency "relaton-itu", "~> 1.14.0"
48
- spec.add_dependency "relaton-jis", "~> 1.14.0"
49
- spec.add_dependency "relaton-nist", "~> 1.14.0"
50
- spec.add_dependency "relaton-oasis", "~> 1.14.0"
51
- spec.add_dependency "relaton-ogc", "~> 1.14.0"
52
- spec.add_dependency "relaton-omg", "~> 1.14.0"
53
- spec.add_dependency "relaton-un", "~> 1.14.0"
54
- spec.add_dependency "relaton-w3c", "~> 1.14.0"
55
- spec.add_dependency "relaton-xsf", "~> 1.14.0"
32
+ spec.add_dependency "relaton-3gpp", "~> 1.16.0"
33
+ spec.add_dependency "relaton-bipm", "~> 1.16.0"
34
+ spec.add_dependency "relaton-bsi", "~> 1.16.0"
35
+ spec.add_dependency "relaton-calconnect", "~> 1.16.0"
36
+ spec.add_dependency "relaton-ccsds", "~> 1.16.0"
37
+ spec.add_dependency "relaton-cen", "~> 1.16.0"
38
+ spec.add_dependency "relaton-cie", "~> 1.16.0"
39
+ spec.add_dependency "relaton-doi", "~> 1.16.0"
40
+ spec.add_dependency "relaton-ecma", "~> 1.16.0"
41
+ spec.add_dependency "relaton-gb", "~> 1.16.0"
42
+ spec.add_dependency "relaton-iana", "~> 1.16.0"
43
+ spec.add_dependency "relaton-iec", "~> 1.16.0"
44
+ spec.add_dependency "relaton-ieee", "~> 1.16.0"
45
+ spec.add_dependency "relaton-ietf", "~> 1.16.0"
46
+ spec.add_dependency "relaton-iho", "~> 1.16.0"
47
+ spec.add_dependency "relaton-iso", "~> 1.16.0"
48
+ spec.add_dependency "relaton-itu", "~> 1.16.0"
49
+ spec.add_dependency "relaton-jis", "~> 1.16.0"
50
+ spec.add_dependency "relaton-nist", "~> 1.16.0"
51
+ spec.add_dependency "relaton-oasis", "~> 1.16.0"
52
+ spec.add_dependency "relaton-ogc", "~> 1.16.0"
53
+ spec.add_dependency "relaton-omg", "~> 1.16.0"
54
+ spec.add_dependency "relaton-un", "~> 1.16.0"
55
+ spec.add_dependency "relaton-w3c", "~> 1.16.0"
56
+ spec.add_dependency "relaton-xsf", "~> 1.16.0"
56
57
  end
@@ -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 "iso_19115_1" do
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/"15c57459dcf3d700d40495db041ca9831bea6bb240d07bb5a9508489f4231a7f"
32
+ - W/"3f552d18880f3c8c17fa37add4aff5db5dd494d785999e37ac5fa86ec6c74ee3"
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
- - C69A:69C7:AED261:C6DC63:64C53486
42
+ - 760C:4F77:39E4DF:46432F:64F36DB8
43
43
  Accept-Ranges:
44
44
  - bytes
45
45
  Date:
46
- - Sat, 29 Jul 2023 15:47:19 GMT
46
+ - Sat, 02 Sep 2023 17:15:37 GMT
47
47
  Via:
48
48
  - 1.1 varnish
49
49
  X-Served-By:
50
- - cache-iad-kcgs7200022-IAD
50
+ - cache-iad-kjyo7100150-IAD
51
51
  X-Cache:
52
52
  - MISS
53
53
  X-Cache-Hits:
54
54
  - '0'
55
55
  X-Timer:
56
- - S1690645640.757024,VS0,VE152
56
+ - S1693674937.498985,VS0,VE170
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
- - 76f4c465d73b6bb64ca9e85a06690e6d0e6b4c6a
64
+ - 620b73cd5d3e9d0e5dca976519eb7414cf01a905
65
65
  Expires:
66
- - Sat, 29 Jul 2023 15:52:19 GMT
66
+ - Sat, 02 Sep 2023 17:20:37 GMT
67
67
  Source-Age:
68
68
  - '0'
69
69
  body:
70
70
  encoding: UTF-8
71
71
  base64_string: |
72
- UEsDBBQAAAAIAO5x/FZm2jZFNLUHABZeUAANABwAaW5kZXgtdjEueWFtbFVU
73
- CQADgM3DZPDNw2R1eAsAAQTpAwAABHsAAACM/cGuLTuOJArO31fkD0TeLblc
72
+ UEsDBBQAAAAIAA5yIVdm2jZFNLUHABZeUAANABwAaW5kZXgtdjEueWFtbFVU
73
+ CQADO/LxZLPy8WR1eAsAAQTpAwAABOcDAACM/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
- HgMUAAAACADucfxWZto2RTS1BwAWXlAADQAYAAAAAAABAAAApIEAAAAAaW5k
11300
- ZXgtdjEueWFtbFVUBQADgM3DZHV4CwABBOkDAAAEewAAAFBLBQYAAAAAAQAB
11299
+ HgMUAAAACAAOciFXZto2RTS1BwAWXlAADQAYAAAAAAABAAAApIEAAAAAaW5k
11300
+ ZXgtdjEueWFtbFVUBQADO/LxZHV4CwABBOkDAAAE5wMAAFBLBQYAAAAAAQAB
11301
11301
  AFMAAAB7tQcAAAA=
11302
- recorded_at: Sat, 29 Jul 2023 15:47:20 GMT
11302
+ recorded_at: Sat, 02 Sep 2023 17:15:37 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
- - 3588:4477:9C13AD:B41D5C:64C5348B
11344
+ - 93C8:09B5:3F7B2A:4B921C:64F36DBC
11345
11345
  Accept-Ranges:
11346
11346
  - bytes
11347
11347
  Date:
11348
- - Sat, 29 Jul 2023 15:47:23 GMT
11348
+ - Sat, 02 Sep 2023 17:15:40 GMT
11349
11349
  Via:
11350
11350
  - 1.1 varnish
11351
11351
  X-Served-By:
11352
- - cache-iad-kcgs7200034-IAD
11352
+ - cache-iad-kjyo7100055-IAD
11353
11353
  X-Cache:
11354
11354
  - MISS
11355
11355
  X-Cache-Hits:
11356
11356
  - '0'
11357
11357
  X-Timer:
11358
- - S1690645643.136097,VS0,VE135
11358
+ - S1693674941.794366,VS0,VE178
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
- - 6afc467a2227ed85c58ed42c0bb25df92ab8027e
11366
+ - 2f0a887c4f3ac38acb0383863b6f96095712504a
11367
11367
  Expires:
11368
- - Sat, 29 Jul 2023 15:52:23 GMT
11368
+ - Sat, 02 Sep 2023 17:20:40 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, 29 Jul 2023 15:47:23 GMT
11409
+ recorded_at: Sat, 02 Sep 2023 17:15:40 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, 29 Jul 2023 15:48:02 GMT
30
+ - Sat, 02 Sep 2023 17:16:22 GMT
31
31
  X-Amzn-Requestid:
32
- - 330853d3-ec28-4588-9aa2-372ef02c4a70
32
+ - 07e686e6-eade-4a60-8ce8-6e88a2c21409
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
- - I1UptG0AoAMFoPQ=
38
+ - Ko4ZrEhLoAMFTkg=
39
39
  Access-Control-Allow-Methods:
40
40
  - GET, POST, OPTIONS
41
41
  X-Amzn-Trace-Id:
42
- - Root=1-64c534a4-555c478b697cc6d6081afe9f;Sampled=0;lineage=521d48d5:0
42
+ - Root=1-64f36dd7-044bf9141d0d0c8b15705a41;Sampled=0;lineage=521d48d5:0
43
43
  X-Cache:
44
44
  - Miss from cloudfront
45
45
  Via:
46
- - 1.1 52e2243a8168629f98bb0607016f7224.cloudfront.net (CloudFront)
46
+ - 1.1 af5807423e63373c39657bd443d29550.cloudfront.net (CloudFront)
47
47
  X-Amz-Cf-Pop:
48
48
  - ATL51-C1
49
49
  X-Amz-Cf-Id:
50
- - Ke1TVShWUJU_5veEOUEhW9I6EKvlGGvtDmraRpsn77Nkum6GeeOypQ==
50
+ - 7DXOYXOptjpG9XhoMIKqKJ0pim6aX6jCYdxcrM1aj0ssG3wkoDSYow==
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, 29 Jul 2023 15:48:02 GMT
120
+ recorded_at: Sat, 02 Sep 2023 17:16:22 GMT
121
121
  recorded_with: VCR 6.2.0