relaton-itu 1.9.0 → 1.10.2

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: 443efe7164133e912efaf549d181f6cb8db6d5c00173ab19a3bbe6edfeb3c212
4
- data.tar.gz: 2806a773f08a460ae8af59ec6ff9b2b43d78763615fc8dea7d7c388a1d8d8ca2
3
+ metadata.gz: 4ed2f429bff8900cca3d2d94c5139f0b2f5c0d2d3e64be5ba25113e158f66ea4
4
+ data.tar.gz: 69e8bec23ab1faed23e0ffc119b8119c053affcde4a017370aad0621fc962f52
5
5
  SHA512:
6
- metadata.gz: 4fa3113cfa860e19711fb7a7ed3c0a8b3729d32ec1ce0515978e6c93eb60bf80a72f340f29781f39993739373b10dd7e54fe183a1c8cc453292759b52c78aff2
7
- data.tar.gz: f08fa214cad94c712fb11e887f8431e23c782e048ca829f4b1b177a63caa85dcc35467671491714a402dbb9a67bf8e9c4bc8b43e4e177e9a1f4da4162c75c27a
6
+ metadata.gz: 328204530044854bfbb6018d8ac29d5c9d77966d42cba2c68251337b5afd207b2ca88b18ac4c06be916cfbe1e1351d140328fcfd9386399598be140e908dbfd6
7
+ data.tar.gz: 852af0debcff9966bc15c0eb220349ceae6ac008a00daa057864dc74d0f6a15377f11faafccdba4f5958b0d054fd1a63847366f016778381e0d5108f42f0b6ad
data/.rubocop.yml CHANGED
@@ -2,6 +2,8 @@
2
2
  # https://github.com/riboseinc/oss-guides
3
3
  # All project-specific additions and overrides should be specified in this file.
4
4
 
5
+ require: rubocop-rails
6
+
5
7
  inherit_from:
6
8
  - https://raw.githubusercontent.com/riboseinc/oss-guides/master/ci/rubocop.yml
7
9
  AllCops:
data/README.adoc CHANGED
@@ -120,6 +120,17 @@ RelatonItu::ItuBibliography.get 'ITU-R RR (2020)'
120
120
  ...
121
121
  ----
122
122
 
123
+ === Typed links
124
+
125
+ Each ITU document has `src` type link and optional `obp` and `word` link types.
126
+
127
+ [source,ruby]
128
+ ----
129
+ item.link
130
+ => [#<RelatonBib::TypedUri:0x00007f82d665f530 @content=#<Addressable::URI:0xc170 URI:https://www.itu.int/ITU-T/recommendations/rec.aspx?rec=13786&lang=en>, @type="src">,
131
+ #<RelatonBib::TypedUri:0x00007f82d665f0f8 @content=#<Addressable::URI:0xc184 URI:https://www.itu.inthttp//handle.itu.int/11.1002/1000/13786-en?locatt=format:pdf&auth>, @type="obp">]
132
+ ----
133
+
123
134
  === Create bibliographic item form YAML
124
135
  [source,ruby]
125
136
  ----
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">
@@ -401,9 +398,9 @@
401
398
  <choice>
402
399
  <!-- iso191606 TODO -->
403
400
  <group>
404
- <oneOrMore>
401
+ <zeroOrMore>
405
402
  <ref name="street"/>
406
- </oneOrMore>
403
+ </zeroOrMore>
407
404
  <ref name="city"/>
408
405
  <optional>
409
406
  <ref name="state"/>
@@ -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>