metanorma-vsd 1.0.6 → 1.0.7
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 +4 -4
- data/.github/workflows/macos.yml +7 -0
- data/.github/workflows/ubuntu.yml +11 -2
- data/.github/workflows/windows.yml +7 -0
- data/lib/asciidoctor/vsd/converter.rb +0 -4
- data/lib/isodoc/vsd.rb +0 -1
- data/lib/metanorma/vsd/processor.rb +1 -4
- data/lib/metanorma/vsd/version.rb +1 -1
- metadata +1 -2
- data/lib/isodoc/vsd/pdf_convert.rb +0 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5e57d1184b15477090a588ce289158ab50dbae90a8c3afa3f2073976d36fff6
|
4
|
+
data.tar.gz: a5426b390e7fc6a4c586113a9b2bdfe7945d101fecf5b07da8ed12d077deb0ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '087d9d81130dcab02d8b4703335f596a7cfb06baa3023c909d260cfe062a907d8b8f7d211c9033617f692c6cf067bbd6ff9d6d73c4b58fc8f776d56d06e55e32'
|
7
|
+
data.tar.gz: ec3f721df20bf2c337b1151318d4575bdfdc4b0e1a3b5496aef0a2fc2b3dc8f5a3dc5c2476153b18d3e44fedfbf98e571fe266bbc4617b36007b2b5881294c31
|
data/.github/workflows/macos.yml
CHANGED
@@ -26,6 +26,13 @@ jobs:
|
|
26
26
|
run: |
|
27
27
|
sudo gem install bundler --force
|
28
28
|
bundle install --jobs 4 --retry 3
|
29
|
+
- name: Use Node
|
30
|
+
uses: actions/setup-node@v1
|
31
|
+
with:
|
32
|
+
node-version: '12'
|
33
|
+
- name: Install Puppeteer
|
34
|
+
run: |
|
35
|
+
npm install -g puppeteer@3.0.1
|
29
36
|
- name: Run specs
|
30
37
|
run: |
|
31
38
|
bundle exec rake
|
@@ -26,11 +26,20 @@ jobs:
|
|
26
26
|
run: |
|
27
27
|
gem install bundler
|
28
28
|
bundle install --jobs 4 --retry 3
|
29
|
+
- name: Use Node
|
30
|
+
uses: actions/setup-node@v1
|
31
|
+
with:
|
32
|
+
node-version: '12'
|
33
|
+
- name: Install Puppeteer
|
34
|
+
run: |
|
35
|
+
sudo apt-get update
|
36
|
+
sudo apt-get install libgbm1
|
37
|
+
npm install -g puppeteer@3.0.1
|
29
38
|
- name: Run specs
|
30
39
|
run: |
|
31
40
|
bundle exec rake
|
32
41
|
- name: Trigger dependent repositories
|
33
|
-
if: github.ref == 'refs/heads/master'
|
42
|
+
if: github.ref == 'refs/heads/master'
|
34
43
|
env:
|
35
44
|
GH_USERNAME: ${{ secrets.PAT_USERNAME }}
|
36
45
|
GH_ACCESS_TOKEN: ${{ secrets.PAT_TOKEN }}
|
@@ -39,5 +48,5 @@ jobs:
|
|
39
48
|
[[ -f ".github/workflows/dependent_repos.env" ]] && source .github/workflows/dependent_repos.env
|
40
49
|
for repo in $DEPENDENT_REPOS
|
41
50
|
do
|
42
|
-
sh trigger-gh-actions.sh $ORGANISATION $repo $GH_USERNAME $GH_ACCESS_TOKEN $GITHUB_REPOSITORY
|
51
|
+
sh trigger-gh-actions.sh $ORGANISATION $repo $GH_USERNAME $GH_ACCESS_TOKEN $GITHUB_REPOSITORY
|
43
52
|
done
|
@@ -28,6 +28,13 @@ jobs:
|
|
28
28
|
gem install bundler
|
29
29
|
bundle config --local path vendor/bundle
|
30
30
|
bundle install --jobs 4 --retry 3
|
31
|
+
- name: Use Node
|
32
|
+
uses: actions/setup-node@v1
|
33
|
+
with:
|
34
|
+
node-version: '12'
|
35
|
+
- name: Install Puppeteer
|
36
|
+
run: |
|
37
|
+
npm install -g puppeteer@3.0.1
|
31
38
|
- name: Run specs
|
32
39
|
run: |
|
33
40
|
bundle exec rake
|
@@ -17,10 +17,6 @@ module Asciidoctor
|
|
17
17
|
IsoDoc::Vsd::HtmlConvert.new(html_extract_attributes(node))
|
18
18
|
end
|
19
19
|
|
20
|
-
def pdf_converter(node)
|
21
|
-
IsoDoc::Vsd::PdfConvert.new(html_extract_attributes(node))
|
22
|
-
end
|
23
|
-
|
24
20
|
def word_converter(node)
|
25
21
|
IsoDoc::Vsd::WordConvert.new(doc_extract_attributes(node))
|
26
22
|
end
|
data/lib/isodoc/vsd.rb
CHANGED
@@ -12,8 +12,7 @@ module Metanorma
|
|
12
12
|
def output_formats
|
13
13
|
super.merge(
|
14
14
|
html: "html",
|
15
|
-
doc: "doc"
|
16
|
-
pdf: "pdf"
|
15
|
+
doc: "doc"
|
17
16
|
)
|
18
17
|
end
|
19
18
|
|
@@ -31,8 +30,6 @@ module Metanorma
|
|
31
30
|
IsoDoc::Vsd::HtmlConvert.new(options).convert(outname, isodoc_node)
|
32
31
|
when :doc
|
33
32
|
IsoDoc::Vsd::WordConvert.new(options).convert(outname, isodoc_node)
|
34
|
-
when :pdf
|
35
|
-
IsoDoc::Generic::PdfConvert.new(options).convert(outname, isodoc_node)
|
36
33
|
else
|
37
34
|
super
|
38
35
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-vsd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
@@ -235,7 +235,6 @@ files:
|
|
235
235
|
- lib/isodoc/vsd/html/wordstyle.scss
|
236
236
|
- lib/isodoc/vsd/html_convert.rb
|
237
237
|
- lib/isodoc/vsd/metadata.rb
|
238
|
-
- lib/isodoc/vsd/pdf_convert.rb
|
239
238
|
- lib/isodoc/vsd/word_convert.rb
|
240
239
|
- lib/metanorma-vsd.rb
|
241
240
|
- lib/metanorma/vsd.rb
|
@@ -1,19 +0,0 @@
|
|
1
|
-
require "isodoc"
|
2
|
-
require "isodoc/vsd/metadata"
|
3
|
-
|
4
|
-
module IsoDoc
|
5
|
-
module Vsd
|
6
|
-
# A {Converter} implementation that generates PDF HTML output, and a
|
7
|
-
# document schema encapsulation of the document for validation
|
8
|
-
class PdfConvert < IsoDoc::Generic::PdfConvert
|
9
|
-
def configuration
|
10
|
-
Metanorma::Vsd.configuration
|
11
|
-
end
|
12
|
-
|
13
|
-
def metadata_init(lang, script, labels)
|
14
|
-
@meta = Metadata.new(lang, script, labels)
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|