relaton-itu 1.3.0 → 1.4.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: b7ea346c3346b49aa11d8537809895a14ade4b648f9953371988c705e64c6081
4
- data.tar.gz: 59d9fe418c8e54dd1bc678c42efe35650d1c99ffee0c05211ca4b29931f01c25
3
+ metadata.gz: 1a34f507cf46ec008ce3ee1ca248ff905b361ece911e4f502cbe88f362700e63
4
+ data.tar.gz: 06bf3c76f6b724266f779f310ae77dab42597292f69c22cc3cf80bb65067dc14
5
5
  SHA512:
6
- metadata.gz: 258db28aa9f3b4caf297881d47a3fca89e64b82d603712cfeefb450123219337ac59530b251356b87a7c5561fc0df0769ea59bb7e7b2ab894e845df01073bf3a
7
- data.tar.gz: 6d5155965ed3aa9fc63e1feabde2557b171c5826c5078dcd5eee83602f2f5591a82542bf38f88f1418373f8f58691eeb6e9ab1881b1c7c18bebe9a2035ba6c4c
6
+ metadata.gz: 25d49fbb2ac6d4140315ffc2dad5933a561b4ace4f8bb6405577bceac4044e8ba93e23e4fd11be3477dfcb28ed428ff06a59c534410d7133313332f46a98fc27
7
+ data.tar.gz: e174650f1766cfcd9814a71205adc08daa851db02adbb3abd00bba41048a4edeff19b0fb4fb4ebcab7f96032666c7d6e9eb7039f06a6565fe77945184f32e182
@@ -33,22 +33,13 @@ Or install it yourself as:
33
33
 
34
34
  [source,ruby]
35
35
  ----
36
- require 'relaton_bib'
36
+ require 'relaton_itu'
37
37
 
38
38
  hit_collection = RelatonItu::ItuBibliography.search("ITU-T L.163")
39
- => [<RelatonItu::Hit:0x007fe50780a270 @text="ITU-T L.163" @fetched="false" @fullIdentifier="" @title="ITU-T L.163 (11/2018)">,
40
- <RelatonItu::Hit:0x007fe50780a220 @text="ITU-T L.163" @fetched="false" @fullIdentifier="" @title="ITU-T J.163 (12/2007)">,
41
- <RelatonItu::Hit:0x007fe50780a1d0 @text="ITU-T L.163" @fetched="false" @fullIdentifier="" @title="ITU-T F.163 (08/1992)">,
42
- <RelatonItu::Hit:0x007fe50780a180 @text="ITU-T L.163" @fetched="false" @fullIdentifier="" @title="ITU-T J.163 (11/2005)">,
43
- <RelatonItu::Hit:0x007fe50780a130 @text="ITU-T L.163" @fetched="false" @fullIdentifier="" @title="ITU-T J.163 (03/2004)">,
44
- <RelatonItu::Hit:0x007fe50780a0e0 @text="ITU-T L.163" @fetched="false" @fullIdentifier="" @title="ITU-T Q.163 (11/1988)">,
45
- <RelatonItu::Hit:0x007fe50780a090 @text="ITU-T L.163" @fetched="false" @fullIdentifier="" @title="ITU-T J.163 (03/2001)">,
46
- <RelatonItu::Hit:0x007fe50780a040 @text="ITU-T L.163" @fetched="false" @fullIdentifier="" @title="ITU-T F.163 (07/1996)">,
47
- <RelatonItu::Hit:0x007fe507809ff0 @text="ITU-T L.163" @fetched="false" @fullIdentifier="" @title="ITU-T X.163 (04/1995)">,
48
- <RelatonItu::Hit:0x007fe507809fa0 @text="ITU-T L.163" @fetched="false" @fullIdentifier="" @title="ITU-T O.163 (11/1988)">]
39
+ => <RelatonItu::HitCollection:0x007fbf5fb4ab60 @ref=ITU-T L.163 @fetched=false>
49
40
 
50
41
  item = hit_collection[1].fetch
51
- => #<RelatonItu::ItuBibliographicItem:0x007fe5024f3028
42
+ => #<RelatonItu::ItuBibliographicItem:0x007fbf1fc89548
52
43
  ...
53
44
  ----
54
45
 
@@ -56,73 +47,21 @@ hit_collection = RelatonItu::ItuBibliography.search("ITU-T L.163")
56
47
  [source,ruby]
57
48
  ----
58
49
  item.to_xml
59
- => "<bibitem id="ITU-TJ.163(12/2007)">
50
+ => "<bibitem id="ITU-TL.1470" type="standard">
60
51
  <fetched>2019-06-07</fetched>
61
52
  <title type="title-main" format="text/plain" language="en" script="Latn">ITU-T J.163 (12/2007): Dynamic quality of service for the provision of real-time services over cable television networks using cable modems</title>
62
53
  <title type="main" format="text/plain" language="en" script="Latn">ITU-T J.163 (12/2007): Dynamic quality of service for the provision of real-time services over cable television networks using cable modems</title>
63
54
  <uri type="src">https://www.itu.int/net4/ITU-T/search/api/redirection?dest=http%3A%2F%2Fhandle.itu.int%2F11.1002%2F1000%2F9306-en&amp;position=9&amp;page=1</uri>
64
55
  <uri type="obp">https://www.itu.int/rec/T-REC-J.163-200712-I</uri>
65
56
  <docidentifier type="ITU">ITU-T J.163 (12/2007)</docidentifier>
66
- <date type="published">
67
- <on>2007</on>
68
- </date>
69
- <contributor>
70
- <role type="publisher"/>
71
- <organization>
72
- <name>International Telecommunication Union</name>
73
- <abbreviation>ITU</abbreviation>
74
- <uri>www.itu.int</uri>
75
- </organization>
76
- </contributor>
77
- <edition>4</edition>
78
- <language>en</language>
79
- <script>Latn</script>
80
- <abstract format="text/plain" language="en" script="Latn">ITU-T Recommendation J.163 addresses requirements for a client device to obtain access to network resources. In particular, it specifies a comprehensive mechanism for a client device to request a specific quality of service from the DOCSIS network. Extensive examples illustrate the use of this Recommendation. The scope of this Recommendation is to define the QoS architecture for the "Access" portion of the IPCablecom network, provided to requesting applications on a per-flow basis. The access portion of the network is defined to be between the multimedia terminal adapter (MTA) and the cable modem termination system (CMTS), including the DOCSIS network. The method of QoS allocation over the backbone is unspecified in this Recommendation. Interface to the managed IP backbone and issues related to IP multicast are not within the scope of this Recommendation. This Recommendation also recognizes that per-flow reservations may be required within the customer premises, and the protocol developed addresses this potential need.</abstract>
81
- <status>
82
- <stage>Published</stage>
83
- </status>
84
- <copyright>
85
- <from>2007</from>
86
- <owner>
87
- <organization>
88
- <name>International Telecommunication Union</name>
89
- <abbreviation>ITU</abbreviation>
90
- <uri>www.itu.int</uri>
91
- </organization>
92
- </owner>
93
- </copyright>
94
- <relation type="published">
95
- <bibitem id="JSuppl.1(11/1998)">
96
- <formattedref format="text/plain" language="en" script="Latn">J Suppl. 1 (11/1998)</formattedref>
97
- </bibitem>
98
- </relation>
99
- <relation type="published">
100
- <bibitem id="JSuppl.2(11/1998)">
101
- <formattedref format="text/plain" language="en" script="Latn">J Suppl. 2 (11/1998)</formattedref>
102
- </bibitem>
103
- </relation>
104
- <relation type="published">
105
- <bibitem id="JSuppl.3(11/1998)">
106
- <formattedref format="text/plain" language="en" script="Latn">J Suppl. 3 (11/1998)</formattedref>
107
- </bibitem>
108
- </relation>
109
- <relation type="published">
110
- <bibitem id="JSuppl.5(09/1999)">
111
- <formattedref format="text/plain" language="en" script="Latn">J Suppl. 5 (09/1999)</formattedref>
112
- </bibitem>
113
- </relation>
114
- <relation type="published">
115
- <bibitem id="JSuppl.6(09/2016)">
116
- <formattedref format="text/plain" language="en" script="Latn">J Suppl. 6 (09/2016)</formattedref>
117
- </bibitem>
118
- </relation>
57
+ ...
119
58
  </bibitem>"
120
59
  ----
121
60
  With `bibdata: true` option XML output wrapped with `bibdata` element and `ext` element added.
122
61
  [source,ruby]
123
62
  ----
124
63
  item.to_xml bibdata: true
125
- => "<bibdata>
64
+ => "<bibdata type="standard">
126
65
  <fetched>2019-06-07</fetched>
127
66
  ...
128
67
  <ext>
@@ -142,8 +81,9 @@ item.to_xml bibdata: true
142
81
  [source,ruby]
143
82
  ----
144
83
  RelatonItu::ItuBibliography.get("ITU-T L.163", "2018", {})
145
- fetching ITU-T L.163...
146
- => #<RelatonItu::ItuBibliographicItem:0x007fe502509dc8
84
+ [relaton-itu] ("ITU-T L.163") fetching...
85
+ [relaton-itu] ("ITU-T L.163") found ITU-T L.163
86
+ => #<RelatonItu::ItuBibliographicItem:0x007fbf5f94b9b8
147
87
  ...
148
88
  ----
149
89
 
@@ -42,8 +42,11 @@
42
42
  </define>
43
43
  <define name="xref">
44
44
  <element name="xref">
45
+ <!-- attribute target { xsd:IDREF }, -->
45
46
  <attribute name="target">
46
- <data type="IDREF"/>
47
+ <data type="string">
48
+ <param name="pattern">\i\c*|\c+#\c+</param>
49
+ </data>
47
50
  </attribute>
48
51
  <optional>
49
52
  <attribute name="type">
@@ -61,6 +64,11 @@
61
64
  </choice>
62
65
  </attribute>
63
66
  </optional>
67
+ <optional>
68
+ <attribute name="droploc">
69
+ <data type="boolean"/>
70
+ </attribute>
71
+ </optional>
64
72
  <text/>
65
73
  </element>
66
74
  </define>
@@ -578,6 +586,8 @@
578
586
  <ref name="ol"/>
579
587
  <ref name="dl"/>
580
588
  <ref name="formula"/>
589
+ <ref name="quote"/>
590
+ <ref name="sourcecode"/>
581
591
  </choice>
582
592
  </oneOrMore>
583
593
  </element>
@@ -661,6 +671,16 @@
661
671
  </choice>
662
672
  </attribute>
663
673
  </optional>
674
+ <optional>
675
+ <attribute name="valign">
676
+ <choice>
677
+ <value>top</value>
678
+ <value>middle</value>
679
+ <value>bottom</value>
680
+ <value>baseline</value>
681
+ </choice>
682
+ </attribute>
683
+ </optional>
664
684
  <choice>
665
685
  <zeroOrMore>
666
686
  <choice>
@@ -697,6 +717,16 @@
697
717
  </choice>
698
718
  </attribute>
699
719
  </optional>
720
+ <optional>
721
+ <attribute name="valign">
722
+ <choice>
723
+ <value>top</value>
724
+ <value>middle</value>
725
+ <value>bottom</value>
726
+ <value>baseline</value>
727
+ </choice>
728
+ </attribute>
729
+ </optional>
700
730
  <choice>
701
731
  <zeroOrMore>
702
732
  <choice>
@@ -855,7 +885,7 @@
855
885
  <oneOrMore>
856
886
  <choice>
857
887
  <ref name="content"/>
858
- <ref name="preface_abstract"/>
888
+ <ref name="abstract"/>
859
889
  <ref name="foreword"/>
860
890
  <ref name="introduction"/>
861
891
  <ref name="acknowledgements"/>
@@ -922,6 +952,9 @@
922
952
  <optional>
923
953
  <attribute name="script"/>
924
954
  </optional>
955
+ <optional>
956
+ <attribute name="type"/>
957
+ </optional>
925
958
  <optional>
926
959
  <attribute name="obligation">
927
960
  <choice>
@@ -961,9 +994,6 @@
961
994
  </define>
962
995
  <define name="content-subsection">
963
996
  <element name="clause">
964
- <optional>
965
- <attribute name="type"/>
966
- </optional>
967
997
  <ref name="Content-Section"/>
968
998
  </element>
969
999
  </define>
@@ -992,6 +1022,9 @@
992
1022
  </choice>
993
1023
  </attribute>
994
1024
  </optional>
1025
+ <optional>
1026
+ <attribute name="type"/>
1027
+ </optional>
995
1028
  <optional>
996
1029
  <ref name="section-title"/>
997
1030
  </optional>
@@ -1011,9 +1044,6 @@
1011
1044
  </define>
1012
1045
  <define name="clause">
1013
1046
  <element name="clause">
1014
- <optional>
1015
- <attribute name="type"/>
1016
- </optional>
1017
1047
  <ref name="Clause-Section"/>
1018
1048
  </element>
1019
1049
  </define>
@@ -1042,18 +1072,24 @@
1042
1072
  </choice>
1043
1073
  </attribute>
1044
1074
  </optional>
1075
+ <optional>
1076
+ <attribute name="type"/>
1077
+ </optional>
1045
1078
  <optional>
1046
1079
  <ref name="section-title"/>
1047
1080
  </optional>
1048
1081
  <group>
1049
- <group>
1050
- <zeroOrMore>
1051
- <ref name="BasicBlock"/>
1052
- </zeroOrMore>
1053
- <zeroOrMore>
1054
- <ref name="note"/>
1055
- </zeroOrMore>
1056
- </group>
1082
+ <choice>
1083
+ <group>
1084
+ <zeroOrMore>
1085
+ <ref name="BasicBlock"/>
1086
+ </zeroOrMore>
1087
+ <zeroOrMore>
1088
+ <ref name="note"/>
1089
+ </zeroOrMore>
1090
+ </group>
1091
+ <ref name="amend"/>
1092
+ </choice>
1057
1093
  <zeroOrMore>
1058
1094
  <choice>
1059
1095
  <ref name="clause-subsection"/>
@@ -1180,6 +1216,9 @@
1180
1216
  <optional>
1181
1217
  <attribute name="script"/>
1182
1218
  </optional>
1219
+ <optional>
1220
+ <attribute name="type"/>
1221
+ </optional>
1183
1222
  <optional>
1184
1223
  <attribute name="obligation">
1185
1224
  <choice>
@@ -1447,11 +1486,6 @@
1447
1486
  </optional>
1448
1487
  </element>
1449
1488
  </define>
1450
- <define name="preface_abstract">
1451
- <element name="abstract">
1452
- <ref name="Basic-Section"/>
1453
- </element>
1454
- </define>
1455
1489
  <define name="term-clause">
1456
1490
  <element name="clause">
1457
1491
  <optional>
@@ -1501,4 +1535,79 @@
1501
1535
  <ref name="CitationType"/>
1502
1536
  </element>
1503
1537
  </define>
1538
+ <define name="amend">
1539
+ <element name="amend">
1540
+ <optional>
1541
+ <attribute name="id">
1542
+ <data type="ID"/>
1543
+ </attribute>
1544
+ </optional>
1545
+ <attribute name="change">
1546
+ <choice>
1547
+ <value>add</value>
1548
+ <value>modify</value>
1549
+ <value>delete</value>
1550
+ </choice>
1551
+ </attribute>
1552
+ <optional>
1553
+ <attribute name="path"/>
1554
+ </optional>
1555
+ <optional>
1556
+ <attribute name="path_end"/>
1557
+ </optional>
1558
+ <optional>
1559
+ <attribute name="title"/>
1560
+ </optional>
1561
+ <optional>
1562
+ <element name="location">
1563
+ <zeroOrMore>
1564
+ <ref name="locality"/>
1565
+ </zeroOrMore>
1566
+ </element>
1567
+ </optional>
1568
+ <zeroOrMore>
1569
+ <ref name="autonumber"/>
1570
+ </zeroOrMore>
1571
+ <optional>
1572
+ <element name="description">
1573
+ <zeroOrMore>
1574
+ <ref name="BasicBlock"/>
1575
+ </zeroOrMore>
1576
+ </element>
1577
+ </optional>
1578
+ <optional>
1579
+ <element name="newcontent">
1580
+ <zeroOrMore>
1581
+ <ref name="BasicBlock"/>
1582
+ </zeroOrMore>
1583
+ </element>
1584
+ </optional>
1585
+ <optional>
1586
+ <element name="description">
1587
+ <zeroOrMore>
1588
+ <ref name="BasicBlock"/>
1589
+ </zeroOrMore>
1590
+ </element>
1591
+ </optional>
1592
+ </element>
1593
+ </define>
1594
+ <define name="autonumber">
1595
+ <element name="autonumber">
1596
+ <attribute name="type">
1597
+ <choice>
1598
+ <value>requirement</value>
1599
+ <value>recommendation</value>
1600
+ <value>permission</value>
1601
+ <value>table</value>
1602
+ <value>figure</value>
1603
+ <value>admonition</value>
1604
+ <value>formula</value>
1605
+ <value>sourcecode</value>
1606
+ <value>example</value>
1607
+ <value>note</value>
1608
+ </choice>
1609
+ </attribute>
1610
+ <text/>
1611
+ </element>
1612
+ </define>
1504
1613
  </grammar>
@@ -25,6 +25,11 @@ module RelatonItu
25
25
  @workgroup = workgroup.is_a?(Hash) ? ItuGroup.new(workgroup) : workgroup
26
26
  end
27
27
 
28
+ # @return [true]
29
+ def presence?
30
+ true
31
+ end
32
+
28
33
  # @param builder [Nokogiri::XML::Builder]
29
34
  def to_xml(builder) # rubocop:disable Metrics/AbcSize
30
35
  builder.editorialgroup do
@@ -1,3 +1,3 @@
1
1
  module RelatonItu
2
- VERSION = "1.3.0".freeze
2
+ VERSION = "1.4.0".freeze
3
3
  end
@@ -37,5 +37,5 @@ Gem::Specification.new do |spec|
37
37
  spec.add_development_dependency "vcr", "~> 5.0.0"
38
38
  spec.add_development_dependency "webmock"
39
39
 
40
- spec.add_dependency "relaton-bib", "~> 1.3.0"
40
+ spec.add_dependency "relaton-bib", "~> 1.4.0"
41
41
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-itu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-08-20 00:00:00.000000000 Z
11
+ date: 2020-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: debase
@@ -156,14 +156,14 @@ dependencies:
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: 1.3.0
159
+ version: 1.4.0
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: 1.3.0
166
+ version: 1.4.0
167
167
  description: 'RelatonItu: retrieve ITU Standards for bibliographic use using the BibliographicItem
168
168
  model'
169
169
  email:
@@ -207,7 +207,7 @@ homepage: https://github.com/metanorma/relaton-itu
207
207
  licenses:
208
208
  - MIT
209
209
  metadata: {}
210
- post_install_message:
210
+ post_install_message:
211
211
  rdoc_options: []
212
212
  require_paths:
213
213
  - lib
@@ -223,7 +223,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
223
223
  version: '0'
224
224
  requirements: []
225
225
  rubygems_version: 3.0.6
226
- signing_key:
226
+ signing_key:
227
227
  specification_version: 4
228
228
  summary: 'RelatonItu: retrieve ITU Standards for bibliographic use using the BibliographicItem
229
229
  model'