metanorma-ribose 1.6.10 → 1.6.11

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: 25b2357a2bb9c00be5cf07d097618593f934e024e00624bba8dfeb620745d082
4
- data.tar.gz: a15ef2944d344cd69ffd7c3d866649798925de0aa1c3b57041b1eed684e4307f
3
+ metadata.gz: '09692ec54e7186049ced9245aa545eec4014cef2ed4870c3b2316ddb5baa9c26'
4
+ data.tar.gz: 9bae1a6920887f47f736c29af7eb769a941a1874a70624e125951a23824481b3
5
5
  SHA512:
6
- metadata.gz: fe83e2e765f0ec8eaaad9496fa3da2451fb6a58773e025fb63a1fc7ac94c3d6de412bc94bde715d2a2da5705cd03b702f2bccf0329faf90d6fe923ab9f6b497f
7
- data.tar.gz: 0e4ee8adea90d49fb8d43d719567d98cdedf21048e0d8357a37fa2cfdabe5bc15c38344a98fe9ea5d0cdf9b30d167547700ebdb9536fe952d3b061f8831a134b
6
+ metadata.gz: 751876bd18696125f64ddff27d8965c752653d69cde5816278cc9f1939521eedf7b5d456a99b7beb25bc6b5846bcdbe72a99298a70196aec0a2a50fb816e17cf
7
+ data.tar.gz: 1693d7cb5bd93863b3b685cbc25ee3209a0e60d545d78b3041eb3ad5f438e2fad7e314f879f89d12fb8637a2c326b60ebef7facf076eacf30140f9e0dc9e2989
@@ -36,6 +36,9 @@ jobs:
36
36
  with:
37
37
  ruby-version: ${{ matrix.ruby }}
38
38
 
39
+ - if: matrix.os == 'macos-latest'
40
+ run: brew install autoconf automake libtool
41
+
39
42
  - uses: actions/cache@v2
40
43
  with:
41
44
  path: vendor/bundle
@@ -63,4 +66,21 @@ jobs:
63
66
  - if: matrix.os == 'windows-latest'
64
67
  run: cinst -y plantuml
65
68
 
69
+ - if: matrix.os == 'macos-latest'
70
+ run: brew install autoconf automake libtool
71
+
66
72
  - run: bundle exec rake
73
+
74
+ tests-passed:
75
+ needs: rake
76
+ runs-on: ubuntu-latest
77
+ continue-on-error: true
78
+ steps:
79
+ - name: Trigger tests passed event
80
+ uses: Sibz/github-status-action@v1
81
+ with:
82
+ authToken: ${{ secrets.METANORMA_CI_PAT_TOKEN || secrets.GITHUB_TOKEN }}
83
+ context: 'tests-passed-successfully'
84
+ description: 'Tests passed successfully'
85
+ state: 'success'
86
+ sha: ${{ github.event.pull_request.head.sha || github.sha }}
@@ -253,6 +253,9 @@
253
253
  <data type="boolean"/>
254
254
  </attribute>
255
255
  </optional>
256
+ <optional>
257
+ <attribute name="width"/>
258
+ </optional>
256
259
  <optional>
257
260
  <ref name="colgroup"/>
258
261
  </optional>
@@ -836,6 +839,9 @@
836
839
  <data type="boolean"/>
837
840
  </attribute>
838
841
  </optional>
842
+ <optional>
843
+ <attribute name="number"/>
844
+ </optional>
839
845
  <optional>
840
846
  <attribute name="obligation">
841
847
  <choice>
@@ -891,9 +897,11 @@
891
897
  <element name="code">
892
898
  <text/>
893
899
  </element>
894
- <element name="text">
895
- <text/>
896
- </element>
900
+ <optional>
901
+ <element name="text">
902
+ <text/>
903
+ </element>
904
+ </optional>
897
905
  </element>
898
906
  </define>
899
907
  <define name="standard-document">
@@ -1063,6 +1071,9 @@
1063
1071
  </choice>
1064
1072
  </attribute>
1065
1073
  </optional>
1074
+ <optional>
1075
+ <attribute name="number"/>
1076
+ </optional>
1066
1077
  <optional>
1067
1078
  <attribute name="type"/>
1068
1079
  </optional>
@@ -1116,6 +1127,9 @@
1116
1127
  <optional>
1117
1128
  <attribute name="type"/>
1118
1129
  </optional>
1130
+ <optional>
1131
+ <attribute name="number"/>
1132
+ </optional>
1119
1133
  <optional>
1120
1134
  <ref name="section-title"/>
1121
1135
  </optional>
@@ -1218,6 +1232,9 @@
1218
1232
  <optional>
1219
1233
  <attribute name="type"/>
1220
1234
  </optional>
1235
+ <optional>
1236
+ <attribute name="number"/>
1237
+ </optional>
1221
1238
  <optional>
1222
1239
  <attribute name="obligation">
1223
1240
  <choice>
@@ -1546,6 +1563,7 @@
1546
1563
  <value>add</value>
1547
1564
  <value>modify</value>
1548
1565
  <value>delete</value>
