relaton-bipm 1.8.2 → 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: 3f50f16e84fc01b3abbf19cac52ba2ebb265e5bb9dee2d5bc3b9838cc9246842
4
- data.tar.gz: 96358aff1452e3bcd2577b1f7e812c840b6a868348c7c4e813018761d07158b5
3
+ metadata.gz: 3bc3bc46660a7a7852fd963502f27eb135b9f65bb75a5d24d69e59243fc90ad2
4
+ data.tar.gz: 4311d9bf2198fe3204f1075a9d088ab9bc24c327c9e2d07dcf5abbe0b00b4059
5
5
  SHA512:
6
- metadata.gz: 16d31cad3f3ebc75b1e0e0d36dded2b348c9c8e66f33ac06f512cb2dab120a98f5104b784d5269a8294fd222679861cc9dab71ec34be5ff94b859771bd5efc6b
7
- data.tar.gz: 232e89f4a68d18ebcfaba7ecf52a17a7a06950e42e65fdc50cb95dcf29476176f82d62ad7e635939e2ba6f9ff3525f2ff263db20660f0876d02fcd46458a6913
6
+ metadata.gz: b6d914ecd5376914dda72e7f9aebb392c2685f0b29871531e434cf6402291383b72815497c74f263f6ba4e37fa88f46ddcb3d78bfc4ba7e1371c246ca6f333b7
7
+ data.tar.gz: 2c13012defdb97df5e6884b6f36807bdee455ad39d8feec34441115f2f4796a0a1e46e81101f8ca30c7c3fb7e1b58c15189523b28a1644cf26efedf038cb7731
@@ -16,19 +16,9 @@ jobs:
16
16
  strategy:
17
17
  fail-fast: false
18
18
  matrix:
19
- ruby: [ '2.7', '2.6', '2.5' ]
19
+ ruby: [ '3.0', '2.7', '2.6', '2.5' ]
20
20
  os: [ ubuntu-latest, windows-latest, macos-latest ]
21
21
  experimental: [ false ]
22
- include:
23
- - ruby: '3.0'
24
- os: 'ubuntu-latest'
25
- experimental: true
26
- - ruby: '3.0'
27
- os: 'windows-latest'
28
- experimental: true
29
- - ruby: '3.0'
30
- os: 'macos-latest'
31
- experimental: true
32
22
  steps:
33
23
  - uses: actions/checkout@v2
34
24
  with:
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
@@ -46,11 +46,25 @@ item = RelatonBipm::BipmBibliography.get "BIPM si-brochure"
46
46
  ...
47
47
 
48
48
  # get BIPM Metrologia article
49
- RelatonBipm::BipmBibliography.get "BIPM Metrologia 29 6 373"
49
+ bib = RelatonBipm::BipmBibliography.get "BIPM Metrologia 29 6 373"
50
50
  [relaton-bipm] ("BIPM Metrologia 29 6 373") fetching...
51
51
  [relaton-bipm] ("BIPM Metrologia 29 6 373") found Metrologia 29 6 373
52
52
  => #<RelatonBipm::BipmBibliographicItem:0x007f8857f94d40
53
53
  ...
54
+
55
+ # get CGPM resolutions
56
+ RelatonBipm::BipmBibliography.get "BIPM CGPM01 1"
57
+ [relaton-bipm] ("BIPM CGPM01 1") fetching...
58
+ [relaton-bipm] ("BIPM CGPM01 1") found CGPM01-1
59
+ => #<RelatonBipm::BipmBibliographicItem:0x00007f9e92817968
60
+ ...
61
+
62
+ # get CIPM resolutions
63
+ RelatonBipm::BipmBibliography.get "BIPM CIPM101 1"
64
+ [relaton-bipm] ("BIPM CIPM101 1") fetching...
65
+ [relaton-bipm] ("BIPM CIPM101 1") found CIPM101-1
66
+ => #<RelatonBipm::BipmBibliographicItem:0x00007f9e9293d658
67
+ ...
54
68
  ----
55
69
 
56
70
  === XML serialization
@@ -90,6 +104,7 @@ item.to_xml bibdata: true
90
104
  <fetched>2021-01-10</fetched>
