metanorma-cc 2.1.11 → 2.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 97ce2809458bcd871cc0cb293e22305f528c764946a3843154ae6fc524edd363
4
- data.tar.gz: 154d5f42665f04084d69fd9007a25870dae47dc9bd23e4b744bb1e585226cdc7
3
+ metadata.gz: c0a3a076ac239dae426f5d4533cdec584903265dec65a586859c81ee8c8cd7c2
4
+ data.tar.gz: bd6c76442ca4e6fb057706f471b0b93423ed25ddec0985633da38a3fc40baca9
5
5
  SHA512:
6
- metadata.gz: c9e54b76abdf33229f400e851c9c4de1d1a1c7722d865401e1e8c05e93e225b357b260da88c42207125a02807b6418b4be115257f315e5c5a45a0a6973edc130
7
- data.tar.gz: ab54c1ce35877386b371465f8605b30b880fc324b58b244e19736a2e619ced8cd632a3fc0a888e81e5a79be04901b202388df9f8592a245ffda385dca60cec88
6
+ metadata.gz: 0c952e3c62a9f92e920617705ddfda775ba82cdcdbe67ee4b3febdef5edd73df8bad5be7875aea169c5f24dc2fd0a82f2570afa829a043c63365fad567fa9090
7
+ data.tar.gz: 9af922db601ed277c3b3db860a79cb397d772af0ffab69f30917a86b4fd4207fc0aab8d54a50ef27891cd2186a2ff957dc22225f62af92e9c0fd2c5f560df4b6
@@ -973,6 +973,14 @@
973
973
 
974
974
  </xsl:attribute-set>
975
975
 
976
+ <xsl:attribute-set name="pre-style">
977
+ <xsl:attribute name="font-family">Courier New, <xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
978
+ <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
979
+
980
+ <xsl:attribute name="font-family"><xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
981
+
982
+ </xsl:attribute-set>
983
+
976
984
  <xsl:attribute-set name="permission-style">
977
985
 
978
986
  </xsl:attribute-set>
@@ -1081,6 +1089,11 @@
1081
1089
  </xsl:variable>
1082
1090
  <xsl:variable name="table-border" select="normalize-space($table-border_)"/>
1083
1091
 
1092
+ <xsl:variable name="table-cell-border_">
1093
+
1094
+ </xsl:variable>
1095
+ <xsl:variable name="table-cell-border" select="normalize-space($table-cell-border_)"/>
1096
+
1084
1097
  <xsl:attribute-set name="table-container-style">
1085
1098
  <xsl:attribute name="margin-left">0mm</xsl:attribute>
1086
1099
  <xsl:attribute name="margin-right">0mm</xsl:attribute>
@@ -1092,8 +1105,6 @@
1092
1105
  <xsl:attribute-set name="table-style">
1093
1106
  <xsl:attribute name="table-omit-footer-at-break">true</xsl:attribute>
1094
1107
  <xsl:attribute name="table-layout">fixed</xsl:attribute>
1095
- <xsl:attribute name="margin-left">0mm</xsl:attribute>
1096
- <xsl:attribute name="margin-right">0mm</xsl:attribute>
1097
1108
 
1098
1109
  </xsl:attribute-set><!-- table-style -->
1099
1110
 
@@ -2178,10 +2189,18 @@
2178
2189
  <xsl:variable name="table_attributes">
2179
2190
 
2180
2191
  <xsl:element name="table_attributes" use-attribute-sets="table-style">
2192
+
2193
+ <xsl:if test="$margin-side != 0">
2194
+ <xsl:attribute name="margin-left">0mm</xsl:attribute>
2195
+ <xsl:attribute name="margin-right">0mm</xsl:attribute>
2196
+ </xsl:if>
2197
+
2181
2198
  <xsl:attribute name="width"><xsl:value-of select="normalize-space($table_width)"/></xsl:attribute>
2182
2199
 
2183
- <xsl:attribute name="margin-left"><xsl:value-of select="$margin-side"/>mm</xsl:attribute>
2184
- <xsl:attribute name="margin-right"><xsl:value-of select="$margin-side"/>mm</xsl:attribute>
2200
+ <xsl:if test="$margin-side != 0">
2201
+ <xsl:attribute name="margin-left"><xsl:value-of select="$margin-side"/>mm</xsl:attribute>
2202
+ <xsl:attribute name="margin-right"><xsl:value-of select="$margin-side"/>mm</xsl:attribute>
2203
+ </xsl:if>
2185
2204
 
2186
2205
  </xsl:element>
2187
2206
  </xsl:variable>
@@ -2937,6 +2956,10 @@
2937
2956
  <xsl:template match="*[local-name()='tr']">
2938
2957
  <fo:table-row xsl:use-attribute-sets="table-body-row-style">
2939
2958
 
2959
+ <xsl:if test="*[local-name() = 'th']">
2960
+ <xsl:attribute name="keep-with-next">always</xsl:attribute>
2961
+ </xsl:if>
2962
+
2940
2963
  <xsl:call-template name="setTableRowAttributes"/>
2941
2964
  <xsl:apply-templates/>
2942
2965
  </fo:table-row>
@@ -4902,6 +4925,9 @@
4902
4925
  <xsl:value-of select="substring($str, 2)"/>
4903
4926
  </xsl:template>
4904
4927
 
4928
+ <!-- ======================================= -->
4929
+ <!-- math -->
4930
+ <!-- ======================================= -->
4905
4931
  <xsl:template match="mathml:math">
4906
4932
  <xsl:variable name="isAdded" select="@added"/>
4907
4933
  <xsl:variable name="isDeleted" select="@deleted"/>
@@ -4952,14 +4978,57 @@
4952
4978
  <xsl:value-of select="$comment_text"/>
4953
4979
  </xsl:template>
4954
4980
 
4981
+ <xsl:template match="*[local-name() = 'asciimath']">
4982
+ <xsl:param name="process" select="'false'"/>
4983
+ <xsl:if test="$process = 'true'">
4984
+ <xsl:apply-templates/>
4985
+ </xsl:if>
4986
+ </xsl:template>
4987
+
4988
+ <xsl:template match="*[local-name() = 'latexmath']"/>
4989
+
4990
+ <xsl:template name="getMathml_asciimath_text">
4991
+ <xsl:variable name="asciimath" select="../*[local-name() = 'asciimath']"/>
4992
+ <xsl:variable name="latexmath">
4993
+
4994
+ </xsl:variable>
4995
+ <xsl:variable name="asciimath_text_following">
4996
+ <xsl:choose>
4997
+ <xsl:when test="normalize-space($latexmath) != ''">
4998
+ <xsl:value-of select="$latexmath"/>
4999
+ </xsl:when>
5000
+ <xsl:when test="normalize-space($asciimath) != ''">
5001
+ <xsl:value-of select="$asciimath"/>
5002
+ </xsl:when>
5003
+ <xsl:otherwise>
5004
+ <xsl:value-of select="following-sibling::node()[1][self::comment()]"/>
5005
+ </xsl:otherwise>
5006
+ </xsl:choose>
5007
+ </xsl:variable>
5008
+ <xsl:variable name="asciimath_text_">
5009
+ <xsl:choose>
5010
+ <xsl:when test="normalize-space($asciimath_text_following) != ''">
5011
+ <xsl:value-of select="$asciimath_text_following"/>
5012
+ </xsl:when>
5013
+ <xsl:otherwise>
5014
+ <xsl:value-of select="normalize-space(translate(.,' ⁢',' '))"/>
5015
+ </xsl:otherwise>
5016
+ </xsl:choose>
5017
+ </xsl:variable>
5018
+ <xsl:variable name="asciimath_text_2" select="java:org.metanorma.fop.Util.unescape($asciimath_text_)"/>
5019
+ <xsl:variable name="asciimath_text" select="java:trim(java:java.lang.String.new($asciimath_text_2))"/>
5020
+ <xsl:value-of select="$asciimath_text"/>
5021
+ </xsl:template>
5022
+
4955
5023
  <xsl:template name="mathml_instream_object">
4956
- <xsl:param name="comment_text"/>
5024
+ <xsl:param name="asciimath_text"/>
4957
5025
  <xsl:param name="mathml_content"/>
4958
5026
 
4959
- <xsl:variable name="comment_text_">
5027
+ <xsl:variable name="asciimath_text_">
4960
5028
  <xsl:choose>
4961
- <xsl:when test="normalize-space($comment_text) != ''"><xsl:value-of select="$comment_text"/></xsl:when>
4962
- <xsl:otherwise><xsl:call-template name="getMathml_comment_text"/></xsl:otherwise>
5029
+ <xsl:when test="normalize-space($asciimath_text) != ''"><xsl:value-of select="$asciimath_text"/></xsl:when>
5030
+ <!-- <xsl:otherwise><xsl:call-template name="getMathml_comment_text"/></xsl:otherwise> -->
5031
+ <xsl:otherwise><xsl:call-template name="getMathml_asciimath_text"/></xsl:otherwise>
4963
5032
  </xsl:choose>
4964
5033
  </xsl:variable>
4965
5034
 
@@ -4976,10 +5045,10 @@
4976
5045
  </xsl:attribute>
4977
5046
 
4978
5047
  <!-- <xsl:if test="$add_math_as_text = 'true'"> -->
4979
- <xsl:if test="normalize-space($comment_text_) != ''">
5048
+ <xsl:if test="normalize-space($asciimath_text_) != ''">
4980
5049
  <!-- put Mathin Alternate Text -->
4981
5050
  <xsl:attribute name="fox:alt-text">
4982
- <xsl:value-of select="$comment_text_"/>
5051
+ <xsl:value-of select="$asciimath_text_"/>
4983
5052
  </xsl:attribute>
4984
5053
  </xsl:if>
4985
5054
  <!-- </xsl:if> -->
@@ -5052,6 +5121,29 @@
5052
5121
  <xsl:value-of select="."/><xsl:value-of select="$zero_width_space"/>
5053
5122
  </xsl:template>
5054
5123
 
5124
+ <!-- Examples:
5125
+ <stem type="AsciiMath">x = 1</stem>
5126
+ <stem type="AsciiMath"><asciimath>x = 1</asciimath></stem>
5127
+ <stem type="AsciiMath"><asciimath>x = 1</asciimath><latexmath>x = 1</latexmath></stem>
5128
+ -->
5129
+ <xsl:template match="*[local-name() = 'stem'][@type = 'AsciiMath'][count(*) = 0]/text() | *[local-name() = 'stem'][@type = 'AsciiMath'][*[local-name() = 'asciimath']]" priority="3">
5130
+ <fo:inline xsl:use-attribute-sets="mathml-style">
5131
+
5132
+ <xsl:choose>
5133
+ <xsl:when test="self::text()"><xsl:value-of select="."/></xsl:when>
5134
+ <xsl:otherwise>
5135
+ <xsl:apply-templates>
5136
+ <xsl:with-param name="process">true</xsl:with-param>
5137
+ </xsl:apply-templates>
5138
+ </xsl:otherwise>
5139
+ </xsl:choose>
5140
+
5141
+ </fo:inline>
5142
+ </xsl:template>
5143
+ <!-- ======================================= -->
5144
+ <!-- END: math -->
5145
+ <!-- ======================================= -->
5146
+
5055
5147
  <xsl:template match="*[local-name()='localityStack']"/>
5056
5148
 
5057
5149
  <xsl:template match="*[local-name()='link']" name="link">
@@ -6388,9 +6480,9 @@
6388
6480
  <xsl:apply-templates mode="contents_item"/>
6389
6481
  </xsl:template>
6390
6482
 
6391
- <!-- ====== -->
6392
- <!-- sourcecode -->
6393
- <!-- ====== -->
6483
+ <!-- =============== -->
6484
+ <!-- sourcecode -->
6485
+ <!-- =============== -->
6394
6486
  <xsl:template match="*[local-name()='sourcecode']" name="sourcecode">
6395
6487
 
6396
6488
  <fo:block-container xsl:use-attribute-sets="sourcecode-container-style">
@@ -6690,8 +6782,22 @@
6690
6782
  </fo:block>
6691
6783
  </xsl:if>
6692
6784
  </xsl:template>
6693
- <!-- ====== -->
6694
- <!-- ====== -->
6785
+ <!-- =============== -->
6786
+ <!-- END sourcecode -->
6787
+ <!-- =============== -->
6788
+
6789
+ <!-- =============== -->
6790
+ <!-- pre -->
6791
+ <!-- =============== -->
6792
+ <xsl:template match="*[local-name()='pre']" name="pre">
6793
+ <fo:block xsl:use-attribute-sets="pre-style">
6794
+ <xsl:copy-of select="@id"/>
6795
+ <xsl:apply-templates/>
6796
+ </fo:block>
6797
+ </xsl:template>
6798
+ <!-- =============== -->
6799
+ <!-- pre -->
6800
+ <!-- =============== -->
6695
6801
 
6696
6802
  <!-- ========== -->
6697
6803
  <!-- permission -->
@@ -9256,13 +9362,14 @@
9256
9362
  </xsl:template>
9257
9363
 
9258
9364
  <xsl:template name="setId">
9365
+ <xsl:param name="prefix"/>
9259
9366
  <xsl:attribute name="id">
9260
9367
  <xsl:choose>
9261
9368
  <xsl:when test="@id">
9262
- <xsl:value-of select="@id"/>
9369
+ <xsl:value-of select="concat($prefix, @id)"/>
9263
9370
  </xsl:when>
9264
9371
  <xsl:otherwise>
9265
- <xsl:value-of select="generate-id()"/>
9372
+ <xsl:value-of select="concat($prefix, generate-id())"/>
9266
9373
  </xsl:otherwise>
9267
9374
  </xsl:choose>
9268
9375
  </xsl:attribute>
@@ -188,6 +188,11 @@
188
188
  <value>adapter</value>
189
189
  <value>translator</value>
190
190
  <value>distributor</value>
191
+ <value>realizer</value>
192
+ <value>owner</value>
193
+ <value>authorizer</value>
194
+ <value>enabler</value>
195
+ <value>subject</value>
191
196
  </choice>
192
197
  </attribute>
193
198
  <zeroOrMore>
@@ -177,11 +177,7 @@
177
177
  </optional>
178
178
  <optional>
179
179
  <attribute name="style">
180
- <choice>
181
- <value>basic</value>
182
- <value>full</value>
183
- <value>short</value>
184
- </choice>
180
+ <ref name="XrefStyleType"/>
185
181
  </attribute>
186
182
  </optional>
187
183
  <ref name="XrefBody"/>
@@ -1031,6 +1027,7 @@
1031
1027
  <ref name="stem"/>
1032
1028
  <ref name="index"/>
1033
1029
  <ref name="eref"/>
1030
+ <ref name="erefstack"/>
1034
1031
  <ref name="xref"/>
1035
1032
  <ref name="hyperlink"/>
1036
1033
  </choice>
@@ -1045,6 +1042,7 @@
1045
1042
  <ref name="stem"/>
1046
1043
  <ref name="index"/>
1047
1044
  <ref name="eref"/>
1045
+ <ref name="erefstack"/>
1048
1046
  <ref name="xref"/>
1049
1047
  <ref name="hyperlink"/>
1050
1048
  </choice>
@@ -1058,6 +1056,7 @@
1058
1056
  <ref name="PureTextElement"/>
1059
1057
  <ref name="index"/>
1060
1058
  <ref name="eref"/>
1059
+ <ref name="erefstack"/>
1061
1060
  <ref name="xref"/>
1062
1061
  <ref name="hyperlink"/>
1063
1062
  </choice>
@@ -1195,6 +1194,7 @@
1195
1194
  <ref name="add"/>
1196
1195
  <ref name="del"/>
1197
1196
  <ref name="span"/>
1197
+ <ref name="erefstack"/>
1198
1198
  </choice>
1199
1199
  </define>
1200
1200
  <define name="add">
@@ -1202,6 +1202,7 @@
1202
1202
  <choice>
1203
1203
  <ref name="PureTextElement"/>
1204
1204
  <ref name="eref"/>
1205
+ <ref name="erefstack"/>
1205
1206
  <ref name="stem"/>
1206
1207
  <ref name="keyword"/>
1207
1208
  <ref name="xref"/>
@@ -1214,6 +1215,7 @@
1214
1215
  <choice>
1215
1216
  <ref name="PureTextElement"/>
1216
1217
  <ref name="eref"/>
1218
+ <ref name="erefstack"/>
1217
1219
  <ref name="stem"/>
1218
1220
  <ref name="keyword"/>
1219
1221
  <ref name="xref"/>
@@ -1278,6 +1280,7 @@
1278
1280
  </optional>
1279
1281
  <choice>
1280
1282
  <ref name="eref"/>
1283
+ <ref name="erefstack"/>
1281
1284
  <ref name="xref"/>
1282
1285
  <ref name="termref"/>
1283
1286
  </choice>
@@ -1970,6 +1973,7 @@
1970
1973
  </element>
1971
1974
  <choice>
1972
1975
  <ref name="eref"/>
1976
+ <ref name="erefstack"/>
1973
1977
  <ref name="xref"/>
1974
1978
  <ref name="termref"/>
1975
1979
  </choice>
@@ -2525,6 +2529,7 @@
2525
2529
  <ref name="xref"/>
2526
2530
  <ref name="hyperlink"/>
2527
2531
  <ref name="eref"/>
2532
+ <ref name="erefstack"/>
2528
2533
  </choice>
2529
2534
  <oneOrMore>
2530
2535
  <element name="coords">
@@ -2572,6 +2577,7 @@
2572
2577
  <ref name="xref"/>
2573
2578
  <ref name="hyperlink"/>
2574
2579
  <ref name="eref"/>
2580
+ <ref name="erefstack"/>
2575
2581
  </choice>
2576
2582
  </element>
2577
2583
  </zeroOrMore>
@@ -2620,6 +2626,15 @@
2620
2626
  <ref name="PureTextElement"/>
2621
2627
  </oneOrMore>
2622
2628
  </define>
2629
+ <define name="XrefConnectiveType">
2630
+ <choice>
2631
+ <value>and</value>
2632
+ <value>or</value>
2633
+ <value>from</value>
2634
+ <value>to</value>
2635
+ <value/>
2636
+ </choice>
2637
+ </define>
2623
2638
  <define name="XrefTarget">
2624
2639
  <element name="location">
2625
2640
  <attribute name="target">
@@ -2628,16 +2643,35 @@
2628
2643
  </data>
2629
2644
  </attribute>
2630
2645
  <attribute name="connective">
2631
- <choice>
2632
- <value>and</value>
2633
- <value>or</value>
2634
- <value>from</value>
2635
- <value>to</value>
2636
- <value/>
2637
- </choice>
2646
+ <ref name="XrefConnectiveType"/>
2638
2647
  </attribute>
2639
2648
  </element>
2640
2649
  </define>
2650
+ <define name="XrefStyleType">
2651
+ <choice>
2652
+ <value>basic</value>
2653
+ <value>full</value>
2654
+ <value>short</value>
2655
+ <value>id</value>
2656
+ </choice>
2657
+ </define>
2658
+ <define name="erefTypeWithConnective">
2659
+ <optional>
2660
+ <attribute name="connective">
2661
+ <ref name="XrefConnectiveType"/>
2662
+ </attribute>
2663
+ </optional>
2664
+ <ref name="erefType"/>
2665
+ </define>
2666
+ <define name="erefstack">
2667
+ <element name="erefstack">
2668
+ <oneOrMore>
2669
+ <element name="eref">
2670
+ <ref name="erefTypeWithConnective"/>
2671
+ </element>
2672
+ </oneOrMore>
2673
+ </element>
2674
+ </define>
2641
2675
  <start>
2642
2676
  <ref name="standard-document"/>
2643
2677
  </start>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module CC
3
- VERSION = "2.1.11".freeze
3
+ VERSION = "2.1.12".freeze
4
4
  end
5
5
  end
data/metanorma-cc.gemspec CHANGED
@@ -21,12 +21,13 @@ Gem::Specification.new do |spec|
21
21
  spec.license = "BSD-2-Clause"
22
22
 
23
23
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
24
- f.match(%r{^(test|spec|features)/})
24
+ f.match(%r{^(test|spec|features|bin|.github)/}) \
25
+ || f.match(%r{Rakefile|bin/rspec})
25
26
  end
26
27
  spec.bindir = "exe"
27
28
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
29
  spec.require_paths = ["lib"]
29
- spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
30
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
30
31
 
31
32
  spec.add_dependency "metanorma-generic", "~> 2.2.2"
32
33
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-cc
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.11
4
+ version: 2.1.12
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-10-24 00:00:00.000000000 Z
11
+ date: 2022-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-generic
@@ -176,9 +176,6 @@ executables: []
176
176
  extensions: []
177
177
  extra_rdoc_files: []
178
178
  files:
179
- - ".github/workflows/automerge.yml"
180
- - ".github/workflows/rake.yml"
181
- - ".github/workflows/release.yml"
182
179
  - ".gitignore"
183
180
  - ".hound.yml"
184
181
  - ".rubocop.yml"
@@ -186,10 +183,6 @@ files:
186
183
  - Gemfile
187
184
  - LICENSE
188
185
  - README.adoc
189
- - Rakefile
190
- - bin/console
191
- - bin/rspec
192
- - bin/setup
193
186
  - lib/isodoc/cc/base_convert.rb
194
187
  - lib/isodoc/cc/cc.standard.xsl
195
188
  - lib/isodoc/cc/html/_coverpage.css
@@ -245,14 +238,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
245
238
  requirements:
246
239
  - - ">="
247
240
  - !ruby/object:Gem::Version
248
- version: 2.5.0
241
+ version: 2.7.0
249
242
  required_rubygems_version: !ruby/object:Gem::Requirement
250
243
  requirements:
251
244
  - - ">="
252
245
  - !ruby/object:Gem::Version
253
246
  version: '0'
254
247
  requirements: []
255
- rubygems_version: 3.1.6
248
+ rubygems_version: 3.3.7
256
249
  signing_key:
257
250
  specification_version: 4
258
251
  summary: metanorma-cc lets you write CalConnect standards in AsciiDoc.
@@ -1,31 +0,0 @@
1
- # Auto-generated by Cimas: Do not edit it manually!
2
- # See https://github.com/metanorma/cimas
3
- # source: https://github.com/marketplace/actions/merge-pull-requests#usage
4
- name: automerge
5
- on:
6
- pull_request:
7
- types:
8
- - labeled
9
- - unlabeled
10
- - synchronize
11
- - opened
12
- - edited
13
- - ready_for_review
14
- - reopened
15
- - unlocked
16
- pull_request_review:
17
- types:
18
- - submitted
19
- check_suite:
20
- types:
21
- - completed
22
- status: {}
23
- jobs:
24
- automerge:
25
- runs-on: ubuntu-latest
26
- steps:
27
- - id: automerge
28
- name: automerge
29
- uses: "pascalgn/automerge-action@v0.15.3"
30
- env:
31
- GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
@@ -1,15 +0,0 @@
1
- # Auto-generated by Cimas: Do not edit it manually!
2
- # See https://github.com/metanorma/cimas
3
- name: rake
4
-
5
- on:
6
- push:
7
- branches: [ master, main ]
8
- tags: [ v* ]
9
- pull_request:
10
-
11
- jobs:
12
- notify:
13
- uses: metanorma/ci/.github/workflows/mn-processor-rake.yml@main
14
- secrets:
15
- pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
@@ -1,24 +0,0 @@
1
- # Auto-generated by Cimas: Do not edit it manually!
2
- # See https://github.com/metanorma/cimas
3
- name: release
4
-
5
- on:
6
- workflow_dispatch:
7
- inputs:
8
- next_version:
9
- description: |
10
- Next release version. Possible values: x.y.z, major, minor, patch or pre|rc|etc
11
- required: true
12
- default: 'skip'
13
- push:
14
- tags: [ v* ]
15
-
16
- jobs:
17
- release:
18
- uses: metanorma/ci/.github/workflows/rubygems-release.yml@main
19
- with:
20
- next_version: ${{ github.event.inputs.next_version }}
21
- secrets:
22
- rubygems-api-key: ${{ secrets.METANORMA_CI_RUBYGEMS_API_KEY }}
23
- pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
24
-
data/Rakefile DELETED
@@ -1,8 +0,0 @@
1
- require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
3
- require 'isodoc/gem_tasks'
4
-
5
- IsoDoc::GemTasks.install
6
- RSpec::Core::RakeTask.new(:spec)
7
-
8
- task :default => :spec
data/bin/console DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "metanorma/cc"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start(__FILE__)
data/bin/rspec DELETED
@@ -1,18 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'rspec' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require "pathname"
10
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path(
11
- "../../Gemfile", Pathname.new(__FILE__).realpath
12
- )
13
-
14
- require "rubygems"
15
- require "bundler/setup"
16
-
17
- load Gem.bin_path("rspec-core", "rspec")
18
-
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here