metanorma-ogc 1.3.0 → 1.3.5

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: f9fa70d6fdbc72921c0981d6afaadbdfd358a37c74f84f7bae86e75bbca1d089
4
- data.tar.gz: ef441a2182e40e3605395584d4afee319a1a9e725f092f4db9661e1be2641e08
3
+ metadata.gz: cf9c0a5cbffaabeba248b57a50309b3abed1c96eb1f222d8dbde3234ef0c2763
4
+ data.tar.gz: 31cd6c92355d6077705d51bff35c51fc300345b82a58a50fa9426e15301a9e73
5
5
  SHA512:
6
- metadata.gz: a5e6a4a9bd68c5b4d45950c68ca316c9460dff1e8f874ebfba9c43d27eb19920cf16384fb687f55c6f5c78d8329902eba231ebdeda988462d67f6d910e127529
7
- data.tar.gz: de1fc5ecc2a852c251857cb852c0195f0ce396ca0c8fc7c3e0db701678d5d5d7b9a049666e453f5a7e3bf586f4a7e750187cb24d6885a19578fada4bf0effc3c
6
+ metadata.gz: 619abf777ca9e6829561e1d446f58a92448d991506c887a0f0f019950c2b7e897061a625d97259d8c0078f4cd4a336a13d8ba452d271e73a2709a07a9b9bcc01
7
+ data.tar.gz: 2ddd0bf8b9b9b5915e194c80f88e22656039dedd9fb97a5d23aae76a39ac469758be9c2fea8553a091fb63056eaffc9c3c5aad1b949038d432cdd155ed1d6189
@@ -16,19 +16,9 @@ jobs:
16
16
  strategy:
17
17
  fail-fast: false
18
18
  matrix:
19
- ruby: [ '2.7', '2.6', '2.5', '2.4' ]
19
+ ruby: [ '3.0', '2.7', '2.6', '2.5', '2.4' ]
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:
@@ -40,3 +30,14 @@ jobs:
40
30
  bundler-cache: true
41
31
 
42
32
  - run: bundle exec rake
33
+
34
+ tests-passed:
35
+ needs: rake
36
+ runs-on: ubuntu-latest
37
+ steps:
38
+ - uses: peter-evans/repository-dispatch@v1
39
+ with:
40
+ token: ${{ secrets.METANORMA_CI_PAT_TOKEN || secrets.GITHUB_TOKEN }}
41
+ repository: ${{ github.repository }}
42
+ event-type: tests-passed
43
+ client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'
data/.hound.yml CHANGED
@@ -1,3 +1,5 @@
1
+ # Auto-generated by Cimas: Do not edit it manually!
2
+ # See https://github.com/metanorma/cimas
1
3
  ruby:
2
- Enabled: true
4
+ enabled: true
3
5
  config_file: .rubocop.yml
data/.rubocop.yml CHANGED
@@ -1,14 +1,10 @@
1
- # This project follows the Ribose OSS style guide.
2
- # https://github.com/riboseinc/oss-guides
3
- # All project-specific additions and overrides should be specified in this file.
1
+ # Auto-generated by Cimas: Do not edit it manually!
2
+ # See https://github.com/metanorma/cimas
4
3
  inherit_from:
5
4
  - https://raw.githubusercontent.com/riboseinc/oss-guides/master/ci/rubocop.yml
6
5
 
7
6
  # local repo-specific modifications
7
+ # ...
8
8
 
9
9
  AllCops:
10
- DisplayCopNames: false
11
- StyleGuideCopsOnly: false
12
- TargetRubyVersion: 2.4
13
- Rails:
14
- Enabled: true
10
+ TargetRubyVersion: 2.5
data/Gemfile CHANGED
@@ -6,6 +6,6 @@ git_source(:github) { |repo| "https://github.com/#{repo}" }
6
6
 
7
7
  gemspec
8
8
 
9
- if File.exist? 'Gemfile.devel'
10
- eval File.read('Gemfile.devel'), nil, 'Gemfile.devel' # rubocop:disable Security/Eval
9
+ if File.exist? "Gemfile.devel"
10
+ eval File.read("Gemfile.devel"), nil, "Gemfile.devel" # rubocop:disable Security/Eval
11
11
  end
data/Rakefile CHANGED
@@ -1,8 +1,8 @@
1
1
  require "bundler/gem_tasks"
2
2
  require "rspec/core/rake_task"
3
- require 'isodoc/gem_tasks'
3
+ require "isodoc/gem_tasks"
4
4
 
5
5
  IsoDoc::GemTasks.install
6
6
  RSpec::Core::RakeTask.new(:spec)
7
7
 
8
- task :default => :spec
8
+ task default: :spec
@@ -2,6 +2,5 @@ require "asciidoctor/ogc/converter"
2
2
 
3
3
  module Asciidoctor
4
4
  module Ogc
5
-
6
5
  end
7
6
  end
@@ -787,6 +787,7 @@
787
787
  <value>adapted</value>
788
788
  <value>vote-started</value>
789
789
  <value>vote-ended</value>
790
+ <value>announced</value>
790
791
  </choice>
791
792
  </define>
792
793
  <define name="bdate">
@@ -12,8 +12,9 @@ module Asciidoctor
12
12
 
13
13
  def corporate_author(node, xml)
14
14
  return unless node.attr("submitting-organizations")
15
- csv_split(HTMLEntities.new.decode(node.attr("submitting-organizations")),
16
- ";")&.each do |org|
15
+
16
+ csv_split(HTMLEntities.new
17
+ .decode(node.attr("submitting-organizations")), ";")&.each do |org|
17
18
  xml.contributor do |c|
18
19
  c.role **{ type: "author" }
19
20
  c.organization do |a|
@@ -37,6 +38,7 @@ module Asciidoctor
37
38
 
38
39
  def ogc_editor(node, xml)
39
40
  return unless node.attr("editor")
41
+
40
42
  xml.contributor do |c|
41
43
  c.role **{ type: "editor" }
42
44
  c.person do |p|
@@ -69,6 +71,7 @@ module Asciidoctor
69
71
 
70
72
  def metadata_committee(node, xml)
71
73
  return unless node.attr("committee")
74
+
72
75
  xml.editorialgroup do |a|
73
76
  a.committee(node.attr("committee") || "technical")
74
77
  node.attr("subcommittee") and
@@ -84,9 +87,11 @@ module Asciidoctor
84
87
 
85
88
  def externalid(node)
86
89
  return node.attr("external-id") if node.attr("external-id")
90
+
87
91
  d = doctype(node)
88
92
  a = node.attr("abbrev")
89
- return unless d and a
93
+ return unless d && a
94
+
90
95
  url = "http://www.opengis.net/doc/#{IsoDoc::Ogc::DOCTYPE_ABBR[d]}/#{a}"
91
96
  v = (node.attr("edition") || node.attr("version")) and url += "/#{v}"
92
97
  url
@@ -107,7 +112,7 @@ module Asciidoctor
107
112
  if doctype(node) == "engineering-report"
108
113
  "http://www.opengis.net/doc/PER/t14-#{node.attr('referenceurlid')}"
109
114
  else
110
- node.attr('referenceurlid')
115
+ node.attr("referenceurlid")
111
116
  end
112
117
  end
113
118
 
@@ -125,9 +130,9 @@ module Asciidoctor
125
130
 
126
131
  def metadata_date(node, xml)
127
132
  super
128
- ogc_date(node, xml, "submissiondate", "received" )
129
- ogc_date(node, xml, "publicationdate", "published" )
130
- ogc_date(node, xml, "approvaldate", "issued" )
133
+ ogc_date(node, xml, "submissiondate", "received")
134
+ ogc_date(node, xml, "publicationdate", "published")
135
+ ogc_date(node, xml, "approvaldate", "issued")
131
136
  end
132
137
 
133
138
  def ogc_date(node, xml, ogcname, metanormaname)
@@ -139,27 +144,30 @@ module Asciidoctor
139
144
  end
140
145
 
141
146
  def metadata_version(node, xml)
142
- node.set_attr("edition", node.attr("version"), false) if node.attr("version")
147
+ node.attr("version") and
148
+ node.set_attr("edition", node.attr("version"), false)
143
149
  super
144
150
  end
145
151
 
146
152
  def metadata_subdoctype(node, xml)
147
- s = node.attr("docsubtype")
153
+ s = node.attr("docsubtype")
148
154
  s1 = ::IsoDoc::Ogc::DOCSUBTYPE_ABBR.invert[s] and s = s1
149
155
  case doctype(node)
150
156
  when "standard"
151
157
  unless %w{conceptual-model conceptual-model-and-encoding
152
158
  conceptual-model-and-implementation encoding extension
153
159
  implementation profile profile-with-extension}.include? s
154
- @log.add("Document Attributes", nil, "'#{s}' is not a permitted subtype of Standard: "\
155
- "reverting to 'implementation'")
160
+ @log.add("Document Attributes", nil,
161
+ "'#{s}' is not a permitted subtype of Standard: "\
162
+ "reverting to 'implementation'")
156
163
  s = "implementation"
157
164
  end
158
165
  when "best-practice"
159
166
  unless %w{general encoding extension profile
160
167
  profile-with-extension}.include? s
161
- @log.add("Document Attributes", nil, "'#{s}' is not a permitted subtype of Standard: "\
162
- "reverting to 'implementation'")
168
+ @log.add("Document Attributes", nil,
169
+ "'#{s}' is not a permitted subtype of Standard: "\
170
+ "reverting to 'implementation'")
163
171
  s = "general"
164
172
  end
165
173
  end
@@ -45,6 +45,11 @@
45
45
  <optional>
46
46
  <attribute name="alt"/>
47
47
  </optional>
48
+ <optional>
49
+ <attribute name="updatetype">
50
+ <data type="boolean"/>
51
+ </attribute>
52
+ </optional>
48
53
  <text/>
49
54
  </element>
50
55
  </define>
@@ -543,6 +548,9 @@
543
548
  </define>
544
549
  <define name="BibDataExtensionType">
545
550
  <ref name="doctype"/>
551
+ <optional>
552
+ <ref name="docsubtype"/>
553
+ </optional>
546
554
  <optional>
547
555
  <ref name="editorialgroup"/>
548
556
  </optional>
@@ -876,8 +884,28 @@
876
884
  </zeroOrMore>
877
885
  </element>
878
886
  </define>
887
+ <define name="pagebreak">
888
+ <element name="pagebreak">
889
+ <optional>
890
+ <attribute name="orientation">
891
+ <choice>
892
+ <value>landscape</value>
893
+ <value>portrait</value>
894
+ </choice>
895
+ </attribute>
896
+ </optional>
897
+ </element>
898
+ </define>
879
899
  </include>
880
900
  <!-- end overrides -->
901
+ <define name="docsubtype">
902
+ <element name="docsubtype">
903
+ <ref name="DocumentSubtype"/>
904
+ </element>
905
+ </define>
906
+ <define name="DocumentSubtype">
907
+ <text/>
908
+ </define>
881
909
  <define name="colgroup">
882
910
  <element name="colgroup">
883
911
  <oneOrMore>
@@ -943,8 +971,170 @@
943
971
  <ref name="permission"/>
944
972
  <ref name="imagemap"/>
945
973
  <ref name="svgmap"/>
974
+ <ref name="inputform"/>
975
+ </choice>
976
+ </define>
977
+ <define name="inputform">
978
+ <element name="form">
979
+ <attribute name="id">
980
+ <data type="ID"/>
981
+ </attribute>
982
+ <attribute name="name"/>
983
+ <attribute name="action"/>
984
+ <zeroOrMore>
985
+ <choice>
986
+ <ref name="TextElement"/>
987
+ <ref name="FormInput"/>
988
+ </choice>
989
+ </zeroOrMore>
990
+ </element>
991
+ </define>
992
+ <define name="FormInput">
993
+ <choice>
994
+ <ref name="input"/>
995
+ <ref name="formlabel"/>
996
+ <ref name="select"/>
997
+ <ref name="textarea"/>
998
+ </choice>
999
+ </define>
1000
+ <define name="InputType">
1001
+ <choice>
1002
+ <value>button</value>
1003
+ <value>checkbox</value>
1004
+ <value>date</value>
1005
+ <value>file</value>
1006
+ <value>password</value>
1007
+ <value>radio</value>
1008
+ <value>submit</value>
1009
+ <value>text</value>
946
1010
  </choice>
947
1011
  </define>
1012
+ <define name="input">
1013
+ <element name="input">
1014
+ <attribute name="type">
1015
+ <ref name="InputType"/>
1016
+ </attribute>
1017
+ <optional>
1018
+ <attribute name="checked">
1019
+ <data type="boolean"/>
1020
+ </attribute>
1021
+ </optional>
1022
+ <optional>
1023
+ <attribute name="disabled">
1024
+ <data type="boolean"/>
1025
+ </attribute>
1026
+ </optional>
1027
+ <optional>
1028
+ <attribute name="readonly">
1029
+ <data type="boolean"/>
1030
+ </attribute>
1031
+ </optional>
1032
+ <optional>
1033
+ <attribute name="maxlength">
1034
+ <data type="int"/>
1035
+ </attribute>
1036
+ </optional>
1037
+ <optional>
1038
+ <attribute name="minlength">
1039
+ <data type="int"/>
1040
+ </attribute>
1041
+ </optional>
1042
+ <optional>
1043
+ <attribute name="name"/>
1044
+ </optional>
1045
+ <optional>
1046
+ <attribute name="value"/>
1047
+ </optional>
1048
+ <optional>
1049
+ <attribute name="id">
1050
+ <data type="ID"/>
1051
+ </attribute>
1052
+ </optional>
1053
+ </element>
1054
+ </define>
1055
+ <define name="formlabel">
1056
+ <element name="label">
1057
+ <attribute name="for">
1058
+ <data type="IDREF"/>
1059
+ </attribute>
1060
+ <zeroOrMore>
1061
+ <ref name="PureTextElement"/>
1062
+ </zeroOrMore>
1063
+ </element>
1064
+ </define>
1065
+ <define name="select">
1066
+ <element name="select">
1067
+ <optional>
1068
+ <attribute name="name"/>
1069
+ </optional>
1070
+ <optional>
1071
+ <attribute name="value"/>
1072
+ </optional>
1073
+ <optional>
1074
+ <attribute name="id">
1075
+ <data type="ID"/>
1076
+ </attribute>
1077
+ </optional>
1078
+ <optional>
1079
+ <attribute name="disabled">
1080
+ <data type="boolean"/>
1081
+ </attribute>
1082
+ </optional>
1083
+ <optional>
1084
+ <attribute name="multiple">
1085
+ <data type="boolean"/>
1086
+ </attribute>
1087
+ </optional>
1088
+ <optional>
1089
+ <attribute name="size">
1090
+ <data type="int"/>
1091
+ </attribute>
1092
+ </optional>
1093
+ <oneOrMore>
1094
+ <ref name="option"/>
1095
+ </oneOrMore>
1096
+ </element>
1097
+ </define>
1098
+ <define name="option">
1099
+ <element name="option">
1100
+ <optional>
1101
+ <attribute name="disabled">
1102
+ <data type="boolean"/>
1103
+ </attribute>
1104
+ </optional>
1105
+ <optional>
1106
+ <attribute name="value"/>
1107
+ </optional>
1108
+ <zeroOrMore>
1109
+ <ref name="PureTextElement"/>
1110
+ </zeroOrMore>
1111
+ </element>
1112
+ </define>
1113
+ <define name="textarea">
1114
+ <element name="textarea">
1115
+ <optional>
1116
+ <attribute name="name"/>
1117
+ </optional>
1118
+ <optional>
1119
+ <attribute name="value"/>
1120
+ </optional>
1121
+ <optional>
1122
+ <attribute name="id">
1123
+ <data type="ID"/>
1124
+ </attribute>
1125
+ </optional>
1126
+ <optional>
1127
+ <attribute name="rows">
1128
+ <data type="int"/>
1129
+ </attribute>
1130
+ </optional>
1131
+ <optional>
1132
+ <attribute name="cols">
1133
+ <data type="int"/>
1134
+ </attribute>
1135
+ </optional>
1136
+ </element>
1137
+ </define>
948
1138
  <define name="bibliography">
949
1139
  <element name="bibliography">
950
1140
  <oneOrMore>
@@ -1017,9 +1207,7 @@
1017
1207
  </define>
1018
1208
  <define name="IsoWorkgroup">
1019
1209
  <optional>
1020
- <attribute name="number">
1021
- <data type="int"/>
1022
- </attribute>
1210
+ <attribute name="number"/>
1023
1211
  </optional>
1024
1212
  <optional>
1025
1213
  <attribute name="type"/>
@@ -79,20 +79,18 @@
79
79
  </zeroOrMore>
80
80
  </element>
81
81
  </define>
82
- <define name="docsubtype">
83
- <element name="docsubtype">
84
- <choice>
85
- <value>conceptual-model</value>
86
- <value>conceptual-model-and-encoding</value>
87
- <value>conceptual-model-and-implementation</value>
88
- <value>encoding</value>
89
- <value>extension</value>
90
- <value>implementation</value>
91
- <value>profile</value>
92
- <value>profile-with-extension</value>
93
- <value>general</value>
94
- </choice>
95
- </element>
82
+ <define name="DocumentSubtype">
83
+ <choice>
84
+ <value>conceptual-model</value>
85
+ <value>conceptual-model-and-encoding</value>
86
+ <value>conceptual-model-and-implementation</value>
87
+ <value>encoding</value>
88
+ <value>extension</value>
89
+ <value>implementation</value>
90
+ <value>profile</value>
91
+ <value>profile-with-extension</value>
92
+ <value>general</value>
93
+ </choice>
96
94
  </define>
97
95
  <define name="submitters">
98
96
  <element name="submitters">