metanorma-utils 1.5.4 → 1.5.5

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: edeeb87ccd74f0291767f8b7f11a67c1c670a183935b4fa9e03f886f383e915d
4
- data.tar.gz: f9ec9f2dd952a8893bb4876ff826c48dc590c1188ce9d1e26dd8de4ad5adce7c
3
+ metadata.gz: 50f2a20d06ec82c5937a8d16a79b62b854785c9bfd3722bba88cf40025297658
4
+ data.tar.gz: d86977e61ba4c279304676b6108b62f238aad069dde209061bc7699fb8481c74
5
5
  SHA512:
6
- metadata.gz: 8c24b7db0805bd859259e20f9ea029a7a010ebbdc256966db51ebb16e6bd8724d4adf53cfae7d45e32b716fa84bb8691b30b923fb9bd1f09c6a3c722ad6b8bcd
7
- data.tar.gz: ff2f10cc3b20c51d693e218acdcd8177b697c93d4ed707a80ec2ad1d65788d72d1de68083078c5696f8d5f3be4a38cd6b4c4bd3a4815f3a4e1e0bf8a6718474e
6
+ metadata.gz: 703b2fc422a54647b6a88807df7f7e6a6da30e78a1579cc7682e4e0a9dee19ec0a6886f78520002865ffad4151749543c96ceca7ee74d72f6b6988c087a3ae81
7
+ data.tar.gz: 7f74c2033f7e5cf5fff92c58540402db7d745ee111206da68f0b69e9c29beaf88f8b7c7a90e8ce9c10f2b77791865d8ba9909b8dd1447b7b5e7f1aa07f1b251d
data/lib/utils/image.rb CHANGED
@@ -44,7 +44,8 @@ module Metanorma
44
44
  end
45
45
 
46
46
  def svgmap_rewrite0(svgmap, namespace, localdirectory, idx)
47
- if (i = svgmap.at(namespace.ns(".//image"))) && (src = i["src"])
47
+ if (i = svgmap.at(namespace.ns(".//image"))) &&
48
+ (src = i["src"]) && !src.empty?
48
49
  path = svgmap_rewrite0_path(src, localdirectory)
49
50
  File.file?(path) or return false
50
51
  svg = Nokogiri::XML(File.read(path, encoding: "utf-8"))
data/lib/utils/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Utils
3
- VERSION = "1.5.4".freeze
3
+ VERSION = "1.5.5".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.4
4
+ version: 1.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-28 00:00:00.000000000 Z
11
+ date: 2023-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor