metanorma-ogc 1.0.9 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/macos.yml +0 -1
  3. data/.github/workflows/ubuntu.yml +10 -7
  4. data/.github/workflows/windows.yml +0 -1
  5. data/Rakefile +2 -0
  6. data/lib/asciidoctor/ogc/converter.rb +19 -20
  7. data/lib/asciidoctor/ogc/isodoc.rng +12 -6
  8. data/lib/asciidoctor/ogc/validate.rb +13 -25
  9. data/lib/isodoc/ogc.rb +2 -0
  10. data/lib/isodoc/ogc/base_convert.rb +3 -71
  11. data/lib/isodoc/ogc/html/_coverpage.css +195 -0
  12. data/lib/isodoc/ogc/html/htmlstyle.css +1084 -0
  13. data/lib/isodoc/ogc/html/ogc.css +835 -0
  14. data/lib/isodoc/ogc/html/wordstyle.css +1253 -0
  15. data/lib/isodoc/ogc/html/wordstyle.scss +0 -1
  16. data/lib/isodoc/ogc/html_convert.rb +2 -5
  17. data/lib/isodoc/ogc/i18n-en.yaml +1 -0
  18. data/lib/isodoc/ogc/i18n.rb +10 -0
  19. data/lib/isodoc/ogc/init.rb +32 -0
  20. data/lib/isodoc/ogc/metadata.rb +1 -1
  21. data/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +1862 -1447
  22. data/lib/isodoc/ogc/ogc.best-practice.xsl +1862 -1447
  23. data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +1862 -1447
  24. data/lib/isodoc/ogc/ogc.community-practice.xsl +1862 -1447
  25. data/lib/isodoc/ogc/ogc.community-standard.xsl +1862 -1447
  26. data/lib/isodoc/ogc/ogc.discussion-paper.xsl +1862 -1447
  27. data/lib/isodoc/ogc/ogc.engineering-report.xsl +1862 -1447
  28. data/lib/isodoc/ogc/ogc.other.xsl +1862 -1447
  29. data/lib/isodoc/ogc/ogc.policy.xsl +1862 -1447
  30. data/lib/isodoc/ogc/ogc.reference-model.xsl +1862 -1447
  31. data/lib/isodoc/ogc/ogc.release-notes.xsl +1862 -1447
  32. data/lib/isodoc/ogc/ogc.standard.xsl +1862 -1447
  33. data/lib/isodoc/ogc/ogc.test-suite.xsl +1862 -1447
  34. data/lib/isodoc/ogc/ogc.user-guide.xsl +1862 -1447
  35. data/lib/isodoc/ogc/ogc.white-paper.xsl +1966 -1799
  36. data/lib/isodoc/ogc/pdf_convert.rb +0 -13
  37. data/lib/isodoc/ogc/presentation_xml_convert.rb +137 -0
  38. data/lib/isodoc/ogc/reqt.rb +4 -27
  39. data/lib/isodoc/ogc/sections.rb +18 -63
  40. data/lib/isodoc/ogc/word_convert.rb +6 -9
  41. data/lib/isodoc/ogc/{reqt_xref.rb → xref.rb} +65 -5
  42. data/lib/metanorma/ogc/processor.rb +6 -8
  43. data/lib/metanorma/ogc/version.rb +1 -1
  44. data/metanorma-ogc.gemspec +3 -4
  45. metadata +32 -40
@@ -30,18 +30,16 @@ module Metanorma
30
30
  "Metanorma::Ogc #{Metanorma::Ogc::VERSION}"
31
31
  end
32
32
 
33
- def input_to_isodoc(file, filename)
34
- Metanorma::Input::Asciidoc.new.process(file, filename, @asciidoctor_backend)
35
- end
36
-
37
- def output(isodoc_node, outname, format, options={})
33
+ def output(isodoc_node, inname, outname, format, options={})
38
34
  case format
39
35
  when :html
40
- IsoDoc::Ogc::HtmlConvert.new(options).convert(outname, isodoc_node)
36
+ IsoDoc::Ogc::HtmlConvert.new(options).convert(inname, isodoc_node, nil, outname)
41
37
  when :doc
42
- IsoDoc::Ogc::WordConvert.new(options).convert(outname, isodoc_node)
38
+ IsoDoc::Ogc::WordConvert.new(options).convert(inname, isodoc_node, nil, outname)
43
39
  when :pdf
44
- IsoDoc::Ogc::PdfConvert.new(options).convert(outname, isodoc_node)
40
+ IsoDoc::Ogc::PdfConvert.new(options).convert(inname, isodoc_node, nil, outname)
41
+ when :presentation
42
+ IsoDoc::Ogc::PresentationXMLConvert.new(options).convert(inname, isodoc_node, nil, outname)
45
43
  else
46
44
  super
47
45
  end
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ogc
3
- VERSION = "1.0.9"
3
+ VERSION = "1.2.0"
4
4
  end
5
5
  end
@@ -24,13 +24,12 @@ Gem::Specification.new do |spec|
24
24
  spec.require_paths = ["lib"]
25
25
  spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
26
26
 
27
- spec.add_dependency "htmlentities", "~> 4.3.4"
28
- spec.add_dependency "ruby-jing"
29
- spec.add_dependency "metanorma-standoc", "~> 1.4.0"
30
- spec.add_dependency "isodoc", "~> 1.0.20"
27
+ spec.add_dependency "metanorma-standoc", "~> 1.5.0"
28
+ spec.add_dependency "isodoc", "~> 1.2.0"
31
29
  spec.add_dependency "iso-639"
32
30
 
33
31
  spec.add_development_dependency "byebug", "~> 9.1"
32
+ spec.add_development_dependency "sassc", "2.4.0"
34
33
  spec.add_development_dependency "equivalent-xml", "~> 0.6"
35
34
  spec.add_development_dependency "guard", "~> 2.14"
36
35
  spec.add_development_dependency "guard-rspec", "~> 4.7"
metadata CHANGED
@@ -1,71 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-ogc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-06-19 00:00:00.000000000 Z
11
+ date: 2020-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: htmlentities
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: 4.3.4
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: 4.3.4
27
- - !ruby/object:Gem::Dependency
28
- name: ruby-jing
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
13
  - !ruby/object:Gem::Dependency
42
14
  name: metanorma-standoc
43
15
  requirement: !ruby/object:Gem::Requirement
44
16
  requirements:
45
17
  - - "~>"
46
18
  - !ruby/object:Gem::Version
47
- version: 1.4.0
19
+ version: 1.5.0
48
20
  type: :runtime
49
21
  prerelease: false
50
22
  version_requirements: !ruby/object:Gem::Requirement
51
23
  requirements:
52
24
  - - "~>"
53
25
  - !ruby/object:Gem::Version
54
- version: 1.4.0
26
+ version: 1.5.0
55
27
  - !ruby/object:Gem::Dependency
56
28
  name: isodoc
57
29
  requirement: !ruby/object:Gem::Requirement
58
30
  requirements:
59
31
  - - "~>"
60
32
  - !ruby/object:Gem::Version
61
- version: 1.0.20
33
+ version: 1.2.0
62
34
  type: :runtime
63
35
  prerelease: false
64
36
  version_requirements: !ruby/object:Gem::Requirement
65
37
  requirements:
66
38
  - - "~>"
67
39
  - !ruby/object:Gem::Version
68
- version: 1.0.20
40
+ version: 1.2.0
69
41
  - !ruby/object:Gem::Dependency
70
42
  name: iso-639
71
43
  requirement: !ruby/object:Gem::Requirement
@@ -94,6 +66,20 @@ dependencies:
94
66
  - - "~>"
95
67
  - !ruby/object:Gem::Version
96
68
  version: '9.1'
69
+ - !ruby/object:Gem::Dependency
70
+ name: sassc
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '='
74
+ - !ruby/object:Gem::Version
75
+ version: 2.4.0
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '='
81
+ - !ruby/object:Gem::Version
82
+ version: 2.4.0
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: equivalent-xml
99
85
  requirement: !ruby/object:Gem::Requirement
@@ -243,18 +229,24 @@ files:
243
229
  - lib/isodoc/ogc.rb
244
230
  - lib/isodoc/ogc/base_convert.rb
245
231
  - lib/isodoc/ogc/biblio.rb
232
+ - lib/isodoc/ogc/html/_coverpage.css
246
233
  - lib/isodoc/ogc/html/_coverpage.scss
247
234
  - lib/isodoc/ogc/html/header.html
248
235
  - lib/isodoc/ogc/html/html_ogc_intro.html
249
236
  - lib/isodoc/ogc/html/html_ogc_titlepage.html
237
+ - lib/isodoc/ogc/html/htmlstyle.css
250
238
  - lib/isodoc/ogc/html/htmlstyle.scss
239
+ - lib/isodoc/ogc/html/ogc.css
251
240
  - lib/isodoc/ogc/html/ogc.scss
252
241
  - lib/isodoc/ogc/html/scripts.html
253
242
  - lib/isodoc/ogc/html/word_ogc_intro.html
254
243
  - lib/isodoc/ogc/html/word_ogc_titlepage.html
244
+ - lib/isodoc/ogc/html/wordstyle.css
255
245
  - lib/isodoc/ogc/html/wordstyle.scss
256
246
  - lib/isodoc/ogc/html_convert.rb
257
247
  - lib/isodoc/ogc/i18n-en.yaml
248
+ - lib/isodoc/ogc/i18n.rb
249
+ - lib/isodoc/ogc/init.rb
258
250
  - lib/isodoc/ogc/metadata.rb
259
251
  - lib/isodoc/ogc/ogc.abstract-specification-topic.xsl
260
252
  - lib/isodoc/ogc/ogc.best-practice.xsl
@@ -272,10 +264,11 @@ files:
272
264
  - lib/isodoc/ogc/ogc.user-guide.xsl
273
265
  - lib/isodoc/ogc/ogc.white-paper.xsl
274
266
  - lib/isodoc/ogc/pdf_convert.rb
267
+ - lib/isodoc/ogc/presentation_xml_convert.rb
275
268
  - lib/isodoc/ogc/reqt.rb
276
- - lib/isodoc/ogc/reqt_xref.rb
277
269
  - lib/isodoc/ogc/sections.rb
278
270
  - lib/isodoc/ogc/word_convert.rb
271
+ - lib/isodoc/ogc/xref.rb
279
272
  - lib/metanorma-ogc.rb
280
273
  - lib/metanorma/ogc.rb
281
274
  - lib/metanorma/ogc/processor.rb
@@ -285,7 +278,7 @@ homepage: https://github.com/metanorma/metanorma-ogc
285
278
  licenses:
286
279
  - BSD-2-Clause
287
280
  metadata: {}
288
- post_install_message:
281
+ post_install_message:
289
282
  rdoc_options: []
290
283
  require_paths:
291
284
  - lib
@@ -300,9 +293,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
300
293
  - !ruby/object:Gem::Version
301
294
  version: '0'
302
295
  requirements: []
303
- rubyforge_project:
304
- rubygems_version: 2.7.6
305
- signing_key:
296
+ rubygems_version: 3.0.3
297
+ signing_key:
306
298
  specification_version: 4
307
299
  summary: Metanorma for the Open Geospatial Consortium.
308
300
  test_files: []