relaton-ietf 1.10.0 → 1.10.1

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: 416a87cd55baea0734c3fce8f962fa634d25f563f1463e4b1cc982720ab3eca1
4
- data.tar.gz: e9d42bea79b94613665bbab9496045294c62772087eab1ea6791d46163a22c30
3
+ metadata.gz: '00386986e612c0c1a0398ddb906f70f4713b58d0656669f6ccb5b35cb2534969'
4
+ data.tar.gz: d3203c37cee308e7286df6aebe7c22e80ea634c2088c6dfb1b5bede5ba667ace
5
5
  SHA512:
6
- metadata.gz: 7370c152a14761d72eca2d016c9ac37829d7f48675e8ff4733f47a25419f5eeebc37433e97b1b6820bd03abf2b89384839f51ae6200bf37bf7ef301e175393f7
7
- data.tar.gz: 6050bab5b929cef67c4bacb3503900f28794e561a498f0d8288a468ac3cef1c94ec69b99100809fdd73466e5ce4293933f6d2759b1c980b02dca3a0b14fdb1bd
6
+ metadata.gz: 509beae062402de5ab592997a9aeb407dd558ac9da995aefe815c624f75fdb1ee88349701507c8a5646dc86c88f67e33f3bf2e222b3e298ca630d70f42d2b382
7
+ data.tar.gz: 6412e4a373d77d92ea445452cdfbb3946061dd9f355900e60c2072db1cbdea3114f50918ef660761fcfd4f98b8bc31fad87e178c2a9ca02b46efecf74697c270
data/grammars/biblio.rng CHANGED
@@ -209,9 +209,6 @@
209
209
  <zeroOrMore>
210
210
  <ref name="contact"/>
211
211
  </zeroOrMore>
212
- <zeroOrMore>
213
- <ref name="uri"/>
214
- </zeroOrMore>
215
212
  </element>
216
213
  </define>
217
214
  <define name="fullname">
@@ -828,6 +825,11 @@
828
825
  <optional>
829
826
  <attribute name="scope"/>
830
827
  </optional>
828
+ <optional>
829
+ <attribute name="primary">
830
+ <data type="boolean"/>
831
+ </attribute>
832
+ </optional>
831
833
  <text/>
832
834
  </element>
833
835
  </define>
@@ -37,7 +37,10 @@ module RelatonIetf
37
37
  # @param reference [Nokogiri::XML::Element]
38
38
  # @return [Array<Hash>]
39
39
  def contributors(reference)
40
- [{ entity: new_org("Internet Engineering Task Force", "IETF"), role: [type: "publisher"] }] + super
40
+ [{
41
+ entity: new_org("Internet Engineering Task Force", "IETF"),
42
+ role: [type: "publisher"],
43
+ }] + super
41
44
  # persons(reference) + organizations(reference)
42
45
  end
43
46
  end
@@ -64,17 +64,6 @@ module RelatonIetf
64
64
  # Fetches ietf-internet-drafts documents
65
65
  #
66
66
  def fetch_ieft_internet_drafts # rubocop:disable Metrics/MethodLength
67
- # gz = OpenURI.open_uri("https://www.ietf.org/lib/dt/sprint/bibxml-ids.tgz")
68
- # z = Zlib::GzipReader.new(gz)
69
- # io = StringIO.new(z.read)
70
- # z.close
71
- # Gem::Package::TarReader.new io do |tar|
72
- # tar.each do |tarfile|
73
- # next if tarfile.directory?
74
-
75
- # save_doc BibXMLParser.parse(tarfile.read)
76
- # end
77
- # end
78
67
  Dir["bibxml-ids/*.xml"].each do |file|
79
68
  save_doc BibXMLParser.parse(File.read(file, encoding: "UTF-8"))
80
69
  end
@@ -67,7 +67,7 @@ module RelatonIetf
67
67
  #
68
68
  def parse_docid
69
69
  ids = [
70
- RelatonBib::DocumentIdentifier.new(id: pub_id, type: "IETF"),
70
+ RelatonBib::DocumentIdentifier.new(id: pub_id, type: "IETF", primary: true),
71
71
  RelatonBib::DocumentIdentifier.new(id: code, type: "IETF", scope: "anchor"),
72
72
  ]
73
73
  doi = @doc.at("./xmlns:doi").text
@@ -54,7 +54,7 @@ module RelatonIetf
54
54
 
55
55
  def parse_docid
56
56
  [
57
- RelatonBib::DocumentIdentifier.new(type: "IETF", id: pub_id),
57
+ RelatonBib::DocumentIdentifier.new(type: "IETF", id: pub_id, primary: true),
58
58
  RelatonBib::DocumentIdentifier.new(type: "IETF", scope: "anchor", id: @doc_id),
59
59
  ]
60
60
  end
@@ -1,3 +1,3 @@
1
1
  module RelatonIetf
2
- VERSION = "1.10.0".freeze
2
+ VERSION = "1.10.1".freeze
3
3
  end
data/relaton_ietf.gemspec CHANGED
@@ -38,6 +38,6 @@ Gem::Specification.new do |spec|
38
38
  spec.add_development_dependency "vcr"
39
39
  spec.add_development_dependency "webmock"
40
40
 
41
- spec.add_dependency "relaton-bib", "~> 1.10.0"
41
+ spec.add_dependency "relaton-bib", "~> 1.10.1"
42
42
  # spec.add_dependency "zlib", "~> 1.1.0"
43
43
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-ietf
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.0
4
+ version: 1.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-30 00:00:00.000000000 Z
11
+ date: 2022-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: equivalent-xml
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 1.10.0
131
+ version: 1.10.1
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 1.10.0
138
+ version: 1.10.1
139
139
  description: "RelatonIetf: retrieve IETF Standards for bibliographic use \nusing the
140
140
  BibliographicItem model.\n\nFormerly known as rfcbib.\n"
141
141
  email: