relaton-iana 1.16.2 → 1.17.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: 509869bec996aebee5073ea3cc62c0f8cb547958c2f3b0710c3ecfde3b39d18f
4
- data.tar.gz: 49ef563cfe9b109547eb305e9d82b4de6002f17173d4d15d07221f995fed7218
3
+ metadata.gz: 5affee1debd80ebe3bc401baa233edc1652f692254de493e39ebc31703c66b3f
4
+ data.tar.gz: ca0cfad11fbe7b397e3a25d4e62c122d3bafc298960b6de2882b932fef8d3291
5
5
  SHA512:
6
- metadata.gz: fd097de3eeb75adbd95b1cf149e97278dc1d9169b26496d5c9d959565c2cbd76705efe1194cabcecc088b2a92ebced7687313f1728f1dc039792f58b77dbc21f
7
- data.tar.gz: 9bd62ec81ef47fad29b48f2796148df25d0a26fedacfe302378491dcf7785843d1ea514822008a82920c22f01840895a6b4974edb050e7b8b2049296e122ee75
6
+ metadata.gz: cd127457d696cceb56b83437cbfc708a96b3cf279ad19b58d1966fcd436be840158cd687195dd763c0d566f3f3cd7ca626d8c0e8590013c49a5283da91683b7f
7
+ data.tar.gz: 810cc8bf7f4457e601e1e37d4a94658da47c6ad8dc7510cdbc0519f104608179fc8925253ac975b93342591effc8321e85613467159035f8ecad0e8f9b7ec06d
@@ -346,6 +346,8 @@
346
346
  <ref name="keyword"/>
347
347
  <ref name="xref"/>
348
348
  <ref name="hyperlink"/>
349
+ <ref name="index"/>
350
+ <ref name="index-xref"/>
349
351
  </choice>
350
352
  </oneOrMore>
351
353
  </element>
@@ -623,6 +625,8 @@
623
625
  <ref name="eref"/>
624
626
  <ref name="xref"/>
625
627
  <ref name="hyperlink"/>
628
+ <ref name="index"/>
629
+ <ref name="index-xref"/>
626
630
  </choice>
627
631
  </zeroOrMore>
628
632
  </element>
@@ -636,6 +640,8 @@
636
640
  <ref name="eref"/>
637
641
  <ref name="xref"/>
638
642
  <ref name="hyperlink"/>
643
+ <ref name="index"/>
644
+ <ref name="index-xref"/>
639
645
  </choice>
640
646
  </zeroOrMore>
641
647
  </element>
@@ -648,6 +654,8 @@
648
654
  <ref name="eref"/>
649
655
  <ref name="xref"/>
650
656
  <ref name="hyperlink"/>
657
+ <ref name="index"/>
658
+ <ref name="index-xref"/>
651
659
  </choice>
652
660
  </zeroOrMore>
653
661
  </element>
@@ -655,7 +663,11 @@
655
663
  <define name="keyword">
656
664
  <element name="keyword">
657
665
  <zeroOrMore>
658
- <ref name="PureTextElement"/>
666
+ <choice>
667
+ <ref name="PureTextElement"/>
668
+ <ref name="index"/>
669
+ <ref name="index-xref"/>
670
+ </choice>
659
671
  </zeroOrMore>
660
672
  </element>
661
673
  </define>
@@ -676,7 +688,11 @@
676
688
  <define name="strike">
677
689
  <element name="strike">
678
690
  <zeroOrMore>
679
- <ref name="PureTextElement"/>
691
+ <choice>
692
+ <ref name="PureTextElement"/>
693
+ <ref name="index"/>
694
+ <ref name="index-xref"/>
695
+ </choice>
680
696
  </zeroOrMore>
681
697
  </element>
682
698
  </define>
data/grammars/biblio.rng CHANGED
@@ -942,6 +942,7 @@
942
942
  <value>obsoleted</value>
943
943
  <value>confirmed</value>
944
944
  <value>updated</value>
945
+ <value>corrected</value>
945
946
  <value>issued</value>
946
947
  <value>transmitted</value>
947
948
  <value>copied</value>
@@ -1,8 +1,11 @@
1
1
  module RelatonIana
2
- class HashConverter < RelatonBib::HashConverter
2
+ module HashConverter
3
+ include RelatonBib::HashConverter
4
+ extend self
5
+
3
6
  # @param item_hash [Hash]
4
7
  # @return [RelatonIana::IanaBibliographicItem]
5
- def self.bib_item(item_hash)
8
+ def bib_item(item_hash)
6
9
  IanaBibliographicItem.new(**item_hash)
7
10
  end
8
11
  end
@@ -8,7 +8,7 @@ module RelatonIana
8
8
 
9
9
  # @param text [String]
10
10
  # @return [RelatonIana::IanaBibliographicItem]
11
- def search(text) # rubocop:disable Metrics/MethodLength
11
+ def search(text) # rubocop:disable Metrics/MethodLength,Metrics/AbcSize
12
12
  # file = text.sub(/^IANA\s/, "").gsub(/[\s,:\/]/, "_").downcase
13
13
  # url = "#{SOURCE}#{file}.yaml"
14
14
  index = Relaton::Index.find_or_create :IANA, url: "#{SOURCE}index-v1.zip", file: INDEX_FILE
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RelatonIana
4
- VERSION = "1.16.2"
4
+ VERSION = "1.17.0"
5
5
  end
data/relaton_iana.gemspec CHANGED
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
31
31
  spec.require_paths = ["lib"]
32
32
 
33
33
  spec.add_dependency "faraday", "~> 2.7.0"
34
- spec.add_dependency "relaton-bib", "~> 1.16.0"
34
+ spec.add_dependency "relaton-bib", "~> 1.17.0"
35
35
  spec.add_dependency "relaton-index", "~> 0.2.0"
36
36
 
37
37
  # Uncomment to register a new dependency of your gem
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-iana
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.16.2
4
+ version: 1.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-10-13 00:00:00.000000000 Z
11
+ date: 2023-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.16.0
33
+ version: 1.17.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.16.0
40
+ version: 1.17.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: relaton-index
43
43
  requirement: !ruby/object:Gem::Requirement