relaton 1.11.0 → 1.11.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +0 -3
  3. data/lib/relaton/db.rb +2 -6
  4. data/lib/relaton/version.rb +1 -1
  5. data/spec/relaton_spec.rb +4 -4
  6. data/spec/vcr_cassetes/3gpp_tr_00_01u_umts_3_0_0.yml +11 -10
  7. data/spec/vcr_cassetes/async_fetch.yml +1436 -1480
  8. data/spec/vcr_cassetes/bsi_bs_en_iso_8848.yml +11 -11
  9. data/spec/vcr_cassetes/cc_dir_10005_2019.yml +10 -10
  10. data/spec/vcr_cassetes/cie_001_1980.yml +7 -7
  11. data/spec/vcr_cassetes/ecma_6.yml +7 -7
  12. data/spec/vcr_cassetes/en_10160_1999.yml +248 -0
  13. data/spec/vcr_cassetes/fisp_140.yml +6 -6
  14. data/spec/vcr_cassetes/gb_t_20223_2006.yml +8 -8
  15. data/spec/vcr_cassetes/iana_service_names_port_numbers.yml +9 -9
  16. data/spec/vcr_cassetes/iec_60050_102_2007.yml +27 -27
  17. data/spec/vcr_cassetes/iec_combined_included.yml +95 -95
  18. data/spec/vcr_cassetes/ieee_528_2019.yml +1313 -1306
  19. data/spec/vcr_cassetes/iho_b_11.yml +7 -7
  20. data/spec/vcr_cassetes/iso_111111119115_1.yml +2 -2
  21. data/spec/vcr_cassetes/iso_19115_1.yml +16 -16
  22. data/spec/vcr_cassetes/iso_19115_1_2.yml +31 -31
  23. data/spec/vcr_cassetes/iso_19115_all_parts.yml +17 -17
  24. data/spec/vcr_cassetes/iso_19133_2005.yml +15 -15
  25. data/spec/vcr_cassetes/iso_combined_applied.yml +31 -31
  26. data/spec/vcr_cassetes/iso_combined_included.yml +30 -30
  27. data/spec/vcr_cassetes/iso_dis_14093.yml +14 -14
  28. data/spec/vcr_cassetes/itu_combined_included.yml +210 -222
  29. data/spec/vcr_cassetes/oasis_amqp_core_types_v1_0_pt1.yml +10 -10
  30. data/spec/vcr_cassetes/ogc_19_025r1.yml +10 -10
  31. data/spec/vcr_cassetes/omg_ami4ccm_1_0.yml +4 -4
  32. data/spec/vcr_cassetes/rfc_8341.yml +7 -7
  33. data/spec/vcr_cassetes/sp_800_38b.yml +6 -6
  34. data/spec/vcr_cassetes/threads_from_env.yml +60 -64
  35. data/spec/vcr_cassetes/un_rtade_cefact_2004_32.yml +30 -30
  36. data/spec/vcr_cassetes/w3c_json_ld11.yml +96 -11
  37. metadata +3 -5
  38. data/spec/vcr_cassetes/api_relaton_org.yml +0 -57
  39. data/spec/vcr_cassetes/api_relaton_org_unavailable.yml +0 -198
  40. 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: 3ba66eb8e85f33add05b73475aec5b97e27533f2e11922f4455b6762f7e68356
4
- data.tar.gz: 6fc85eb07f89fdce73b80c3ed6228ed55ab18e0ab00375fc2b4febb111851ab1
3
+ metadata.gz: c48be5786c54e546b11600e0b15a3b104c318c9cc991ea7bf4ef90e064e38e49
4
+ data.tar.gz: 7d5080df0ee89e1b6c2b1115e6652f57b575749898ed9ea05b06e4bd074011c6
5
5
  SHA512:
6
- metadata.gz: 5b59b213a48233449cd87a46652c627cc14b4a805c0186198f6cba402998a6e4aaeabbaddfcedc51014caba82e203900c1627069146972fb92e15eb6aaa6d5f3
7
- data.tar.gz: 13a342631fa1f3b403571d8a2d7201d7eeac7402e9232967b418c10b52e0ecdb9c2e22a0e89ee3b15477aa5f18ebaf8111e58d591c8e04e3a037dfe6e79c142a
6
+ metadata.gz: 5747e84497e8268c07f1f8d922bfc46265ccf05283368ec0e090124c39a1a0d9cff46c30d15c1fba58094b6bc4f2a087becb4f3e845e83eb4796f75036263be3
7
+ data.tar.gz: 6c8c00b7ed446f679e526dc50f5d9d8a14a7e8de1103fe0d2ec90e8334f7e31aea1c4de2e03960cc52c9641e992ba2b88a54901b0b1d6ed1c45b960fd57c9333
data/Gemfile CHANGED
@@ -1,6 +1,3 @@
1
- Encoding.default_external = Encoding::UTF_8
2
- Encoding.default_internal = Encoding::UTF_8
3
-
4
1
  source "https://rubygems.org"
5
2
 
6
3
  # Specify your gem's dependencies in gemspec
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: #{allowed.join(', ')}.
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
 
@@ -1,3 +1,3 @@
1
1
  module Relaton
2
- VERSION = "1.11.0".freeze
2
+ VERSION = "1.11.1".freeze
3
3
  end
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 "cen_en_10160_1999" do
297
- bib = @db.fetch "CEN EN 10160:1999"
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 "HIST" do
384
+ context "NIST" do
385
385
  it "included" do
386
- VCR.use_cassette "hist_cmbined_included" do
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
- - '742'
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/"5a6b504923740a5333699cfb900329bc0771ece2c2c583a91a69ec17cb44852f"
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
- - 4B02:2F62:87AF2:FB38E:6252D29A
44
+ - 687A:10CE7:F2C38C:107FE9E:6278EE7D
45
45
  Accept-Ranges:
46
46
  - bytes
47
47
  Date:
48
- - Sun, 10 Apr 2022 12:50:35 GMT
48
+ - Mon, 09 May 2022 10:35:41 GMT
49
49
  Via:
50
50
  - 1.1 varnish
51
51
  X-Served-By:
52
- - cache-sof1510027-SOF
52
+ - cache-vie6353-VIE
53
53
  X-Cache:
54
54
  - MISS
55
55
  X-Cache-Hits:
56
56
  - '0'
57
57
  X-Timer:
58
- - S1649595035.930194,VS0,VE374
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
- - 1c06f92c3c3310d10355e9f3400ed3debbe4c8f8
64
+ - bc2e33f28bbade3cfbf583259d99518383e6f9f3
65
65
  Expires:
66
- - Sun, 10 Apr 2022 12:55:35 GMT
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-03-30'
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: Sun, 10 Apr 2022 12:50:35 GMT
147
+ recorded_at: Mon, 09 May 2022 10:35:41 GMT
147
148
  recorded_with: VCR 5.1.0