91
105
  <title format="text/plain" language="en" script="Latn">The International System of Units (SI)</title>
92
106
  <title format="text/plain" language="fr" script="Latn">Le Système international d’unités (SI)</title>
107
+ <uri type="src">https://www.bipm.org/en/publications/si-brochure</uri>
93
108
  <docidentifier type="BIPM">si-brochure</docidentifier>
94
109
  <date type="updated">
95
110
  <on>2019-05-20</on>
@@ -112,6 +127,17 @@ item.to_xml bibdata: true
112
127
  </bibdata>"
113
128
  ----
114
129
 
130
+ === Typed links
131
+
132
+ Each BIPM document has `src` type link and optional `doi` type link.
133
+
134
+ [source,ruby]
135
+ ----
136
+ bib.link
137
+ => [#<RelatonBib::TypedUri:0x00007fa6d6a51728 @content=#<Addressable::URI:0xc29c URI:https://iopscience.iop.org/article/10.1088/0026-1394/29/6/001>, @type="src">,
138
+ #<RelatonBib::TypedUri:0x00007fa6d6a29250 @content=#<Addressable::URI:0xc2b0 URI:https://doi.org/10.1088/0026-1394/29/6/001>, @type="doi">]
139
+ ----
140
+
115
141
  === Create bibliographic item from XML
116
142
 
117
143
  [source,ruby]
@@ -173,9 +173,11 @@
173
173
  <data type="dateTime"/>
174
174
  </attribute>
175
175
  </optional>
176
- <attribute name="from">
177
- <data type="IDREF"/>
178
- </attribute>
176
+ <optional>
177
+ <attribute name="from">
178
+ <data type="IDREF"/>
179
+ </attribute>
180
+ </optional>
179
181
  <optional>
180
182
  <attribute name="to">
181
183
  <data type="IDREF"/>
@@ -624,6 +626,9 @@
624
626
  <choice>
625
627
  <ref name="PureTextElement"/>
626
628
  <ref name="stem"/>
629
+ <ref name="eref"/>
630
+ <ref name="xref"/>
631
+ <ref name="hyperlink"/>
627
632
  </choice>
628
633
  </zeroOrMore>
629
634
  </element>
@@ -634,6 +639,9 @@
634
639
  <choice>
635
640
  <ref name="PureTextElement"/>
636
641
  <ref name="stem"/>
642
+ <ref name="eref"/>
643
+ <ref name="xref"/>
644
+ <ref name="hyperlink"/>
637
645
  </choice>
638
646
  </zeroOrMore>
639
647
  </element>
@@ -641,7 +649,12 @@
641
649
  <define name="tt">
642
650
  <element name="tt">
643
651
  <zeroOrMore>
644
- <ref name="PureTextElement"/>
652
+ <choice>
653
+ <ref name="PureTextElement"/>
654
+ <ref name="eref"/>
655
+ <ref name="xref"/>
656
+ <ref name="hyperlink"/>
657
+ </choice>
645
658
  </zeroOrMore>
646
659
  </element>
647
660
  </define>
@@ -822,7 +835,9 @@
822
835
  <attribute name="alt"/>
823
836
  </optional>
824
837
  <ref name="CitationType"/>
825
- <text/>
838
+ <oneOrMore>
839
+ <ref name="PureTextElement"/>
840
+ </oneOrMore>
826
841
  </define>
827
842
  <define name="hyperlink">
828
843
  <element name="link">
@@ -835,7 +850,9 @@
835
850
  <optional>
836
851
  <attribute name="alt"/>
837
852
  </optional>
838
- <text/>
853
+ <oneOrMore>
854
+ <ref name="PureTextElement"/>
855
+ </oneOrMore>
839
856
  </element>
840
857
  </define>
841
858
  <define name="xref">
@@ -849,7 +866,9 @@
849
866
  <optional>
850
867
  <attribute name="alt"/>
851
868
  </optional>
852
- <text/>
869
+ <oneOrMore>
870
+ <ref name="PureTextElement"/>
871
+ </oneOrMore>
853
872
  </element>
854
873
  </define>
855
874
  <define name="fn">
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"/>
@@ -787,6 +784,7 @@
787
784
  <value>adapted</value>
788
785
  <value>vote-started</value>
789
786
  <value>vote-ended</value>
787
+ <value>announced</value>
790
788
  </choice>
791
789
  </define>
792
790
  <define name="bdate">
@@ -827,6 +825,11 @@
827
825
  <optional>
828
826
  <attribute name="scope"/>
829
827
  </optional>
828
+ <optional>
829
+ <attribute name="primary">
830
+ <data type="boolean"/>
831
+ </attribute>
832
+ </optional>
830
833
  <text/>
831
834
  </element>
832
835
  </define>
data/grammars/bipm.rng CHANGED
@@ -16,6 +16,13 @@
16
16
  <param name="pattern">\i\c*|\c+#\c+</param>
17
17
  </data>
18
18
  </attribute>
19
+ <optional>
20
+ <attribute name="to">
21
+ <data type="string">
22
+ <param name="pattern">\i\c*|\c+#\c+</param>
23
+ </data>
24
+ </attribute>
25
+ </optional>
19
26
  <optional>
20
27
  <attribute name="type">
21
28
  <ref name="ReferenceFormat"/>
@@ -93,14 +100,9 @@
93
100
  </optional>
94
101
  <group>
95
102
  <choice>
96
- <group>
97
- <zeroOrMore>
98
- <ref name="BasicBlock"/>
99
- </zeroOrMore>
100
- <zeroOrMore>
101
- <ref name="note"/>
102
- </zeroOrMore>
103
- </group>
103
+ <zeroOrMore>
104
+ <ref name="BasicBlock"/>
105
+ </zeroOrMore>
104
106
  <ref name="amend"/>
105
107
  </choice>
106
108
  <zeroOrMore>
@@ -108,6 +110,7 @@
108
110
  <ref name="clause-subsection"/>
109
111
  <ref name="terms"/>
110
112
  <ref name="definitions"/>
113
+ <ref name="floating-title"/>
111
114
  </choice>
112
115
  </zeroOrMore>
113
116
  </group>
@@ -146,20 +149,16 @@
146
149
  <ref name="section-title"/>
147
150
  </optional>
148
151
  <group>
149
- <group>
150
- <zeroOrMore>
151
- <ref name="BasicBlock"/>
152
- </zeroOrMore>
153
- <zeroOrMore>
154
- <ref name="note"/>
155
- </zeroOrMore>
156
- </group>
152
+ <zeroOrMore>
153
+ <ref name="BasicBlock"/>
154
+ </zeroOrMore>
157
155
  <zeroOrMore>
158
156
  <choice>
159
157
  <ref name="annex-subsection"/>
160
158
  <ref name="terms"/>
161
159
  <ref name="definitions"/>
162
160
  <ref name="references"/>
161
+ <ref name="floating-title"/>
163
162
  </choice>
164
163
  </zeroOrMore>
165
164
  </group>
@@ -179,6 +178,14 @@
179
178
  <data type="boolean"/>
180
179
  </attribute>
181
180
  </optional>
181
+ <optional>
182
+ <attribute name="tag"/>
183
+ </optional>
184
+ <optional>
185
+ <attribute name="multilingual-rendering">
186
+ <ref name="MultilingualRenderingType"/>
187
+ </attribute>
188
+ </optional>
182
189
  <attribute name="type">
183
190
  <choice>
184
191
  <value>roman</value>
@@ -245,6 +252,9 @@
245
252
  <optional>
246
253
  <ref name="doctype"/>
247
254
  </optional>
255
+ <optional>
256
+ <ref name="docsubtype"/>
257
+ </optional>
248
258
  <ref name="editorialgroup"/>
249
259
  <optional>
250
260
  <ref name="comment-period"/>
@@ -304,7 +314,7 @@
304
314
  <value>CCT</value>
305
315
  <value>CCTF</value>
306
316
  <value>CCU</value>
307
- <value>CCL-CCTF</value>
317
+ <value>CCL-CCTF-WGFS</value>
308
318
  <value>JCGM</value>
309
319
  <value>JCRB</value>
310
320
  <value>JCTLM</value>