pubid 2.0.44 → 2.0.45

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: 6d99cf14909f9fd7fb38dbb49af29ba7af4cc8709185b37d7ce6d93d6c7d5489
4
- data.tar.gz: a07eb61ebe481ddabc1a757db4959f1e681c76ed8c58a41a2267f90b61cae11d
3
+ metadata.gz: 68c8564b88bba215123b8c941d4c1298d14e917b988470908a4722f8aaa54cd6
4
+ data.tar.gz: dbeab3f486bedc56a963d90422058b44eb9bd6bc7c573b80c4cfcd1a6fdb3d67
5
5
  SHA512:
6
- metadata.gz: 47f10de035fea281a9afc3644bc4163ddc28bf7b1bf1a1b5aed2d46e97bc544ad2ab0a560d513609b5228376b684517692e74f8257b24b0e581d0a520b8ad74f
7
- data.tar.gz: 7615b627d44622f5e5bd247dac8fa7d46741ee537a7f5128c70bd4bbeb0bab7bf9a2954cb8abec971094e1386c1eb09f9fc768036676ed63c69a63d7b4be3b3d
6
+ metadata.gz: 5851aeb85bac731ab5d9d28f905908b5a52dd5e055083126a1676c8d44d5166321cb9f5c436149d29fe6795cb42d2adfd0f831d08ce676ed74c7000fdd17a060
7
+ data.tar.gz: da9fd1c1b9009a80b9817789400a2cf2ae770407f9e3e180ab9e6eb5651313b2478da17e21022827522449ef293b7b0b0241ab404cbc7468869f9fda1640ee32
@@ -131,6 +131,19 @@ module Pubid
131
131
  symbol == other.symbol
132
132
  end
133
133
 
134
+ # The bare SYMBOL face and no symbol are distinct states of a
135
+ # two-valued attribute: unlike the strict attributes' nil≈empty rule
136
+ # (a from_hash-dropped empty), nil here means NO SYMBOL clause while
137
+ # "" renders the bare `SYMBOL` keyword (render_empty), so the match
138
+ # is exact ==. Without this, a symbol-less reference wildcard-matches
139
+ # the bare-SYMBOL row and the two render-distinct forms match
140
+ # mutually (the corpus Law 4 failure on JIS Z 8211-3:2025 SYMBOL).
141
+ def subset_attribute_match?(name, mine, theirs)
142
+ return symbol == theirs if name == :symbol
143
+
144
+ super
145
+ end
146
+
134
147
  # Basic string representation. Delegates to renderer.
135
148
  def to_s(**opts)
136
149
  render(format: :human, **opts)
data/lib/pubid/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pubid
4
- VERSION = "2.0.44"
4
+ VERSION = "2.0.45"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pubid
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.44
4
+ version: 2.0.45
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.