relaton 1.11.0 → 1.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +0 -3
- data/lib/relaton/db.rb +2 -6
- data/lib/relaton/version.rb +1 -1
- data/spec/relaton_spec.rb +4 -4
- data/spec/vcr_cassetes/3gpp_tr_00_01u_umts_3_0_0.yml +11 -10
- data/spec/vcr_cassetes/async_fetch.yml +1436 -1480
- data/spec/vcr_cassetes/bsi_bs_en_iso_8848.yml +11 -11
- data/spec/vcr_cassetes/cc_dir_10005_2019.yml +10 -10
- data/spec/vcr_cassetes/cie_001_1980.yml +7 -7
- data/spec/vcr_cassetes/ecma_6.yml +7 -7
- data/spec/vcr_cassetes/en_10160_1999.yml +248 -0
- data/spec/vcr_cassetes/fisp_140.yml +6 -6
- data/spec/vcr_cassetes/gb_t_20223_2006.yml +8 -8
- data/spec/vcr_cassetes/iana_service_names_port_numbers.yml +9 -9
- data/spec/vcr_cassetes/iec_60050_102_2007.yml +27 -27
- data/spec/vcr_cassetes/iec_combined_included.yml +95 -95
- data/spec/vcr_cassetes/ieee_528_2019.yml +1313 -1306
- data/spec/vcr_cassetes/iho_b_11.yml +7 -7
- data/spec/vcr_cassetes/iso_111111119115_1.yml +2 -2
- data/spec/vcr_cassetes/iso_19115_1.yml +16 -16
- data/spec/vcr_cassetes/iso_19115_1_2.yml +31 -31
- data/spec/vcr_cassetes/iso_19115_all_parts.yml +17 -17
- data/spec/vcr_cassetes/iso_19133_2005.yml +15 -15
- data/spec/vcr_cassetes/iso_combined_applied.yml +31 -31
- data/spec/vcr_cassetes/iso_combined_included.yml +30 -30
- data/spec/vcr_cassetes/iso_dis_14093.yml +14 -14
- data/spec/vcr_cassetes/itu_combined_included.yml +210 -222
- data/spec/vcr_cassetes/oasis_amqp_core_types_v1_0_pt1.yml +10 -10
- data/spec/vcr_cassetes/ogc_19_025r1.yml +10 -10
- data/spec/vcr_cassetes/omg_ami4ccm_1_0.yml +4 -4
- data/spec/vcr_cassetes/rfc_8341.yml +7 -7
- data/spec/vcr_cassetes/sp_800_38b.yml +6 -6
- data/spec/vcr_cassetes/threads_from_env.yml +60 -64
- data/spec/vcr_cassetes/un_rtade_cefact_2004_32.yml +30 -30
- data/spec/vcr_cassetes/w3c_json_ld11.yml +96 -11
- metadata +3 -5
- data/spec/vcr_cassetes/api_relaton_org.yml +0 -57
- data/spec/vcr_cassetes/api_relaton_org_unavailable.yml +0 -198
- data/spec/vcr_cassetes/cen_en_10160_1999.yml +0 -249
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c48be5786c54e546b11600e0b15a3b104c318c9cc991ea7bf4ef90e064e38e49
|
4
|
+
data.tar.gz: 7d5080df0ee89e1b6c2b1115e6652f57b575749898ed9ea05b06e4bd074011c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5747e84497e8268c07f1f8d922bfc46265ccf05283368ec0e090124c39a1a0d9cff46c30d15c1fba58094b6bc4f2a087becb4f3e845e83eb4796f75036263be3
|
7
|
+
data.tar.gz: 6c8c00b7ed446f679e526dc50f5d9d8a14a7e8de1103fe0d2ec90e8334f7e31aea1c4de2e03960cc52c9641e992ba2b88a54901b0b1d6ed1c45b960fd57c9333
|
data/Gemfile
CHANGED
data/lib/relaton/db.rb
CHANGED
@@ -273,7 +273,7 @@ module Relaton
|
|
273
273
|
bib = check_bibliocache(ref + divider + c, year, opts, stdclass)
|
274
274
|
if bib
|
275
275
|
d.relation << RelatonBib::DocumentRelation.new(
|
276
|
-
type: reltype, description: reldesc, bibitem: bib
|
276
|
+
type: reltype, description: reldesc, bibitem: bib,
|
277
277
|
)
|
278
278
|
end
|
279
279
|
end
|
@@ -286,12 +286,8 @@ module Relaton
|
|
286
286
|
return name if /^(urn:)?#{processor.prefix}/i.match?(code) ||
|
287
287
|
processor.defaultprefix.match(code)
|
288
288
|
end
|
289
|
-
allowed = @registry.processors.reduce([]) do |m, (_k, v)|
|
290
|
-
m << v.prefix
|
291
|
-
end
|
292
289
|
Util.log <<~WARN, :info
|
293
|
-
[relaton] #{code} does not have a recognised prefix
|
294
|
-
See https://github.com/relaton/relaton/ for instructions on prefixing and wrapping document identifiers to disambiguate them.
|
290
|
+
[relaton] #{code} does not have a recognised prefix
|
295
291
|
WARN
|
296
292
|
end
|
297
293
|
|
data/lib/relaton/version.rb
CHANGED
data/spec/relaton_spec.rb
CHANGED
@@ -293,8 +293,8 @@ RSpec.describe Relaton::Db do
|
|
293
293
|
end
|
294
294
|
|
295
295
|
it "get CEN reference" do
|
296
|
-
VCR.use_cassette "
|
297
|
-
bib = @db.fetch "
|
296
|
+
VCR.use_cassette "en_10160_1999" do
|
297
|
+
bib = @db.fetch "EN 10160:1999"
|
298
298
|
expect(bib).to be_instance_of RelatonIsoBib::IsoBibliographicItem
|
299
299
|
end
|
300
300
|
end
|
@@ -381,9 +381,9 @@ RSpec.describe Relaton::Db do
|
|
381
381
|
end
|
382
382
|
end
|
383
383
|
|
384
|
-
context "
|
384
|
+
context "NIST" do
|
385
385
|
it "included" do
|
386
|
-
VCR.use_cassette "
|
386
|
+
VCR.use_cassette "nist_combined_included" do
|
387
387
|
bib = @db.fetch "NIST SP 800-38A, Add"
|
388
388
|
expect(bib.docidentifier[0].id).to eq "NIST SP 800-38A, Add"
|
389
389
|
expect(bib.relation[0].type).to eq "updates"
|
@@ -23,7 +23,7 @@ http_interactions:
|
|
23
23
|
Connection:
|
24
24
|
- keep-alive
|
25
25
|
Content-Length:
|
26
|
-
- '
|
26
|
+
- '746'
|
27
27
|
Cache-Control:
|
28
28
|
- max-age=300
|
29
29
|
Content-Security-Policy:
|
@@ -31,7 +31,7 @@ http_interactions:
|
|
31
31
|
Content-Type:
|
32
32
|
- text/plain; charset=utf-8
|
33
33
|
Etag:
|
34
|
-
- W/"
|
34
|
+
- W/"7b1fd8c3cc8a83e47b78d925027060ef4583c418e75be5749d38f6a37e0f01ca"
|
35
35
|
Strict-Transport-Security:
|
36
36
|
- max-age=31536000
|
37
37
|
X-Content-Type-Options:
|
@@ -41,29 +41,29 @@ http_interactions:
|
|
41
41
|
X-Xss-Protection:
|
42
42
|
- 1; mode=block
|
43
43
|
X-Github-Request-Id:
|
44
|
-
-
|
44
|
+
- 687A:10CE7:F2C38C:107FE9E:6278EE7D
|
45
45
|
Accept-Ranges:
|
46
46
|
- bytes
|
47
47
|
Date:
|
48
|
-
-
|
48
|
+
- Mon, 09 May 2022 10:35:41 GMT
|
49
49
|
Via:
|
50
50
|
- 1.1 varnish
|
51
51
|
X-Served-By:
|
52
|
-
- cache-
|
52
|
+
- cache-vie6353-VIE
|
53
53
|
X-Cache:
|
54
54
|
- MISS
|
55
55
|
X-Cache-Hits:
|
56
56
|
- '0'
|
57
57
|
X-Timer:
|
58
|
-
-
|
58
|
+
- S1652092541.458281,VS0,VE220
|
59
59
|
Vary:
|
60
60
|
- Authorization,Accept-Encoding,Origin
|
61
61
|
Access-Control-Allow-Origin:
|
62
62
|
- "*"
|
63
63
|
X-Fastly-Request-Id:
|
64
|
-
-
|
64
|
+
- bc2e33f28bbade3cfbf583259d99518383e6f9f3
|
65
65
|
Expires:
|
66
|
-
-
|
66
|
+
- Mon, 09 May 2022 10:40:41 GMT
|
67
67
|
Source-Age:
|
68
68
|
- '0'
|
69
69
|
body:
|
@@ -102,6 +102,7 @@ http_interactions:
|
|
102
102
|
postcode: '06921'
|
103
103
|
role:
|
104
104
|
- author
|
105
|
+
- publisher
|
105
106
|
- person:
|
106
107
|
name:
|
107
108
|
completename:
|
@@ -126,7 +127,7 @@ http_interactions:
|
|
126
127
|
value: withdrawn
|
127
128
|
place:
|
128
129
|
- Sophia Antipolis Cedex, France
|
129
|
-
fetched: '2022-
|
130
|
+
fetched: '2022-04-30'
|
130
131
|
doctype: TR
|
131
132
|
editorialgroup:
|
132
133
|
- name: SMG5
|
@@ -143,5 +144,5 @@ http_interactions:
|
|
143
144
|
close_meeting: SP-28
|
144
145
|
project_end: '1999-02-12'
|
145
146
|
http_version:
|
146
|
-
recorded_at:
|
147
|
+
recorded_at: Mon, 09 May 2022 10:35:41 GMT
|
147
148
|
recorded_with: VCR 5.1.0
|