metanorma 1.3.6 → 1.3.7

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: 1858cecb1db05debaa3cb36f970a2bcb76b403508067ea2fa8569720fd294a98
4
- data.tar.gz: 90f6e4bca7bd431a9d40a989c77837e6cfa47a12e436e0934624592bac0707f0
3
+ metadata.gz: 16196ab7719ac294eb22120afeb64ebceee75e83469bf0a4ae1abd2221952139
4
+ data.tar.gz: d1ed0d591efa82eb1e40b09f6598f98f6d7738435c85b6146e2ec7ada41a3413
5
5
  SHA512:
6
- metadata.gz: 8aec70e8a44751d4ab8557b793718c0bd02be3d90715a0048864257a8faf4bf23a5f4b60b780cf6d24658179eb2ecb572bf8b870ca9313b5d6f70839d2df03a5
7
- data.tar.gz: 58814116504a8ec8c80961e836adf50b7e50bc049d2a259031e7dc92b9a8f8909ddd8bbc26219197057a6e4a9dfec4ee05cb16144f1b69fdfdc66d46d9408e9b
6
+ metadata.gz: 4618e5ebe7f688ae9eec5680d0f17aa2795391e1485e749f975052952378742a0c29be722e46aef10c34432a658294bb06c5eac945c56a27c65c8ab7aedc944b
7
+ data.tar.gz: e0b3b3ac8846b3d6ecd1fb75691d525f3763c126d2c1db3469c1192c93a14f9a168ec75f2a851f92260334c514704072cc9a59c360034d8de578ca37a2bebf24
@@ -28,9 +28,9 @@ module Metanorma
28
28
  files[identifier][:bibdata] = xml.at(ns("//bibdata"))
29
29
  end
30
30
  files[identifier][:bibitem] = files[identifier][:bibdata].dup
31
- files[identifier][:bibitem].name = "bibitem"
32
- files[identifier][:bibitem]["hidden"] = "true"
33
- files[identifier][:bibitem]&.at("./*[local-name() = 'ext']")&.remove
31
+ files[identifier][:bibitem].name = "bibitem"
32
+ files[identifier][:bibitem]["hidden"] = "true"
33
+ files[identifier][:bibitem]&.at("./*[local-name() = 'ext']")&.remove
34
34
  end
35
35
  add_section_split(files)
36
36
  end
@@ -46,10 +46,8 @@ module Metanorma
46
46
  bibdata: files[k][:bibdata], ref: f1[:url] }
47
47
  m[k + f1[:title]][:bare] = true unless i.zero?
48
48
  end
49
- m[k] = files[k]
50
- else
51
- m[k] = files[k]
52
49
  end
50
+ m[k] = files[k]
53
51
  end
54
52
  end
55
53
 
@@ -160,8 +158,8 @@ module Metanorma
160
158
  # file_sectionsplit_copy(file, fn, identifier, ext, e)
161
159
  else
162
160
  FileUtils.cp file.path.sub(/\.xml$/, ".#{ext}"),
163
- File.join(@outdir, fn)
164
- @files[identifier][:outputs][e] = File.join(@outdir, fn)
161
+ File.join(@outdir, fn)
162
+ @files[identifier][:outputs][e] = File.join(@outdir, fn)
165
163
  end
166
164
  end
167
165
  end
@@ -76,7 +76,9 @@ module Metanorma
76
76
  filename = @files[id][:outputs][e]
77
77
  out.documents[id] = Metanorma::Document.raw_file(filename)
78
78
  end
79
- File.open(File.join(@outdir, "collection.#{ext}"), "w:UTF-8") { |f| f.write(out.to_xml) }
79
+ File.open(File.join(@outdir, "collection.#{ext}"), "w:UTF-8") do |f|
80
+ f.write(out.to_xml)
81
+ end
80
82
  end
81
83
  options[:format].include?(:pdf) and
82
84
  pdfconv.convert(File.join(@outdir, "collection.presentation.xml"))
@@ -233,8 +233,8 @@ module Metanorma
233
233
  isodoc_options = @processor.extract_options(file)
234
234
  isodoc_options[:datauriimage] = true if options[:datauriimage]
235
235
  isodoc_options[:sourcefilename] = options[:filename]
236
- isodoc_options[:bare] = options[:bare]
237
- isodoc_options[:sectionsplit] = options[:sectionsplit]
236
+ isodoc_options[:bare] ||= options[:bare]
237
+ isodoc_options[:sectionsplit] ||= options[:sectionsplit]
238
238
  if ext == :pdf
239
239
  floc = FontistUtils.fontist_font_locations(@processor, options) and
240
240
  isodoc_options[:mn2pdf] = { font_manifest_file: floc.path }
@@ -57,9 +57,9 @@ module Metanorma
57
57
  end
58
58
 
59
59
  ADOC_OPTIONS = %w(htmlstylesheet htmlcoverpage htmlintropage scripts
60
- scripts-override scripts-pdf wordstylesheet bare i18nyaml
60
+ scripts-override scripts-pdf wordstylesheet i18nyaml
61
61
  standardstylesheet header wordcoverpage wordintropage
62
- ulstyle olstyle htmlstylesheet-override
62
+ ulstyle olstyle htmlstylesheet-override bare
63
63
  htmltoclevels doctoclevels sectionsplit
64
64
  body-font header-font monospace-font title-font
65
65
  wordstylesheet-override).freeze
@@ -1,3 +1,3 @@
1
1
  module Metanorma
2
- VERSION = "1.3.6".freeze
2
+ VERSION = "1.3.7".freeze
3
3
  end
data/metanorma.gemspec CHANGED
@@ -36,10 +36,11 @@ Gem::Specification.new do |spec|
36
36
 
37
37
  spec.add_development_dependency "byebug", "~> 10.0"
38
38
  spec.add_development_dependency "equivalent-xml", "~> 0.6"
39
- spec.add_development_dependency "metanorma-iso", "~> 1.8.0"
39
+ spec.add_development_dependency "metanorma-iso", "~> 1.9.0"
40
40
  spec.add_development_dependency "rake", "~> 13.0"
41
41
  spec.add_development_dependency "rspec", "~> 3.0"
42
42
  spec.add_development_dependency "rspec-command", "~> 1.0"
43
43
  spec.add_development_dependency "rubocop", "~> 1.5.2"
44
44
  spec.add_development_dependency "sassc", "~> 2.4.0"
45
+ spec.add_development_dependency "mnconvert"
45
46
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.6
4
+ version: 1.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-05 00:00:00.000000000 Z
11
+ date: 2021-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor
@@ -142,14 +142,14 @@ dependencies:
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: 1.8.0
145
+ version: 1.9.0
146
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: 1.8.0
152
+ version: 1.9.0
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: rake
155
155
  requirement: !ruby/object:Gem::Requirement
@@ -220,6 +220,20 @@ dependencies:
220
220
  - - "~>"
221
221
  - !ruby/object:Gem::Version
222
222
  version: 2.4.0
223
+ - !ruby/object:Gem::Dependency
224
+ name: mnconvert
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - ">="
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - ">="
235
+ - !ruby/object:Gem::Version
236
+ version: '0'
223
237
  description: Library to process any Metanorma standard.
224
238
  email:
225
239
  - open.source@ribose.com