metanorma-iso 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -3
- data/appveyor.yml +1 -0
- data/lib/isodoc/iso/html/style-human.scss +5 -4
- data/lib/isodoc/iso/html/style-iso.scss +5 -4
- data/lib/metanorma/iso/version.rb +1 -1
- data/spec/asciidoctor-iso/macros_spec.rb +1 -91
- 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: 359772e36d1c8239ead46d6c07f40a39fde980788e557aef07190f8f45eed9b2
|
4
|
+
data.tar.gz: 0f9d5976c6f643a5cf656f7df24cc1be995a90ed35803cace5a772ee29594ad2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a931e9a3a8df88521466d43b605abec5b87d6576d7615b3503025fcacc1a41b13de9a7b08b7841e45597c1c980ed5916203c6767778063604ec76c2a724d1c95
|
7
|
+
data.tar.gz: c4402f74caef4c552cd0c9458baa80049100690ec86d51084b6be985a58af7eda00f7b5d7b5890650b27bcf68db3b9c92650143d12966e6d0a43a58558f0f62d
|
data/.travis.yml
CHANGED
@@ -9,13 +9,13 @@ rvm:
|
|
9
9
|
- 2.5
|
10
10
|
- 2.4
|
11
11
|
- ruby-head
|
12
|
-
before_install:
|
12
|
+
before_install:
|
13
13
|
- nvm install 8
|
14
14
|
- npm install -g puppeteer
|
15
15
|
- npm install
|
16
|
-
- gem install bundler -v 2
|
16
|
+
- gem install bundler -v "~> 2"
|
17
17
|
- bundle update
|
18
|
-
- curl -L https://raw.githubusercontent.com/metanorma/metanorma-build-scripts/master/travis
|
18
|
+
- curl -L https://raw.githubusercontent.com/metanorma/metanorma-build-scripts/master/travis.sh | bash
|
19
19
|
matrix:
|
20
20
|
allow_failures:
|
21
21
|
- rvm: ruby-head
|
data/appveyor.yml
CHANGED
@@ -372,12 +372,13 @@ p.Terms {
|
|
372
372
|
}
|
373
373
|
}
|
374
374
|
|
375
|
-
@media screen {
|
376
375
|
div.figure > img {
|
377
|
-
|
378
|
-
|
376
|
+
margin-left: auto;
|
377
|
+
margin-right: auto;
|
378
|
+
display: block;
|
379
|
+
max-width: 100%;
|
380
|
+
height: auto;
|
379
381
|
}
|
380
|
-
}
|
381
382
|
|
382
383
|
|
383
384
|
#toc ul {
|
@@ -383,12 +383,13 @@ p.Terms {
|
|
383
383
|
}
|
384
384
|
}
|
385
385
|
|
386
|
-
@media screen {
|
387
386
|
div.figure > img {
|
388
|
-
|
389
|
-
|
387
|
+
margin-left: auto;
|
388
|
+
margin-right: auto;
|
389
|
+
display: block;
|
390
|
+
max-width: 100%;
|
391
|
+
height: auto;
|
390
392
|
}
|
391
|
-
}
|
392
393
|
|
393
394
|
|
394
395
|
|
@@ -8,7 +8,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
8
8
|
deprecated:[term1]
|
9
9
|
domain:[term1]
|
10
10
|
INPUT
|
11
|
-
|
11
|
+
#{BLANK_HDR}
|
12
12
|
<sections>
|
13
13
|
<admitted>term1</admitted>
|
14
14
|
<deprecates>term1</deprecates>
|
@@ -18,94 +18,4 @@ RSpec.describe Asciidoctor::ISO do
|
|
18
18
|
OUTPUT
|
19
19
|
end
|
20
20
|
|
21
|
-
it "processes the PlantUML macro" do
|
22
|
-
expect(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true))).to be_equivalent_to <<~"OUTPUT"
|
23
|
-
#{ASCIIDOC_BLANK_HDR}
|
24
|
-
|
25
|
-
[plantuml]
|
26
|
-
....
|
27
|
-
@startuml
|
28
|
-
Alice -> Bob: Authentication Request
|
29
|
-
Bob --> Alice: Authentication Response
|
30
|
-
|
31
|
-
Alice -> Bob: Another authentication Request
|
32
|
-
Alice <-- Bob: another authentication Response
|
33
|
-
@enduml
|
34
|
-
....
|
35
|
-
|
36
|
-
[plantuml]
|
37
|
-
....
|
38
|
-
Alice -> Bob: Authentication Request
|
39
|
-
Bob --> Alice: Authentication Response
|
40
|
-
|
41
|
-
Alice -> Bob: Another authentication Request
|
42
|
-
Alice <-- Bob: another authentication Response
|
43
|
-
....
|
44
|
-
INPUT
|
45
|
-
#{BLANK_HDR}
|
46
|
-
<sections><figure id="_">
|
47
|
-
<image src="plantuml/20.png" id="_" imagetype="PNG" height="auto" width="auto"/>
|
48
|
-
</figure>
|
49
|
-
<figure id="_">
|
50
|
-
<image src="plantuml/29.png" id="_" imagetype="PNG" height="auto" width="auto"/>
|
51
|
-
</figure></sections>
|
52
|
-
|
53
|
-
</iso-standard>
|
54
|
-
OUTPUT
|
55
|
-
end
|
56
|
-
|
57
|
-
it "processes the PlantUML macro with PlantUML disabled" do
|
58
|
-
mock_plantuml_disabled
|
59
|
-
expect { Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true) }.to output(%r{PlantUML not installed}).to_stderr
|
60
|
-
#{ASCIIDOC_BLANK_HDR}
|
61
|
-
|
62
|
-
[plantuml]
|
63
|
-
....
|
64
|
-
@startuml
|
65
|
-
Alice -> Bob: Authentication Request
|
66
|
-
Bob --> Alice: Authentication Response
|
67
|
-
|
68
|
-
Alice -> Bob: Another authentication Request
|
69
|
-
Alice <-- Bob: another authentication Response
|
70
|
-
@enduml
|
71
|
-
....
|
72
|
-
INPUT
|
73
|
-
|
74
|
-
mock_plantuml_disabled
|
75
|
-
expect(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true))).to be_equivalent_to <<~"OUTPUT"
|
76
|
-
#{ASCIIDOC_BLANK_HDR}
|
77
|
-
|
78
|
-
[plantuml]
|
79
|
-
....
|
80
|
-
@startuml
|
81
|
-
Alice -> Bob: Authentication Request
|
82
|
-
Bob --> Alice: Authentication Response
|
83
|
-
|
84
|
-
Alice -> Bob: Another authentication Request
|
85
|
-
Alice <-- Bob: another authentication Response
|
86
|
-
@enduml
|
87
|
-
....
|
88
|
-
INPUT
|
89
|
-
#{BLANK_HDR}
|
90
|
-
<sections>
|
91
|
-
<sourcecode lang="plantuml" id="_">@startuml
|
92
|
-
Alice -> Bob: Authentication Request
|
93
|
-
Bob --> Alice: Authentication Response
|
94
|
-
|
95
|
-
Alice -> Bob: Another authentication Request
|
96
|
-
Alice <-- Bob: another authentication Response
|
97
|
-
@enduml</sourcecode>
|
98
|
-
</sourcecode>
|
99
|
-
</iso-standard>
|
100
|
-
OUTPUT
|
101
|
-
end
|
102
|
-
|
103
|
-
|
104
|
-
private
|
105
|
-
|
106
|
-
def mock_plantuml_disabled
|
107
|
-
expect(Asciidoctor::Standoc::PlantUMLBlockMacroBackend).to receive(:plantuml_installed?) do
|
108
|
-
false
|
109
|
-
end
|
110
|
-
end
|
111
21
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-iso
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|