metanorma 1.1.0 → 1.1.1
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 +0 -8
- data/.github/workflows/ubuntu.yml +12 -16
- data/.github/workflows/windows.yml +0 -8
- data/lib/metanorma/compile.rb +2 -3
- data/lib/metanorma/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: 11c17884b5c38b4bc7b7ada32496534008bc38e6748d5b96cf67c70048054f9d
|
4
|
+
data.tar.gz: 0a9339c045590799855c9e0b50729c486901ac562300fdba69b1f9285fc8b6f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50a11067a41ac75ebabdb6914383ec36820332f0a74ec6fe54b4075da613949aab3a4ad041c07ae210987aa03207dfdb4b253af6e00ff5c30fed9e82682ae621
|
7
|
+
data.tar.gz: 0b2eaf2a627b6fc3b359a51043ebee36784eae974e8b1a6bf75dc2fbdacb5229975131c37bb579dcf8efdb962605a4d73aa6f4e36dec4e2a6595425867e5ebc8
|
data/.github/workflows/macos.yml
CHANGED
@@ -29,18 +29,10 @@ jobs:
|
|
29
29
|
uses: actions/setup-ruby@v1
|
30
30
|
with:
|
31
31
|
ruby-version: ${{ matrix.ruby }}
|
32
|
-
architecture: 'x64'
|
33
32
|
- name: Update gems
|
34
33
|
run: |
|
35
34
|
sudo gem install bundler --force
|
36
35
|
bundle install --jobs 4 --retry 3
|
37
|
-
- name: Use Node
|
38
|
-
uses: actions/setup-node@v1
|
39
|
-
with:
|
40
|
-
node-version: '12'
|
41
|
-
- name: Install Puppeteer
|
42
|
-
run: |
|
43
|
-
npm install -g puppeteer@3.0.1
|
44
36
|
- name: Run specs
|
45
37
|
run: |
|
46
38
|
bundle exec rake
|
@@ -5,6 +5,8 @@ name: ubuntu
|
|
5
5
|
on:
|
6
6
|
push:
|
7
7
|
branches: [ master ]
|
8
|
+
tags:
|
9
|
+
- '*'
|
8
10
|
pull_request:
|
9
11
|
paths-ignore:
|
10
12
|
- .github/workflows/macos.yml
|
@@ -29,32 +31,26 @@ jobs:
|
|
29
31
|
uses: actions/setup-ruby@v1
|
30
32
|
with:
|
31
33
|
ruby-version: ${{ matrix.ruby }}
|
32
|
-
architecture: 'x64'
|
33
34
|
- name: Update gems
|
34
35
|
run: |
|
35
36
|
gem install bundler
|
36
37
|
bundle install --jobs 4 --retry 3
|
37
|
-
- name: Use Node
|
38
|
-
uses: actions/setup-node@v1
|
39
|
-
with:
|
40
|
-
node-version: '12'
|
41
|
-
- name: Install Puppeteer
|
42
|
-
run: |
|
43
|
-
sudo apt-get update
|
44
|
-
sudo apt-get install libgbm1
|
45
|
-
npm install -g puppeteer@3.0.1
|
46
38
|
- name: Run specs
|
47
39
|
run: |
|
48
40
|
bundle exec rake
|
49
|
-
- name: Trigger
|
50
|
-
if:
|
41
|
+
- name: Trigger repositories
|
42
|
+
if: matrix.ruby == '2.6'
|
51
43
|
env:
|
52
|
-
GH_USERNAME:
|
53
|
-
GH_ACCESS_TOKEN: ${{ secrets.
|
44
|
+
GH_USERNAME: metanorma-ci
|
45
|
+
GH_ACCESS_TOKEN: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
|
54
46
|
run: |
|
55
47
|
curl -LO --retry 3 https://raw.githubusercontent.com/metanorma/metanorma-build-scripts/master/trigger-gh-actions.sh
|
56
48
|
[[ -f ".github/workflows/dependent_repos.env" ]] && source .github/workflows/dependent_repos.env
|
57
|
-
|
49
|
+
CLIENT_PAYLOAD=$(cat <<EOF
|
50
|
+
"{ "ref": "${GITHUB_REF}", "repo": "${GITHUB_REPOSITORY}" }"
|
51
|
+
EOF
|
52
|
+
)
|
53
|
+
for repo in $REPOS
|
58
54
|
do
|
59
|
-
sh trigger-gh-actions.sh $ORGANISATION $repo $GH_USERNAME $GH_ACCESS_TOKEN $GITHUB_REPOSITORY
|
55
|
+
sh trigger-gh-actions.sh $ORGANISATION $repo $GH_USERNAME $GH_ACCESS_TOKEN $GITHUB_REPOSITORY "$CLIENT_PAYLOAD"
|
60
56
|
done
|
@@ -29,20 +29,12 @@ jobs:
|
|
29
29
|
uses: actions/setup-ruby@v1
|
30
30
|
with:
|
31
31
|
ruby-version: ${{ matrix.ruby }}
|
32
|
-
architecture: 'x64'
|
33
32
|
- name: Update gems
|
34
33
|
shell: pwsh
|
35
34
|
run: |
|
36
35
|
gem install bundler
|
37
36
|
bundle config --local path vendor/bundle
|
38
37
|
bundle install --jobs 4 --retry 3
|
39
|
-
- name: Use Node
|
40
|
-
uses: actions/setup-node@v1
|
41
|
-
with:
|
42
|
-
node-version: '12'
|
43
|
-
- name: Install Puppeteer
|
44
|
-
run: |
|
45
|
-
npm install -g puppeteer@3.0.1
|
46
38
|
- name: Run specs
|
47
39
|
run: |
|
48
40
|
bundle exec rake
|
data/lib/metanorma/compile.rb
CHANGED
@@ -231,19 +231,18 @@ module Metanorma
|
|
231
231
|
def process_extensions(extensions, file, isodoc, options)
|
232
232
|
xml_name = options[:filename].sub(/\.[^.]+$/, ".xml")
|
233
233
|
presentationxml_name = options[:filename].sub(/\.[^.]+$/, ".presentation.xml")
|
234
|
-
isodoc_options = @processor.extract_options(file)
|
235
|
-
isodoc_options[:datauriimage] = true if options[:datauriimage]
|
236
234
|
extensions.sort do |a, b|
|
237
235
|
sort_extensions_execution(a) <=> sort_extensions_execution(b)
|
238
236
|
end.each do |ext|
|
239
237
|
file_extension = @processor.output_formats[ext]
|
240
238
|
outfilename = options[:filename].sub(/\.[^.]+$/, ".#{file_extension}")
|
239
|
+
isodoc_options = @processor.extract_options(file)
|
240
|
+
isodoc_options[:datauriimage] = true if options[:datauriimage]
|
241
241
|
if ext == :rxl
|
242
242
|
options[:relaton] = outfilename
|
243
243
|
relaton_export(isodoc, options)
|
244
244
|
else
|
245
245
|
begin
|
246
|
-
#require "byebug"; byebug
|
247
246
|
@processor.use_presentation_xml(ext) ?
|
248
247
|
@processor.output(nil, presentationxml_name, outfilename, ext, isodoc_options) :
|
249
248
|
@processor.output(isodoc, xml_name, outfilename, ext, isodoc_options)
|
data/lib/metanorma/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|