metanorma-bipm 2.1.11 → 2.1.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -2100,6 +2100,14 @@
2100
2100
 
2101
2101
  </xsl:attribute-set>
2102
2102
 
2103
+ <xsl:attribute-set name="pre-style">
2104
+ <xsl:attribute name="font-family">Courier New, <xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
2105
+ <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
2106
+
2107
+ <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
2108
+
2109
+ </xsl:attribute-set>
2110
+
2103
2111
  <xsl:attribute-set name="permission-style">
2104
2112
 
2105
2113
  </xsl:attribute-set>
@@ -2210,6 +2218,11 @@
2210
2218
  </xsl:variable>
2211
2219
  <xsl:variable name="table-border" select="normalize-space($table-border_)"/>
2212
2220
 
2221
+ <xsl:variable name="table-cell-border_">
2222
+
2223
+ </xsl:variable>
2224
+ <xsl:variable name="table-cell-border" select="normalize-space($table-cell-border_)"/>
2225
+
2213
2226
  <xsl:attribute-set name="table-container-style">
2214
2227
  <xsl:attribute name="margin-left">0mm</xsl:attribute>
2215
2228
  <xsl:attribute name="margin-right">0mm</xsl:attribute>
@@ -2223,8 +2236,6 @@
2223
2236
  <xsl:attribute-set name="table-style">
2224
2237
  <xsl:attribute name="table-omit-footer-at-break">true</xsl:attribute>
2225
2238
  <xsl:attribute name="table-layout">fixed</xsl:attribute>
2226
- <xsl:attribute name="margin-left">0mm</xsl:attribute>
2227
- <xsl:attribute name="margin-right">0mm</xsl:attribute>
2228
2239
 
2229
2240
  <xsl:attribute name="border">1.5pt solid black</xsl:attribute>
2230
2241
 
@@ -3351,6 +3362,12 @@
3351
3362
  <xsl:variable name="table_attributes">
3352
3363
 
3353
3364
  <xsl:element name="table_attributes" use-attribute-sets="table-style">
3365
+
3366
+ <xsl:if test="$margin-side != 0">
3367
+ <xsl:attribute name="margin-left">0mm</xsl:attribute>
3368
+ <xsl:attribute name="margin-right">0mm</xsl:attribute>
3369
+ </xsl:if>
3370
+
3354
3371
  <xsl:attribute name="width"><xsl:value-of select="normalize-space($table_width)"/></xsl:attribute>
3355
3372
 
3356
3373
  <xsl:if test="*[local-name()='thead']">
@@ -4178,6 +4195,10 @@
4178
4195
  <xsl:template match="*[local-name()='tr']">
4179
4196
  <fo:table-row xsl:use-attribute-sets="table-body-row-style">
4180
4197
 
4198
+ <xsl:if test="*[local-name() = 'th']">
4199
+ <xsl:attribute name="keep-with-next">always</xsl:attribute>
4200
+ </xsl:if>
4201
+
4181
4202
  <xsl:call-template name="setTableRowAttributes"/>
4182
4203
  <xsl:apply-templates/>
4183
4204
  </fo:table-row>
@@ -6169,6 +6190,9 @@
6169
6190
  <xsl:value-of select="substring($str, 2)"/>
6170
6191
  </xsl:template>
6171
6192
 
6193
+ <!-- ======================================= -->
6194
+ <!-- math -->
6195
+ <!-- ======================================= -->
6172
6196
  <xsl:template match="mathml:math">
6173
6197
  <xsl:variable name="isAdded" select="@added"/>
6174
6198
  <xsl:variable name="isDeleted" select="@deleted"/>
@@ -6219,14 +6243,57 @@
6219
6243
  <xsl:value-of select="$comment_text"/>
6220
6244
  </xsl:template>
6221
6245
 
6246
+ <xsl:template match="*[local-name() = 'asciimath']">
6247
+ <xsl:param name="process" select="'false'"/>
6248
+ <xsl:if test="$process = 'true'">
6249
+ <xsl:apply-templates/>
6250
+ </xsl:if>
6251
+ </xsl:template>
6252
+
6253
+ <xsl:template match="*[local-name() = 'latexmath']"/>
6254
+
6255
+ <xsl:template name="getMathml_asciimath_text">
6256
+ <xsl:variable name="asciimath" select="../*[local-name() = 'asciimath']"/>
6257
+ <xsl:variable name="latexmath">
6258
+
6259
+ </xsl:variable>
6260
+ <xsl:variable name="asciimath_text_following">
6261
+ <xsl:choose>
6262
+ <xsl:when test="normalize-space($latexmath) != ''">
6263
+ <xsl:value-of select="$latexmath"/>
6264
+ </xsl:when>
6265
+ <xsl:when test="normalize-space($asciimath) != ''">
6266
+ <xsl:value-of select="$asciimath"/>
6267
+ </xsl:when>
6268
+ <xsl:otherwise>
6269
+ <xsl:value-of select="following-sibling::node()[1][self::comment()]"/>
6270
+ </xsl:otherwise>
6271
+ </xsl:choose>
6272
+ </xsl:variable>
6273
+ <xsl:variable name="asciimath_text_">
6274
+ <xsl:choose>
6275
+ <xsl:when test="normalize-space($asciimath_text_following) != ''">
6276
+ <xsl:value-of select="$asciimath_text_following"/>
6277
+ </xsl:when>
6278
+ <xsl:otherwise>
6279
+ <xsl:value-of select="normalize-space(translate(.,' ⁢',' '))"/>
6280
+ </xsl:otherwise>
6281
+ </xsl:choose>
6282
+ </xsl:variable>
6283
+ <xsl:variable name="asciimath_text_2" select="java:org.metanorma.fop.Util.unescape($asciimath_text_)"/>
6284
+ <xsl:variable name="asciimath_text" select="java:trim(java:java.lang.String.new($asciimath_text_2))"/>
6285
+ <xsl:value-of select="$asciimath_text"/>
6286
+ </xsl:template>
6287
+
6222
6288
  <xsl:template name="mathml_instream_object">
6223
- <xsl:param name="comment_text"/>
6289
+ <xsl:param name="asciimath_text"/>
6224
6290
  <xsl:param name="mathml_content"/>
6225
6291
 
6226
- <xsl:variable name="comment_text_">
6292
+ <xsl:variable name="asciimath_text_">
6227
6293
  <xsl:choose>
6228
- <xsl:when test="normalize-space($comment_text) != ''"><xsl:value-of select="$comment_text"/></xsl:when>
6229
- <xsl:otherwise><xsl:call-template name="getMathml_comment_text"/></xsl:otherwise>
6294
+ <xsl:when test="normalize-space($asciimath_text) != ''"><xsl:value-of select="$asciimath_text"/></xsl:when>
6295
+ <!-- <xsl:otherwise><xsl:call-template name="getMathml_comment_text"/></xsl:otherwise> -->
6296
+ <xsl:otherwise><xsl:call-template name="getMathml_asciimath_text"/></xsl:otherwise>
6230
6297
  </xsl:choose>
6231
6298
  </xsl:variable>
6232
6299
 
@@ -6250,10 +6317,10 @@
6250
6317
  </xsl:attribute>
6251
6318
 
6252
6319
  <!-- <xsl:if test="$add_math_as_text = 'true'"> -->
6253
- <xsl:if test="normalize-space($comment_text_) != ''">
6320
+ <xsl:if test="normalize-space($asciimath_text_) != ''">
6254
6321
  <!-- put Mathin Alternate Text -->
6255
6322
  <xsl:attribute name="fox:alt-text">
6256
- <xsl:value-of select="$comment_text_"/>
6323
+ <xsl:value-of select="$asciimath_text_"/>
6257
6324
  </xsl:attribute>
