metanorma-m3d 1.3.15 → 1.3.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/macos.yml +2 -3
- data/.github/workflows/ubuntu.yml +15 -4
- data/.github/workflows/windows.yml +3 -4
- data/README.adoc +2 -4
- data/lib/asciidoctor/m3d/biblio.rng +2 -12
- data/lib/asciidoctor/m3d/converter.rb +1 -1
- data/lib/asciidoctor/m3d/isodoc.rng +1 -3
- data/lib/isodoc/m3d/metadata.rb +1 -27
- data/lib/metanorma/m3d/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9b56ed21933db63363d1c0fb979b5caf9ee665e706cc633b70fc080c002400c
|
4
|
+
data.tar.gz: 82db79b9d71bebfc7fdfd6ad87fb5bf13cc0773227420c2987ce625f17bb17fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e150a3bc9f661d73dd6edc1c98c3ac0930e3e51325b0a0df933f3257395c350cea00e4ff29aae4379e50f5a75cf9a125a21e0db0cc61b29aff9a539aec78616
|
7
|
+
data.tar.gz: 15828c59d8b6348aa03544817a50bfdd8da7243e416172f33d39a34692150e80162edde84c3c9eab8006a23926b1045ccab1cad9366ed47ca76d9df04cef1e85
|
data/.github/workflows/macos.yml
CHANGED
@@ -1,12 +1,11 @@
|
|
1
|
-
# Auto-generated
|
2
|
-
#
|
1
|
+
# Auto-generated by Cimas: Do not edit it manually!
|
2
|
+
# See https://github.com/metanorma/cimas
|
3
3
|
name: macos
|
4
4
|
|
5
5
|
on:
|
6
6
|
push:
|
7
7
|
branches: [ master ]
|
8
8
|
pull_request:
|
9
|
-
branches: [ '**' ]
|
10
9
|
|
11
10
|
jobs:
|
12
11
|
test-macos:
|
@@ -1,12 +1,11 @@
|
|
1
|
-
# Auto-generated
|
2
|
-
#
|
1
|
+
# Auto-generated by Cimas: Do not edit it manually!
|
2
|
+
# See https://github.com/metanorma/cimas
|
3
3
|
name: ubuntu
|
4
4
|
|
5
5
|
on:
|
6
6
|
push:
|
7
7
|
branches: [ master ]
|
8
8
|
pull_request:
|
9
|
-
branches: [ '**' ]
|
10
9
|
|
11
10
|
jobs:
|
12
11
|
test-linux:
|
@@ -25,7 +24,7 @@ jobs:
|
|
25
24
|
architecture: 'x64'
|
26
25
|
- name: Update gems
|
27
26
|
run: |
|
28
|
-
gem install bundler
|
27
|
+
gem install bundler
|
29
28
|
bundle install --jobs 4 --retry 3
|
30
29
|
- name: Use Node
|
31
30
|
uses: actions/setup-node@v1
|
@@ -37,3 +36,15 @@ jobs:
|
|
37
36
|
- name: Run specs
|
38
37
|
run: |
|
39
38
|
bundle exec rake
|
39
|
+
- name: Trigger dependent repositories
|
40
|
+
if: github.ref == 'refs/heads/master'
|
41
|
+
env:
|
42
|
+
GH_USERNAME: ${{ secrets.PAT_USERNAME }}
|
43
|
+
GH_ACCESS_TOKEN: ${{ secrets.PAT_TOKEN }}
|
44
|
+
run: |
|
45
|
+
curl -LO --retry 3 https://raw.githubusercontent.com/metanorma/metanorma-build-scripts/master/trigger-gh-actions.sh
|
46
|
+
[[ -f ".github/workflows/dependent_repos.env" ]] && source .github/workflows/dependent_repos.env
|
47
|
+
for repo in $DEPENDENT_REPOS
|
48
|
+
do
|
49
|
+
sh trigger-gh-actions.sh $ORGANISATION $repo $GH_USERNAME $GH_ACCESS_TOKEN $GITHUB_REPOSITORY
|
50
|
+
done
|
@@ -1,12 +1,11 @@
|
|
1
|
-
# Auto-generated
|
2
|
-
#
|
1
|
+
# Auto-generated by Cimas: Do not edit it manually!
|
2
|
+
# See https://github.com/metanorma/cimas
|
3
3
|
name: windows
|
4
4
|
|
5
5
|
on:
|
6
6
|
push:
|
7
7
|
branches: [ master ]
|
8
8
|
pull_request:
|
9
|
-
branches: [ '**' ]
|
10
9
|
|
11
10
|
jobs:
|
12
11
|
test-windows:
|
@@ -26,7 +25,7 @@ jobs:
|
|
26
25
|
- name: Update gems
|
27
26
|
shell: pwsh
|
28
27
|
run: |
|
29
|
-
gem install bundler
|
28
|
+
gem install bundler
|
30
29
|
bundle config --local path vendor/bundle
|
31
30
|
bundle update
|
32
31
|
bundle install --jobs 4 --retry 3
|
data/README.adoc
CHANGED
@@ -88,8 +88,6 @@ this general model can be found on its page. Details of the M3D modifications
|
|
88
88
|
to this general model can be found on the https://github.com/metanorma/metanorma-model-m3d[M3D model]
|
89
89
|
repository.
|
90
90
|
|
91
|
+
////
|
91
92
|
== Examples
|
92
|
-
|
93
|
-
* link:spec/examples/rfc6350.adoc[] is an AsciiM3D version of https://tools.ietf.org/html/rfc6350[RFC 6350].
|
94
|
-
* link:spec/examples/rfc6350.html[] is an HTML file generated from the AsciiM3D.
|
95
|
-
* link:spec/examples/rfc6350.doc[] is a Word document generated from the AsciiM3D.
|
93
|
+
////
|
@@ -703,21 +703,11 @@
|
|
703
703
|
</define>
|
704
704
|
<define name="TypedTitleString">
|
705
705
|
<optional>
|
706
|
-
<attribute name="type"
|
707
|
-
<ref name="TitleType"/>
|
708
|
-
</attribute>
|
706
|
+
<attribute name="type"/>
|
709
707
|
</optional>
|
710
708
|
<ref name="FormattedString"/>
|
711
709
|
</define>
|
712
|
-
|
713
|
-
<choice>
|
714
|
-
<value>alternative</value>
|
715
|
-
<value>original</value>
|
716
|
-
<value>unofficial</value>
|
717
|
-
<value>subtitle</value>
|
718
|
-
<value>main</value>
|
719
|
-
</choice>
|
720
|
-
</define>
|
710
|
+
<!-- TitleType = ( "alternative" | "original" | "unofficial" | "subtitle" | "main" ) -->
|
721
711
|
<define name="TypedUri">
|
722
712
|
<optional>
|
723
713
|
<attribute name="type"/>
|
@@ -108,7 +108,7 @@ module Asciidoctor
|
|
108
108
|
pdf_converter(node).convert filename unless node.attr("nodoc")
|
109
109
|
word_converter(node).convert filename unless node.attr("nodoc")
|
110
110
|
end
|
111
|
-
@log.write(@filename + ".err") unless @novalid
|
111
|
+
@log.write(@localdir + @filename + ".err") unless @novalid
|
112
112
|
@files_to_delete.each { |f| FileUtils.rm f }
|
113
113
|
ret
|
114
114
|
end
|
data/lib/isodoc/m3d/metadata.rb
CHANGED
@@ -27,6 +27,7 @@ module IsoDoc
|
|
27
27
|
set(:tc, nil)
|
28
28
|
tc = isoxml.at(ns("//bibdata/ext/editorialgroup/committee"))
|
29
29
|
set(:tc, tc.text) if tc
|
30
|
+
super
|
30
31
|
end
|
31
32
|
|
32
33
|
def docid(isoxml, _out)
|
@@ -47,33 +48,6 @@ module IsoDoc
|
|
47
48
|
def unpublished(status)
|
48
49
|
!%w(published withdrawn).include? status.downcase
|
49
50
|
end
|
50
|
-
|
51
|
-
def version(isoxml, _out)
|
52
|
-
super
|
53
|
-
revdate = get[:revdate]
|
54
|
-
set(:revdate_monthyear, monthyr(revdate))
|
55
|
-
end
|
56
|
-
|
57
|
-
MONTHS = {
|
58
|
-
"01": "January",
|
59
|
-
"02": "February",
|
60
|
-
"03": "March",
|
61
|
-
"04": "April",
|
62
|
-
"05": "May",
|
63
|
-
"06": "June",
|
64
|
-
"07": "July",
|
65
|
-
"08": "August",
|
66
|
-
"09": "September",
|
67
|
-
"10": "October",
|
68
|
-
"11": "November",
|
69
|
-
"12": "December",
|
70
|
-
}.freeze
|
71
|
-
|
72
|
-
def monthyr(isodate)
|
73
|
-
m = /(?<yr>\d\d\d\d)-(?<mo>\d\d)/.match isodate
|
74
|
-
return isodate unless m && m[:yr] && m[:mo]
|
75
|
-
return "#{MONTHS[m[:mo].to_sym]} #{m[:yr]}"
|
76
|
-
end
|
77
51
|
end
|
78
52
|
end
|
79
53
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-m3d
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.16
|
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-03
|
11
|
+
date: 2020-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciimath
|