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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: db4174169b36cf6b99889da4991f40596eccfe36939253f0f3db6afe22e4dcaa
4
- data.tar.gz: a88ef033a7587fa9f5e24c53aead196ac938ad61831437ef236d33cf6b3407a7
3
+ metadata.gz: 359772e36d1c8239ead46d6c07f40a39fde980788e557aef07190f8f45eed9b2
4
+ data.tar.gz: 0f9d5976c6f643a5cf656f7df24cc1be995a90ed35803cace5a772ee29594ad2
5
5
  SHA512:
6
- metadata.gz: 704b9430dd9d537dbbcfa22b4154321f90f0d5c458fcca70b1d237ed61ab1a463c39f82c113b4a8cd6eacbae601c78b02a72c86bb2b31d27bfe76ce7394e7ce3
7
- data.tar.gz: d8f83d8cb423724b961ed199f0a6904c6a82396ed649369e0df630559bb12fdfe46d521a098b73e7da4adff05d8e03dba0fb499eeea14ba9a09e6b00d3497226
6
+ metadata.gz: a931e9a3a8df88521466d43b605abec5b87d6576d7615b3503025fcacc1a41b13de9a7b08b7841e45597c1c980ed5916203c6767778063604ec76c2a724d1c95
7
+ data.tar.gz: c4402f74caef4c552cd0c9458baa80049100690ec86d51084b6be985a58af7eda00f7b5d7b5890650b27bcf68db3b9c92650143d12966e6d0a43a58558f0f62d
@@ -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.0.1
16
+ - gem install bundler -v "~> 2"
17
17
  - bundle update
18
- - curl -L https://raw.githubusercontent.com/metanorma/metanorma-build-scripts/master/travis-plantuml-install.sh | bash
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
@@ -22,6 +22,7 @@ install:
22
22
  build_script:
23
23
  - set PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH%
24
24
  - set GIT_TERMINAL_PROMPT=0
25
+ - gem install bundler -v "~> 2"
25
26
  - bundle config --local path vendor/bundle
26
27
  - bundle update
27
28
  - bundle install
@@ -372,12 +372,13 @@ p.Terms {
372
372
  }
373
373
  }
374
374
 
375
- @media screen {
376
375
  div.figure > img {
377
- width: 100%;
378
- height: auto;
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
- width: 100%;
389
- height: auto;
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
 
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module ISO
3
- VERSION = "1.2.1".freeze
3
+ VERSION = "1.2.2".freeze
4
4
  end
5
5
  end
@@ -8,7 +8,7 @@ RSpec.describe Asciidoctor::ISO do
8
8
  deprecated:[term1]
9
9
  domain:[term1]
10
10
  INPUT
11
- #{BLANK_HDR}
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 -&gt; Bob: Authentication Request
93
- Bob --&gt; Alice: Authentication Response
94
-
95
- Alice -&gt; Bob: Another authentication Request
96
- Alice &lt;-- 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.1
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-06-30 00:00:00.000000000 Z
11
+ date: 2019-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor