metanorma 1.3.9 → 1.3.9.1

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: 46ea9a7ce8316d94001c40043488f3472bcf639264e446bfb5bfaad88b6bed70
4
- data.tar.gz: 7e4bfc4c4346c518d845052fd2dbb0b1f51f63e2951a317c18d938f9663cdea3
3
+ metadata.gz: 9a9807dfd686937050274493eff01bd863f032f237dad7baff1c027a0fa75561
4
+ data.tar.gz: 901710c9e8e1ac28c417d859ded7bc930da149ff01220319053583eb518751d1
5
5
  SHA512:
6
- metadata.gz: fdb777c1e35bbeeac65f3e5b0654ead9633a196340017da8cd4bd84342a9500a891a14ac19d83cc0cda0e5301728afdddf367fa3871eece62b389d93d0144238
7
- data.tar.gz: c264222db4c7e2cbd7342aac8da9c5480a1d48f277ce2c5ef23000443d618379abb0769d111a8846733d60a53364706a65edd1a14de7ada03b94d16182c479bb
6
+ metadata.gz: afe50ca043b69ba258442f8061011492cd53b272c42cd1b386da20781df61348dca788147debac44d4477d3381725f44e956881417d38c8a60cfcec7835de756
7
+ data.tar.gz: 0e1696dab391b92724517eadfc307d7cd1392ad533906c23e427bafc31cf88232dd8fc31a47c2d179d8057de42165da285bfc8a990631a58d4b989fb7dda22d9
@@ -49,7 +49,7 @@ module Metanorma
49
49
  end
50
50
 
51
51
  def add_section_split_cover(files, manifest, ident)
52
- cover = section_split_cover(manifest, ident)
52
+ cover = section_split_cover(manifest, dir_name_cleanse(ident))
53
53
  files[ident][:out_path] = cover
54
54
  { attachment: true, index: false, out_path: cover,
55
55
  ref: File.join(File.dirname(manifest.file), cover) }
@@ -33,7 +33,7 @@ module Metanorma
33
33
  # output processor for flavour
34
34
  @isodoc = isodoc
35
35
 
36
- @outdir = options[:output_folder]
36
+ @outdir = dir_name_cleanse(options[:output_folder])
37
37
  @coverpage = options[:coverpage]
38
38
  @format = Util.sort_extensions_execution(options[:format])
39
39
  @compile_options = options[:compile] || {}
@@ -51,6 +51,10 @@ module Metanorma
51
51
  FileUtils.mkdir_p @outdir
52
52
  end
53
53
 
54
+ def dir_name_cleanse(name)
55
+ name.gsub(/[<>:"|?*]/, "_")
56
+ end
57
+
54
58
  # @param col [Metanorma::Collection] XML collection
55
59
  # @param options [Hash]
56
60
  # @option options [String] :coverpage cover page HTML (Liquid template)
@@ -1,3 +1,3 @@
1
1
  module Metanorma
2
- VERSION = "1.3.9".freeze
2
+ VERSION = "1.3.9.1".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.9
4
+ version: 1.3.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.