metanorma-core 0.2.4 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 68e4e30c0ecd25f66ab9f39d7132b23d05f3266a5afba3a6e67f91916329385c
4
- data.tar.gz: 3d9d4072b81250ec95cb81d7630eeaaf1115338ba24469ee62a58d25bbfe8910
3
+ metadata.gz: ed60afcd91e77723c04cf0d2e00865a035ee33c51e3a35fc7ff83ee12ed74624
4
+ data.tar.gz: 6a522123211ec73a787a366e85ec90e111008e105dcb66e7763f468d49a9fe45
5
5
  SHA512:
6
- metadata.gz: 002dd0efbf7c11b30d665b62f377fac848f3636448728ee01012062b332c5e33bec62523f2b6ff194f2c6651efcec93ec24ad33edfeeb11212be9e00fb1b3e90
7
- data.tar.gz: e2ebc0042409579e2f17312a96b6f8c77a8247235d243500d4f888282738aaf83bda659dfa6a77ab93010fd4675ed1230c426cc50696070e8a1fba740c30f66d
6
+ metadata.gz: 02f1b53d1566f3414d01b03eac4df7d4cb05f32c2c48aaae6caec8a9a39f1fea948725e4cc042b809591ee07130fafc94e80a07f6e05c2b7ccfcaa00056e1896
7
+ data.tar.gz: 6c1ee4778e2d42e8d92c3520ccc9b2810cc9ab2572c0fe77c7927947fa4a1ebe7d3ceea55d881b9c2ca6d740e9c466e472cfaaf4d1cbe04f7184f8ae8f1729ab
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Core
3
- VERSION = "0.2.4".freeze
3
+ VERSION = "0.2.5".freeze
4
4
  end
5
5
  end
@@ -5,15 +5,19 @@ module Metanorma
5
5
  module Util
6
6
  class << self
7
7
  # Print +message+ to stdout if +type+ is in
8
- # {Metanorma::Configuration#logs}; abort the process if
9
- # +type+ is +:fatal+ regardless of whether it was printed.
8
+ # {Metanorma::Configuration#logs}; abort the process with the
9
+ # message on stderr if +type+ is +:fatal+.
10
+ #
11
+ # The +:fatal+ message is written to stderr unconditionally: a
12
+ # fatal abort that only surfaces when the right log category is
13
+ # configured reads as a silent death of the process
14
+ # (metanorma/iso-10303#756).
10
15
  #
11
16
  # @param message [String] the message to print.
12
17
  # @param type [Symbol] severity, defaults to +:info+. Common
13
18
  # values: +:info+, +:warning+, +:error+, +:fatal+. The
14
19
  # configured +logs+ list determines which severities are
15
- # printed; +:fatal+ always aborts on top of (or instead of)
16
- # printing.
20
+ # printed; +:fatal+ aborts with the message on top of printing.
17
21
  # @return [void]
18
22
  def log(message, type = :info)
19
23
  log_types = Metanorma.configuration.logs.map(&:to_s) || []
@@ -22,9 +26,8 @@ module Metanorma
22
26
  puts(message)
23
27
  end
24
28
 
25
- if type == :fatal
26
- abort
27
- end
29
+ # Kernel#abort prints the message to stderr and exits 1.
30
+ abort(message) if type == :fatal
28
31
  end
29
32
 
30
33
  # Sort key used to put output-format extensions in execution order.
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
28
28
  spec.add_dependency "asciidoctor"
29
29
  spec.add_dependency "metanorma-taste", "~> 1.1.0"
30
30
  spec.add_dependency "metanorma-utils"
31
- spec.add_dependency "nokogiri"
31
+ spec.add_dependency "nokogiri", "~> 1.19"
32
32
 
33
33
  spec.add_development_dependency "debug"
34
34
  spec.add_development_dependency "rake", "~> 13.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.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: 2026-09-29 00:00:00.000000000 Z
11
+ date: 2026-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor
@@ -56,16 +56,16 @@ dependencies:
56
56
  name: nokogiri
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: '1.19'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: '1.19'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: debug
71
71
  requirement: !ruby/object:Gem::Requirement