relaton 1.9.3 → 1.9.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/lib/relaton/registry.rb +1 -1
  3. data/lib/relaton/version.rb +1 -1
  4. data/relaton.gemspec +1 -0
  5. data/spec/relaton/registry_spec.rb +4 -0
  6. data/spec/relaton_spec.rb +12 -5
  7. data/spec/vcr_cassetes/async_fetch.yml +1554 -1601
  8. data/spec/vcr_cassetes/bsi_bs_en_iso_8848.yml +12 -12
  9. data/spec/vcr_cassetes/cc_dir_10005_2019.yml +10 -10
  10. data/spec/vcr_cassetes/cen_en_10160_1999.yml +28 -28
  11. data/spec/vcr_cassetes/cie_001_1980.yml +7 -7
  12. data/spec/vcr_cassetes/ecma_6.yml +7 -7
  13. data/spec/vcr_cassetes/fisp_140.yml +6 -6
  14. data/spec/vcr_cassetes/gb_t_20223_2006.yml +6 -6
  15. data/spec/vcr_cassetes/iana_service_names_port_numbers.yml +75 -0
  16. data/spec/vcr_cassetes/iec_60050_102_2007.yml +28 -28
  17. data/spec/vcr_cassetes/iec_combined_included.yml +92 -92
  18. data/spec/vcr_cassetes/ieee_528_2019.yml +11 -11
  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 +15 -15
  22. data/spec/vcr_cassetes/iso_19115_1_2.yml +30 -30
  23. data/spec/vcr_cassetes/iso_19115_all_parts.yml +16 -16
  24. data/spec/vcr_cassetes/iso_19133_2005.yml +14 -14
  25. data/spec/vcr_cassetes/iso_cd_14093.yml +15 -15
  26. data/spec/vcr_cassetes/iso_combined_applied.yml +29 -29
  27. data/spec/vcr_cassetes/iso_combined_included.yml +33 -33
  28. data/spec/vcr_cassetes/itu_combined_included.yml +170 -170
  29. data/spec/vcr_cassetes/ogc_19_025r1.yml +7 -7
  30. data/spec/vcr_cassetes/omg_ami4ccm_1_0.yml +4 -4
  31. data/spec/vcr_cassetes/rfc_8341.yml +7 -7
  32. data/spec/vcr_cassetes/sp_800_38b.yml +6 -6
  33. data/spec/vcr_cassetes/un_rtade_cefact_2004_32.yml +29 -29
  34. data/spec/vcr_cassetes/w3c_json_ld11.yml +93 -138
  35. metadata +17 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a3599c52bacdd454603dc095055338b4a89b8264ee9391fa2a2b25f1724a46e2
4
- data.tar.gz: aa64435911173af46c12a522b05d063c4cfa0644f1919c96ec3879f9b8f9af39
3
+ metadata.gz: 250207e6a1eaa872380c5b959d727be909d99874797832a4288a058259e96bb2
4
+ data.tar.gz: df287ddd627ff37b9ecbcd3207a4eb8216690b9d3df9db2a9b31ff2a3648a363
5
5
  SHA512:
6
- metadata.gz: 74fc610b35697515cf2f925349ff9ad076c50a3ec8e0fa08a9cbfa3fc82217c32b2f5e2869af604a58e12f70898de41addade73971a6fae9085b56eb7b3b5ff0
7
- data.tar.gz: 8cda3116f9e84eb3f549dc1a4c5a74fb6957d4834d0cf140f587434f2b9ff84e7cae93946147b7151fa6cf1739f13aba1639f92c2f73fce552999e3a7dfe35fd
6
+ metadata.gz: 75eecbdaa0c5d6bc954b790eecba13d987974be787181332343b23558534543fb4107366444fe49aab6fea2e54830dc46051449f482d494a9afad0f3bd502abf
7
+ data.tar.gz: 159b1e402d0b8521634598412edb68cf8e468009d24e96be56f678df98a62099b568d8de04c77a10ed72faed770f4d87d536fd1e152fa24f39786540d5e51643
@@ -9,7 +9,7 @@ module Relaton
9
9
  relaton_gb relaton_iec relaton_ietf relaton_iso relaton_itu relaton_nist
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
- relaton_cen
12
+ relaton_cen relaton_iana
13
13
  ].freeze
14
14
 
15
15
  include Singleton
@@ -1,3 +1,3 @@
1
1
  module Relaton
2
- VERSION = "1.9.3".freeze
2
+ VERSION = "1.9.4".freeze
3
3
  end
data/relaton.gemspec CHANGED
@@ -36,6 +36,7 @@ Gem::Specification.new do |spec|
36
36
  spec.add_dependency "relaton-cie", "~> 1.9.0"
37
37
  spec.add_dependency "relaton-ecma", "~> 1.9.0"
38
38
  spec.add_dependency "relaton-gb", "~> 1.9.0"
39
+ spec.add_dependency "relaton-iana", "~> 1.9.0"
39
40
  spec.add_dependency "relaton-iec", "~> 1.9.0"
40
41
  spec.add_dependency "relaton-ieee", "~> 1.9.0"
41
42
  spec.add_dependency "relaton-ietf", "~> 1.9.0"
@@ -87,6 +87,10 @@ RSpec.describe Relaton::Registry do
87
87
  it "CEN" do
88
88
  expect(Relaton::Registry.instance.by_type("CEN")).to be_instance_of RelatonCen::Processor
89
89
  end
90
+
91
+ it "IANA" do
92
+ expect(Relaton::Registry.instance.by_type("IANA")).to be_instance_of RelatonIana::Processor
93
+ end
90
94
  end
91
95
 
92
96
  it "find processot by dataset" do
data/spec/relaton_spec.rb CHANGED
@@ -246,13 +246,13 @@ RSpec.describe Relaton::Db do
246
246
  end
247
247
 
248
248
  it "get W3C reference" do
249
- w3c_fr = /\.relaton\/w3c\/bibliography\.yml/
250
- expect(File).to receive(:exist?).with(w3c_fr).and_return false
251
- expect(File).to receive(:exist?).and_call_original.at_least :once
252
- expect(File).to receive(:write).with w3c_fr, kind_of(String), kind_of(Hash)
249
+ # w3c_fr = /\.relaton\/w3c\/bibliography\.yml/
250
+ # expect(File).to receive(:exist?).with(w3c_fr).and_return false
251
+ # expect(File).to receive(:exist?).and_call_original.at_least :once
252
+ # expect(File).to receive(:write).with w3c_fr, kind_of(String), kind_of(Hash)
253
253
  # expect(File).to receive(:write).and_call_original.at_least :once
254
254
  VCR.use_cassette "w3c_json_ld11" do
255
- bib = @db.fetch "W3C JSON-LD 1.1", nil, {}
255
+ bib = @db.fetch "W3C REC-json-ld11-20200716", nil, {}
256
256
  expect(bib).to be_instance_of RelatonW3c::W3cBibliographicItem
257
257
  end
258
258
  end
@@ -299,6 +299,13 @@ RSpec.describe Relaton::Db do
299
299
  end
300
300
  end
301
301
 
302
+ it "get IANA reference" do
303
+ VCR.use_cassette "iana_service_names_port_numbers" do
304
+ bib = @db.fetch "IANA service-names-port-numbers"
305
+ expect(bib).to be_instance_of RelatonBib::BibliographicItem
306
+ end
307
+ end
308
+
302
309
  context "get combined documents" do
303
310
  context "ISO" do
304
311
  it "included" do