metanorma-utils 1.6.3 → 1.6.4

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: cbe101c56bac70e6543c03f11abc88c0a1ea7645220c0b4f375f679956d507ae
4
- data.tar.gz: f9d7c68df7145fa585c6af6a253ccc1e587b841cbdc619fe4ace584026723623
3
+ metadata.gz: 57cdd3eb9d930975ba70e75b1a93fa61b071ad0a84f6d9acb9173f39e4ab9461
4
+ data.tar.gz: 7d7db96c6baf145635b80c7538191582c98acde5d47698e0f5743b706e5c9a8b
5
5
  SHA512:
6
- metadata.gz: 5c2cf454f5fdf77753856c0e353b265b0f113a5adfd69cf17d654c774045c0a3623f34fb12255603da238f04448a68160d6c28a87c9ee4f0b2202a4ea4d7a01a
7
- data.tar.gz: d851a8005f82a55211329bce7fe957e126a8e913d249919a542a525bbb8119fae9fdb34d243364530db174e7e256dc2286f7c66f112bd274b3648e496e84c5d4
6
+ metadata.gz: f32fd8887a434a77e6f99ad81c5dafb8677096787c7fbae70cf4aeac4d5d264913639a9f216aa0793f8f3b7637ff78303372d7c8ee5072c516ca983436a3c47e
7
+ data.tar.gz: d9434cdece35bd9f95f9366a987d11995c19dca2bf2cd348ab1cf877a3fff96c66f69dc137cebc9d548a3b8c7a01ef3f0d196993b3873e62d58cceea9c277a21
data/lib/utils/log.rb CHANGED
@@ -17,10 +17,11 @@ module Metanorma
17
17
  item = create_entry(loc, msg)
18
18
  @log[category] << item
19
19
  loc = loc.nil? ? "" : "(#{current_location(loc)}): "
20
- suppress_display?(category, loc, msg) or warn "#{category}: #{loc}#{msg}"
20
+ suppress_display?(category, loc, msg) or
21
+ warn "#{category}: #{loc}#{msg}"
21
22
  end
22
23
 
23
- def suppress_display?(category, loc, msg)
24
+ def suppress_display?(category, _loc, _msg)
24
25
  ["Metanorma XML Syntax"].include?(category)
25
26
  end
26
27
 
@@ -99,6 +100,7 @@ module Metanorma
99
100
  def log_hdr(file)
100
101
  <<~HTML
101
102
  <html><head><title>#{file} errors</title>
103
+ <meta charset="UTF-8"/>
102
104
  <style> pre { white-space: pre-wrap; } </style>
103
105
  </head><body><h1>#{file} errors</h1>
104
106
  HTML
data/lib/utils/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Utils
3
- VERSION = "1.6.3".freeze
3
+ VERSION = "1.6.4".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.6.3
4
+ version: 1.6.4
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-11-10 00:00:00.000000000 Z
11
+ date: 2023-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor