isodoc 1.1.3.pre.alpha → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/isodoc.gemspec +1 -1
  3. data/lib/isodoc-yaml/i18n-en.yaml +4 -1
  4. data/lib/isodoc-yaml/i18n-fr.yaml +4 -1
  5. data/lib/isodoc-yaml/i18n-zh-Hans.yaml +4 -1
  6. data/lib/isodoc.rb +1 -0
  7. data/lib/isodoc/base_style/all.css +207 -0
  8. data/lib/isodoc/base_style/blocks.css +0 -0
  9. data/lib/isodoc/base_style/coverpage.css +0 -0
  10. data/lib/isodoc/base_style/defaults.css +0 -0
  11. data/lib/isodoc/base_style/metanorma_word.css +34 -0
  12. data/lib/isodoc/base_style/nav.css +0 -0
  13. data/lib/isodoc/base_style/reset.css +105 -0
  14. data/lib/isodoc/base_style/typography.css +0 -0
  15. data/lib/isodoc/common.rb +0 -2
  16. data/lib/isodoc/convert.rb +49 -44
  17. data/lib/isodoc/function/blocks.rb +10 -22
  18. data/lib/isodoc/function/blocks_example_note.rb +14 -15
  19. data/lib/isodoc/function/cleanup.rb +5 -4
  20. data/lib/isodoc/function/inline.rb +6 -76
  21. data/lib/isodoc/function/references.rb +10 -9
  22. data/lib/isodoc/function/reqt.rb +12 -11
  23. data/lib/isodoc/function/section.rb +39 -54
  24. data/lib/isodoc/function/table.rb +1 -6
  25. data/lib/isodoc/function/terms.rb +13 -6
  26. data/lib/isodoc/function/to_word_html.rb +1 -0
  27. data/lib/isodoc/function/utils.rb +4 -3
  28. data/lib/isodoc/gem_tasks.rb +33 -10
  29. data/lib/isodoc/html_function/html.rb +0 -1
  30. data/lib/isodoc/{function/i18n.rb → i18n.rb} +37 -36
  31. data/lib/isodoc/metadata.rb +4 -3
  32. data/lib/isodoc/metadata_date.rb +1 -1
  33. data/lib/isodoc/presentation_function/block.rb +138 -0
  34. data/lib/isodoc/presentation_function/inline.rb +131 -0
  35. data/lib/isodoc/presentation_function/section.rb +46 -0
  36. data/lib/isodoc/presentation_xml_convert.rb +38 -5
  37. data/lib/isodoc/version.rb +1 -1
  38. data/lib/isodoc/word_function/body.rb +12 -8
  39. data/lib/isodoc/word_function/inline.rb +3 -1
  40. data/lib/isodoc/xref.rb +5 -3
  41. data/lib/isodoc/xref/xref_sect_gen.rb +3 -3
  42. data/spec/assets/i18n.yaml +12 -1
  43. data/spec/isodoc/blocks_spec.rb +1101 -147
  44. data/spec/isodoc/cleanup_spec.rb +2 -2
  45. data/spec/isodoc/footnotes_spec.rb +2 -2
  46. data/spec/isodoc/i18n_spec.rb +679 -110
  47. data/spec/isodoc/inline_spec.rb +323 -142
  48. data/spec/isodoc/lists_spec.rb +2 -2
  49. data/spec/isodoc/postproc_spec.rb +1311 -1333
  50. data/spec/isodoc/ref_spec.rb +181 -3
  51. data/spec/isodoc/section_spec.rb +508 -680
  52. data/spec/isodoc/table_spec.rb +155 -4
  53. data/spec/isodoc/terms_spec.rb +111 -79
  54. data/spec/isodoc/xref_spec.rb +1569 -1186
  55. metadata +19 -8
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isodoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3.pre.alpha
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-26 00:00:00.000000000 Z
11
+ date: 2020-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciimath
@@ -142,14 +142,14 @@ dependencies:
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: '12.0'
146
- type: :runtime
145
+ version: '13.0'
146
+ type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: '12.0'
152
+ version: '13.0'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: byebug
155
155
  requirement: !ruby/object:Gem::Requirement
@@ -306,14 +306,22 @@ files:
306
306
  - lib/isodoc-yaml/i18n-fr.yaml
307
307
  - lib/isodoc-yaml/i18n-zh-Hans.yaml
308
308
  - lib/isodoc.rb
309
+ - lib/isodoc/base_style/all.css
309
310
  - lib/isodoc/base_style/all.scss
310
311
  - lib/isodoc/base_style/bands.scss
312
+ - lib/isodoc/base_style/blocks.css
311
313
  - lib/isodoc/base_style/blocks.scss
314
+ - lib/isodoc/base_style/coverpage.css
312
315
  - lib/isodoc/base_style/coverpage.scss
316
+ - lib/isodoc/base_style/defaults.css
313
317
  - lib/isodoc/base_style/defaults.scss
318
+ - lib/isodoc/base_style/metanorma_word.css
314
319
  - lib/isodoc/base_style/metanorma_word.scss
320
+ - lib/isodoc/base_style/nav.css
315
321
  - lib/isodoc/base_style/nav.scss
322
+ - lib/isodoc/base_style/reset.css
316
323
  - lib/isodoc/base_style/reset.scss
324
+ - lib/isodoc/base_style/typography.css
317
325
  - lib/isodoc/base_style/typography.scss
318
326
  - lib/isodoc/class_utils.rb
319
327
  - lib/isodoc/common.rb
@@ -322,7 +330,6 @@ files:
322
330
  - lib/isodoc/function/blocks.rb
323
331
  - lib/isodoc/function/blocks_example_note.rb
324
332
  - lib/isodoc/function/cleanup.rb
325
- - lib/isodoc/function/i18n.rb
326
333
  - lib/isodoc/function/inline.rb
327
334
  - lib/isodoc/function/inline_simple.rb
328
335
  - lib/isodoc/function/lists.rb
@@ -341,9 +348,13 @@ files:
341
348
  - lib/isodoc/html_function/footnotes.rb
342
349
  - lib/isodoc/html_function/html.rb
343
350
  - lib/isodoc/html_function/postprocess.rb
351
+ - lib/isodoc/i18n.rb
344
352
  - lib/isodoc/metadata.rb
345
353
  - lib/isodoc/metadata_date.rb
346
354
  - lib/isodoc/pdf_convert.rb
355
+ - lib/isodoc/presentation_function/block.rb
356
+ - lib/isodoc/presentation_function/inline.rb
357
+ - lib/isodoc/presentation_function/section.rb
347
358
  - lib/isodoc/presentation_xml_convert.rb
348
359
  - lib/isodoc/sassc_importer.rb
349
360
  - lib/isodoc/version.rb
@@ -409,9 +420,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
409
420
  version: 2.4.0
410
421
  required_rubygems_version: !ruby/object:Gem::Requirement
411
422
  requirements:
412
- - - ">"
423
+ - - ">="
413
424
  - !ruby/object:Gem::Version
414
- version: 1.3.1
425
+ version: '0'
415
426
  requirements: []
416
427
  rubygems_version: 3.0.3
417
428
  signing_key: