relaton 1.11.5 → 1.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/lib/relaton/db.rb +1 -1
  3. data/lib/relaton/version.rb +1 -1
  4. data/relaton.gemspec +21 -21
  5. data/spec/relaton/db_spec.rb +1 -1
  6. data/spec/spec_helper.rb +1 -0
  7. data/spec/vcr_cassetes/3gpp_tr_00_01u_umts_3_0_0.yml +7 -7
  8. data/spec/vcr_cassetes/async_fetch.yml +1363 -1363
  9. data/spec/vcr_cassetes/bipm_i18n_async_fetch.yml +51 -259
  10. data/spec/vcr_cassetes/bsi_bs_en_iso_8848.yml +10 -10
  11. data/spec/vcr_cassetes/cc_dir_10005_2019.yml +10 -10
  12. data/spec/vcr_cassetes/cie_001_1980.yml +7 -7
  13. data/spec/vcr_cassetes/ecma_6.yml +10 -9
  14. data/spec/vcr_cassetes/en_10160_1999.yml +24 -24
  15. data/spec/vcr_cassetes/fisp_140.yml +5 -5
  16. data/spec/vcr_cassetes/gb_t_20223_2006.yml +6 -6
  17. data/spec/vcr_cassetes/iana_service_names_port_numbers.yml +10 -10
  18. data/spec/vcr_cassetes/iec_60050_102_2007.yml +37 -27
  19. data/spec/vcr_cassetes/iec_combined_included.yml +90 -80
  20. data/spec/vcr_cassetes/ieee_528_2019.yml +515 -504
  21. data/spec/vcr_cassetes/iho_b_11.yml +7 -7
  22. data/spec/vcr_cassetes/iso_111111119115_1.yml +2 -2
  23. data/spec/vcr_cassetes/iso_19115_1.yml +16 -16
  24. data/spec/vcr_cassetes/iso_19115_1_2.yml +28 -28
  25. data/spec/vcr_cassetes/iso_19115_all_parts.yml +16 -16
  26. data/spec/vcr_cassetes/iso_19133_2005.yml +15 -15
  27. data/spec/vcr_cassetes/iso_combined_applied.yml +32 -32
  28. data/spec/vcr_cassetes/iso_combined_included.yml +29 -29
  29. data/spec/vcr_cassetes/iso_dis_14093.yml +16 -16
  30. data/spec/vcr_cassetes/itu_combined_included.yml +168 -168
  31. data/spec/vcr_cassetes/oasis_amqp_core_types_v1_0_pt1.yml +9 -9
  32. data/spec/vcr_cassetes/ogc_19_025r1.yml +7 -7
  33. data/spec/vcr_cassetes/omg_ami4ccm_1_0.yml +2 -2
  34. data/spec/vcr_cassetes/rfc_8341.yml +10 -10
  35. data/spec/vcr_cassetes/sp_800_38b.yml +5 -5
  36. data/spec/vcr_cassetes/threads_from_env.yml +59 -59
  37. data/spec/vcr_cassetes/un_rtade_cefact_2004_32.yml +29 -29
  38. data/spec/vcr_cassetes/w3c_json_ld11.yml +20 -20
  39. metadata +44 -44
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4c30099df631e2cbb313f936f4d6a339d9a0767c6d81f3e9523f6013ce95e77a
4
- data.tar.gz: 9413dc9a5806d1b7a997c68298029407a5bc5fb0daa92e8c7f19c66b8b285bd3
3
+ metadata.gz: eb0eb1b1516d3d9891e873ecad6e439da21cb0cf0ef1b13d9f0a53568b04ad6d
4
+ data.tar.gz: af692237538c88b588db7537366d0fbc476e92e60f48163f892f0cb254c1fa2d
5
5
  SHA512:
6
- metadata.gz: 33f734e4a386c381de112a99f649c54a586c1367cf91065a693235c8c7252a414a38bffa589de960c3cb4564ab08a0311557c38e08804566ac06a8baf6207de7
7
- data.tar.gz: d0e46c2f6ad5ac0263de42c693db297786b583da4a9b86fe2f3db9f2807e6fdd98c9934ff892d362f1e6a53f2c6cf9a8856b66f405b7fc8270c99f198b9a46b3
6
+ metadata.gz: 771e6695638f73ee4c6bb4c00d376889ecd5b7120cd9f31e055ab06f3060b24b55e3276f90d74909806b5977f54593cabc201a17729922e2589e5ac1c0fe6ea4
7
+ data.tar.gz: 2e9611d5f1b99206a2c99f42720638321781563109e9b0e01345c9576dd6bbd9836c185b55233ea6d7c7ddeaf7c86d90a00605a52ba12d6f9527b7c9a6df5cc0
data/lib/relaton/db.rb CHANGED
@@ -217,7 +217,7 @@ module Relaton
217
217
  item = if file.match?(/xml$/) then processor.from_xml(content)
218
218
  else processor.hash_to_bib(YAML.safe_load(content))
219
219
  end
220
- item if (edition.nil? || item.edition == edition) && (year.nil? ||
220
+ item if (edition.nil? || item.edition.content == edition) && (year.nil? ||
221
221
  item.date.detect { |d| d.type == "published" && d.on(:year).to_s == year.to_s })
222
222
  end
223
223
 
@@ -1,3 +1,3 @@
1
1
  module Relaton
2
- VERSION = "1.11.5".freeze
2
+ VERSION = "1.12.0".freeze
3
3
  end
data/relaton.gemspec CHANGED
@@ -29,27 +29,27 @@ 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.11.0"
33
- spec.add_dependency "relaton-bipm", "~> 1.11.0"
34
- spec.add_dependency "relaton-bsi", "~> 1.11.0"
35
- spec.add_dependency "relaton-calconnect", "~> 1.11.0"
36
- spec.add_dependency "relaton-cen", "~> 1.11.0"
37
- spec.add_dependency "relaton-cie", "~> 1.11.0"
38
- spec.add_dependency "relaton-ecma", "~> 1.11.0"
39
- spec.add_dependency "relaton-gb", "~> 1.11.0"
40
- spec.add_dependency "relaton-iana", "~> 1.11.0"
41
- spec.add_dependency "relaton-iec", "~> 1.11.0"
42
- spec.add_dependency "relaton-ieee", "~> 1.11.0"
43
- spec.add_dependency "relaton-ietf", "~> 1.11.0"
44
- spec.add_dependency "relaton-iho", "~> 1.11.0"
45
- spec.add_dependency "relaton-iso", "~> 1.11.0"
46
- spec.add_dependency "relaton-itu", "~> 1.11.0"
47
- spec.add_dependency "relaton-nist", "~> 1.11.0"
48
- spec.add_dependency "relaton-oasis", "~> 1.11.0"
49
- spec.add_dependency "relaton-ogc", "~> 1.11.0"
50
- spec.add_dependency "relaton-omg", "~> 1.11.0"
51
- spec.add_dependency "relaton-un", "~> 1.11.0"
52
- spec.add_dependency "relaton-w3c", "~> 1.11.0"
32
+ spec.add_dependency "relaton-3gpp", "~> 1.12.0"
33
+ spec.add_dependency "relaton-bipm", "~> 1.12.0"
34
+ spec.add_dependency "relaton-bsi", "~> 1.12.0"
35
+ spec.add_dependency "relaton-calconnect", "~> 1.12.0"
36
+ spec.add_dependency "relaton-cen", "~> 1.12.0"
37
+ spec.add_dependency "relaton-cie", "~> 1.12.0"
38
+ spec.add_dependency "relaton-ecma", "~> 1.12.0"
39
+ spec.add_dependency "relaton-gb", "~> 1.12.0"
40
+ spec.add_dependency "relaton-iana", "~> 1.12.0"
41
+ spec.add_dependency "relaton-iec", "~> 1.12.0"
42
+ spec.add_dependency "relaton-ieee", "~> 1.12.0"
43
+ spec.add_dependency "relaton-ietf", "~> 1.12.0"
44
+ spec.add_dependency "relaton-iho", "~> 1.12.0"
45
+ spec.add_dependency "relaton-iso", "~> 1.12.0"
46
+ spec.add_dependency "relaton-itu", "~> 1.12.0"
47
+ spec.add_dependency "relaton-nist", "~> 1.12.0"
48
+ spec.add_dependency "relaton-oasis", "~> 1.12.0"
49
+ spec.add_dependency "relaton-ogc", "~> 1.12.0"
50
+ spec.add_dependency "relaton-omg", "~> 1.12.0"
51
+ spec.add_dependency "relaton-un", "~> 1.12.0"
52
+ spec.add_dependency "relaton-w3c", "~> 1.12.0"
53
53
 
54
54
  spec.add_development_dependency "byebug", "~> 11.0"
55
55
  spec.add_development_dependency "equivalent-xml", "~> 0.6"
@@ -178,7 +178,7 @@ RSpec.describe Relaton::Db do
178
178
  refs = ["CGPM Resolution 1889-00", "CGPM Résolution 1889-00",
179
179
  "CGPM Réunion 9", "CGPM Meeting 9"]
180
180
  results = []
181
- VCR.use_cassette "bipm_i18n_async_fetch" do
181
+ VCR.use_cassette "bipm_i18n_async_fetch", match_requests_on: %i[method uri body] do
182
182
  refs.each do |ref|
183
183
  db.fetch_async(ref) { |r| queue << [r, ref] }
184
184
  end
data/spec/spec_helper.rb CHANGED
@@ -13,6 +13,7 @@ VCR.configure do |c|
13
13
  clean_outdated_http_interactions: true,
14
14
  re_record_interval: 7 * 24 * 3600,
15
15
  record: :once,
16
+ allow_playback_repeats: true,
16
17
  }
17
18
  c.hook_into :webmock
18
19
  end
@@ -41,29 +41,29 @@ http_interactions:
41
41
  X-Xss-Protection:
42
42
  - 1; mode=block
43
43
  X-Github-Request-Id:
44
- - 7178:6974:A78BC:C192B:62AAF846
44
+ - 8632:A505:57A7C:6013A:62B49FA8
45
45
  Accept-Ranges:
46
46
  - bytes
47
47
  Date:
48
- - Thu, 16 Jun 2022 09:30:46 GMT
48
+ - Thu, 23 Jun 2022 17:15:20 GMT
49
49
  Via:
50
50
  - 1.1 varnish
51
51
  X-Served-By:
52
- - cache-vie6334-VIE
52
+ - cache-vie6363-VIE
53
53
  X-Cache:
54
54
  - MISS
55
55
  X-Cache-Hits:
56
56
  - '0'
57
57
  X-Timer:
58
- - S1655371847.568153,VS0,VE230
58
+ - S1656004520.417992,VS0,VE231
59
59
  Vary:
60
60
  - Authorization,Accept-Encoding,Origin
61
61
  Access-Control-Allow-Origin:
62
62
  - "*"
63
63
  X-Fastly-Request-Id:
64
- - da76509a3e570d0b83c3692633c0dfea81acef96
64
+ - e165b70d2170479617e6f38ce302ae4e577caea3
65
65
  Expires:
66
- - Thu, 16 Jun 2022 09:35:46 GMT
66
+ - Thu, 23 Jun 2022 17:20:20 GMT
67
67
  Source-Age:
68
68
  - '0'
69
69
  body:
@@ -143,5 +143,5 @@ http_interactions:
143
143
  freeze_stage3_meeting: SMG-28
144
144
  close_meeting: SP-28
145
145
  project_end: '1999-02-12'
146
- recorded_at: Thu, 16 Jun 2022 09:30:46 GMT
146
+ recorded_at: Thu, 23 Jun 2022 17:15:20 GMT
147
147
  recorded_with: VCR 6.1.0