metanorma-ogc 1.0.7 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) 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/biblio.rng +14 -4
  7. data/lib/asciidoctor/ogc/boilerplate.xml +7 -22
  8. data/lib/asciidoctor/ogc/converter.rb +11 -16
  9. data/lib/asciidoctor/ogc/isodoc.rng +444 -1
  10. data/lib/asciidoctor/ogc/reqt.rng +23 -0
  11. data/lib/isodoc/ogc.rb +2 -0
  12. data/lib/isodoc/ogc/base_convert.rb +12 -60
  13. data/lib/isodoc/ogc/html/html_ogc_titlepage.html +0 -5
  14. data/lib/isodoc/ogc/html/wordstyle.scss +0 -1
  15. data/lib/isodoc/ogc/html_convert.rb +0 -4
  16. data/lib/isodoc/ogc/metadata.rb +0 -8
  17. data/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +1156 -430
  18. data/lib/isodoc/ogc/ogc.best-practice.xsl +1156 -430
  19. data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +1156 -430
  20. data/lib/isodoc/ogc/ogc.community-practice.xsl +1156 -430
  21. data/lib/isodoc/ogc/ogc.community-standard.xsl +1156 -430
  22. data/lib/isodoc/ogc/ogc.discussion-paper.xsl +1156 -430
  23. data/lib/isodoc/ogc/ogc.engineering-report.xsl +1156 -430
  24. data/lib/isodoc/ogc/ogc.other.xsl +1156 -430
  25. data/lib/isodoc/ogc/ogc.policy.xsl +1156 -430
  26. data/lib/isodoc/ogc/ogc.reference-model.xsl +1156 -430
  27. data/lib/isodoc/ogc/ogc.release-notes.xsl +1156 -430
  28. data/lib/isodoc/ogc/ogc.standard.xsl +1156 -430
  29. data/lib/isodoc/ogc/ogc.test-suite.xsl +1156 -430
  30. data/lib/isodoc/ogc/ogc.user-guide.xsl +1156 -430
  31. data/lib/isodoc/ogc/ogc.white-paper.xsl +1156 -430
  32. data/lib/isodoc/ogc/pdf_convert.rb +0 -13
  33. data/lib/isodoc/ogc/presentation_xml_convert.rb +10 -0
  34. data/lib/isodoc/ogc/reqt.rb +49 -125
  35. data/lib/isodoc/ogc/sections.rb +9 -8
  36. data/lib/isodoc/ogc/word_convert.rb +7 -16
  37. data/lib/isodoc/ogc/xref.rb +158 -0
  38. data/lib/metanorma/ogc/processor.rb +6 -8
  39. data/lib/metanorma/ogc/version.rb +1 -1
  40. data/metanorma-ogc.gemspec +3 -2
  41. metadata +26 -11
@@ -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.7"
3
+ VERSION = "1.1.2"
4
4
  end
5
5
  end
@@ -26,11 +26,12 @@ Gem::Specification.new do |spec|
26
26
 
27
27
  spec.add_dependency "htmlentities", "~> 4.3.4"
28
28
  spec.add_dependency "ruby-jing"
29
- spec.add_dependency "metanorma-standoc", "~> 1.3.20"
30
- spec.add_dependency "isodoc", "~> 1.0.20"
29
+ spec.add_dependency "metanorma-standoc", "~> 1.4.0"
30
+ spec.add_dependency "isodoc", "~> 1.1.0"
31
31
  spec.add_dependency "iso-639"
32
32
 
33
33
  spec.add_development_dependency "byebug", "~> 9.1"
34
+ spec.add_development_dependency "sassc", "2.4.0"
34
35
  spec.add_development_dependency "equivalent-xml", "~> 0.6"
35
36
  spec.add_development_dependency "guard", "~> 2.14"
36
37
  spec.add_development_dependency "guard-rspec", "~> 4.7"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-ogc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.1.2
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-05-26 00:00:00.000000000 Z
11
+ date: 2020-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: htmlentities
@@ -44,28 +44,28 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.3.20
47
+ version: 1.4.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 1.3.20
54
+ version: 1.4.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: isodoc
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 1.0.20
61
+ version: 1.1.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 1.0.20
68
+ version: 1.1.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: iso-639
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -94,6 +94,20 @@ dependencies:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '9.1'
97
+ - !ruby/object:Gem::Dependency
98
+ name: sassc
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - '='
102
+ - !ruby/object:Gem::Version
103
+ version: 2.4.0
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - '='
109
+ - !ruby/object:Gem::Version
110
+ version: 2.4.0
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: equivalent-xml
99
113
  requirement: !ruby/object:Gem::Requirement
@@ -272,9 +286,11 @@ files:
272
286
  - lib/isodoc/ogc/ogc.user-guide.xsl
273
287
  - lib/isodoc/ogc/ogc.white-paper.xsl
274
288
  - lib/isodoc/ogc/pdf_convert.rb
289
+ - lib/isodoc/ogc/presentation_xml_convert.rb
275
290
  - lib/isodoc/ogc/reqt.rb
276
291
  - lib/isodoc/ogc/sections.rb
277
292
  - lib/isodoc/ogc/word_convert.rb
293
+ - lib/isodoc/ogc/xref.rb
278
294
  - lib/metanorma-ogc.rb
279
295
  - lib/metanorma/ogc.rb
280
296
  - lib/metanorma/ogc/processor.rb
@@ -284,7 +300,7 @@ homepage: https://github.com/metanorma/metanorma-ogc
284
300
  licenses:
285
301
  - BSD-2-Clause
286
302
  metadata: {}
287
- post_install_message:
303
+ post_install_message:
288
304
  rdoc_options: []
289
305
  require_paths:
290
306
  - lib
@@ -299,9 +315,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
299
315
  - !ruby/object:Gem::Version
300
316
  version: '0'
301
317
  requirements: []
302
- rubyforge_project:
303
- rubygems_version: 2.7.6
304
- signing_key:
318
+ rubygems_version: 3.0.3
319
+ signing_key:
305
320
  specification_version: 4
306
321
  summary: Metanorma for the Open Geospatial Consortium.
307
322
  test_files: []