6258
6325
  </xsl:if>
6259
6326
  <!-- </xsl:if> -->
@@ -6326,6 +6393,29 @@
6326
6393
  <xsl:value-of select="."/><xsl:value-of select="$zero_width_space"/>
6327
6394
  </xsl:template>
6328
6395
 
6396
+ <!-- Examples:
6397
+ <stem type="AsciiMath">x = 1</stem>
6398
+ <stem type="AsciiMath"><asciimath>x = 1</asciimath></stem>
6399
+ <stem type="AsciiMath"><asciimath>x = 1</asciimath><latexmath>x = 1</latexmath></stem>
6400
+ -->
6401
+ <xsl:template match="*[local-name() = 'stem'][@type = 'AsciiMath'][count(*) = 0]/text() | *[local-name() = 'stem'][@type = 'AsciiMath'][*[local-name() = 'asciimath']]" priority="3">
6402
+ <fo:inline xsl:use-attribute-sets="mathml-style">
6403
+
6404
+ <xsl:choose>
6405
+ <xsl:when test="self::text()"><xsl:value-of select="."/></xsl:when>
6406
+ <xsl:otherwise>
6407
+ <xsl:apply-templates>
6408
+ <xsl:with-param name="process">true</xsl:with-param>
6409
+ </xsl:apply-templates>
6410
+ </xsl:otherwise>
6411
+ </xsl:choose>
6412
+
6413
+ </fo:inline>
6414
+ </xsl:template>
6415
+ <!-- ======================================= -->
6416
+ <!-- END: math -->
6417
+ <!-- ======================================= -->
6418
+
6329
6419
  <xsl:template match="*[local-name()='localityStack']"/>
6330
6420
 
6331
6421
  <xsl:template match="*[local-name()='link']" name="link">
@@ -7664,9 +7754,9 @@
7664
7754
  <xsl:apply-templates mode="contents_item"/>
7665
7755
  </xsl:template>
7666
7756
 
7667
- <!-- ====== -->
7668
- <!-- sourcecode -->
7669
- <!-- ====== -->
7757
+ <!-- =============== -->
7758
+ <!-- sourcecode -->
7759
+ <!-- =============== -->
7670
7760
  <xsl:template match="*[local-name()='sourcecode']" name="sourcecode">
7671
7761
 
7672
7762
  <fo:block-container xsl:use-attribute-sets="sourcecode-container-style">
@@ -7964,8 +8054,22 @@
7964
8054
  </fo:block>
7965
8055
  </xsl:if>
7966
8056
  </xsl:template>
7967
- <!-- ====== -->
7968
- <!-- ====== -->
8057
+ <!-- =============== -->
8058
+ <!-- END sourcecode -->
8059
+ <!-- =============== -->
8060
+
8061
+ <!-- =============== -->
8062
+ <!-- pre -->
8063
+ <!-- =============== -->
8064
+ <xsl:template match="*[local-name()='pre']" name="pre">
8065
+ <fo:block xsl:use-attribute-sets="pre-style">
8066
+ <xsl:copy-of select="@id"/>
8067
+ <xsl:apply-templates/>
8068
+ </fo:block>
8069
+ </xsl:template>
8070
+ <!-- =============== -->
8071
+ <!-- pre -->
8072
+ <!-- =============== -->
7969
8073
 
7970
8074
  <!-- ========== -->
7971
8075
  <!-- permission -->
@@ -10520,13 +10624,14 @@
10520
10624
  </xsl:template>
10521
10625
 
10522
10626
  <xsl:template name="setId">
10627
+ <xsl:param name="prefix"/>
10523
10628
  <xsl:attribute name="id">
10524
10629
  <xsl:choose>
10525
10630
  <xsl:when test="@id">
10526
- <xsl:value-of select="@id"/>
10631
+ <xsl:value-of select="concat($prefix, @id)"/>
10527
10632
  </xsl:when>
10528
10633
  <xsl:otherwise>
10529
- <xsl:value-of select="generate-id()"/>
10634
+ <xsl:value-of select="concat($prefix, generate-id())"/>
10530
10635
  </xsl:otherwise>
10531
10636
  </xsl:choose>
10532
10637
  </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>
@@ -50,29 +50,6 @@ module Metanorma
50
50
  ret
51
51
  end
52
52
 
53
- =begin
54
- def reference_names(xmldoc)
55
- xmldoc.xpath("//bibitem[not(ancestor::bibitem)]").each do |ref|
56
- docid = ref.at("./docidentifier[@type = 'metanorma']") ||
57
- ref.at("./docidentifier[not(@type = 'DOI')]") or next
58
- #date = ref.at("./date[@type = 'published']")
59
- #reference = format_ref(reference_names1(docid, date, docid["type"]),
60
- #docid["type"])
61
- reference = format_ref(docid.children.to_xml, docid["type"])
62
- @anchors[ref["id"]] = { xref: reference }
63
- end
64
- end
65
-
66
- def reference_names1(docid, date, type)
67
- ret = docid.children.to_xml
68
- if type == "BIPM" && date &&
69
- /(CIPM|CGPM) (Decision|Resolution)/.match?(docid)
70
- ret += " (#{date_range(date)})"
71
- end
72
- ret
73
- end
74
- =end
75
-
76
53
  def date_range(date)
77
54
  from = date.at(("./from"))
78
55
  to = date.at(("./to"))
@@ -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 BIPM
3
- VERSION = "2.1.11".freeze
3
+ VERSION = "2.1.12".freeze
4
4
  end
5
5
  end
@@ -19,12 +19,13 @@ Gem::Specification.new do |spec|
19
19
  spec.license = "BSD-2-Clause"
20
20
 
21
21
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
22
- f.match(%r{^(test|spec|features)/})
22
+ f.match(%r{^(test|spec|features|bin|.github)/}) \
23
+ || f.match(%r{Rakefile|bin/rspec})
23
24
  end
24
25
  spec.bindir = "exe"
25
26
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
26
27
  spec.require_paths = ["lib"]
27
- spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
28
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
28
29
 
29
30
  spec.add_dependency "metanorma-generic", "~> 2.2.2"
30
31
  spec.add_dependency "metanorma-iso", "~> 2.2.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-bipm
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
@@ -216,9 +216,6 @@ executables: []
216
216
  extensions: []
217
217
  extra_rdoc_files: []
218
218
  files:
219
- - ".github/workflows/automerge.yml"
220
- - ".github/workflows/rake.yml"
221
- - ".github/workflows/release.yml"
222
219
  - ".gitignore"
223
220
  - ".hound.yml"
224
221
  - ".rubocop.yml"
@@ -226,10 +223,6 @@ files:
226
223
  - Gemfile
227
224
  - LICENSE
228
225
  - README.adoc
229
- - Rakefile
230
- - bin/console
231
- - bin/rspec
232
- - bin/setup
233
226
  - lib/isodoc/bipm.rb
234
227
  - lib/isodoc/bipm/base_convert.rb
235
228
  - lib/isodoc/bipm/bipm.brochure.xsl
@@ -297,14 +290,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
297
290
  requirements:
298
291
  - - ">="
299
292
  - !ruby/object:Gem::Version
300
- version: 2.5.0
293
+ version: 2.7.0
301
294
  required_rubygems_version: !ruby/object:Gem::Requirement
302
295
  requirements:
303
296
  - - ">="
304
297
  - !ruby/object:Gem::Version
305
298
  version: '0'
306
299
  requirements: []
307
- rubygems_version: 3.1.6
300
+ rubygems_version: 3.3.7
308
301
  signing_key:
309
302
  specification_version: 4
310
303
  summary: metanorma-bipm lets you write BIPM standards in Metanorma.
@@ -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/bipm"
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