1566
+ <value>replace</value>
1549
1567
  </choice>
1550
1568
  </attribute>
1551
1569
  <optional>
@@ -1576,6 +1594,11 @@
1576
1594
  </optional>
1577
1595
  <optional>
1578
1596
  <element name="newcontent">
1597
+ <optional>
1598
+ <attribute name="id">
1599
+ <data type="ID"/>
1600
+ </attribute>
1601
+ </optional>
1579
1602
  <zeroOrMore>
1580
1603
  <ref name="BasicBlock"/>
1581
1604
  </zeroOrMore>
@@ -1528,7 +1528,12 @@
1528
1528
 
1529
1529
  <xsl:variable name="table_attributes">
1530
1530
  <attribute name="table-layout">fixed</attribute>
1531
- <attribute name="width">100%</attribute>
1531
+ <attribute name="width">
1532
+ <xsl:choose>
1533
+ <xsl:when test="@width"><xsl:value-of select="@width"/></xsl:when>
1534
+ <xsl:otherwise>100%</xsl:otherwise>
1535
+ </xsl:choose>
1536
+ </attribute>
1532
1537
  <attribute name="margin-left"><xsl:value-of select="$margin-left"/>mm</attribute>
1533
1538
  <attribute name="margin-right"><xsl:value-of select="$margin-left"/>mm</attribute>
1534
1539
 
@@ -2678,6 +2683,10 @@
2678
2683
  </xsl:if>
2679
2684
  <xsl:apply-templates/>
2680
2685
  </fo:inline>
2686
+ </xsl:template><xsl:template match="*[local-name()='underline']">
2687
+ <fo:inline text-decoration="underline">
2688
+ <xsl:apply-templates/>
2689
+ </fo:inline>
2681
2690
  </xsl:template><xsl:template match="*[local-name()='del']">
2682
2691
  <fo:inline font-size="10pt" color="red" text-decoration="line-through">
2683
2692
  <xsl:apply-templates/>
@@ -4246,6 +4255,8 @@
4246
4255
  <xsl:value-of select="translate(.,'. ','')"/>
4247
4256
  </xsl:template><xsl:template match="*[local-name() = 'name']/*[local-name() = 'forename']/text()" mode="strip">
4248
4257
  <xsl:value-of select="substring(.,1,1)"/>
4258
+ </xsl:template><xsl:template match="*[local-name() = 'title']" mode="title">
4259
+ <fo:inline><xsl:apply-templates/></fo:inline>
4249
4260
  </xsl:template><xsl:template name="convertDate">
4250
4261
  <xsl:param name="date"/>
4251
4262
  <xsl:param name="format" select="'short'"/>
@@ -4523,6 +4534,11 @@
4523
4534
  <xsl:call-template name="getLang"/>
4524
4535
  </xsl:variable>
4525
4536
 
4526
- <xsl:value-of select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
4537
+ <xsl:choose>
4538
+ <xsl:when test="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]">
4539
+ <xsl:value-of select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
4540
+ </xsl:when>
4541
+ <xsl:otherwise><xsl:value-of select="$key"/></xsl:otherwise>
4542
+ </xsl:choose>
4527
4543
 
4528
4544
  </xsl:template></xsl:stylesheet>
@@ -2,6 +2,9 @@ require "metanorma-generic"
2
2
 
3
3
  module IsoDoc
4
4
  module Ribose
5
+ class Counter < IsoDoc::XrefGen::Counter
6
+ end
7
+
5
8
  class Xref < IsoDoc::Generic::Xref
6
9
  def annex_name_lbl(clause, num)
7
10
  obl = l10n("(#{@labels['inform_annex']})")
@@ -21,9 +24,11 @@ module IsoDoc
21
24
  @anchors[clause["id"]] =
22
25
  { label: num, level: level, xref: num }
23
26
  # subclauses are not prefixed with "Clause"
27
+ i = Counter.new
24
28
  clause.xpath(ns("./clause | ./terms | ./term | ./definitions | ./references")).
25
- each_with_index do |c, i|
26
- section_names1(c, "#{num}.#{i + 1}", level + 1)
29
+ each do |c|
30
+ i.increment(c)
31
+ section_names1(c, "#{num}.#{i.print}", level + 1)
27
32
  end
28
33
  end
29
34
  end
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ribose
3
- VERSION = "1.6.10"
3
+ VERSION = "1.6.11"
4
4
  end
5
5
  end
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
28
28
  spec.require_paths = ["lib"]
29
29
  spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
30
30
 
31
- spec.add_dependency 'metanorma-generic', '~> 1.8.1'
31
+ spec.add_dependency 'metanorma-generic', '~> 1.8.2'
32
32
 
33
33
  spec.add_development_dependency "byebug", "~> 9.1"
34
34
  spec.add_development_dependency "sassc", "2.4.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-ribose
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.10
4
+ version: 1.6.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-12-28 00:00:00.000000000 Z
11
+ date: 2021-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-generic
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.8.1
19
+ version: 1.8.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.8.1
26
+ version: 1.8.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement