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 +4 -4
- data/lib/pubid/jis/identifier.rb +13 -0
- data/lib/pubid/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 68c8564b88bba215123b8c941d4c1298d14e917b988470908a4722f8aaa54cd6
|
|
4
|
+
data.tar.gz: dbeab3f486bedc56a963d90422058b44eb9bd6bc7c573b80c4cfcd1a6fdb3d67
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5851aeb85bac731ab5d9d28f905908b5a52dd5e055083126a1676c8d44d5166321cb9f5c436149d29fe6795cb42d2adfd0f831d08ce676ed74c7000fdd17a060
|
|
7
|
+
data.tar.gz: da9fd1c1b9009a80b9817789400a2cf2ae770407f9e3e180ab9e6eb5651313b2478da17e21022827522449ef293b7b0b0241ab404cbc7468869f9fda1640ee32
|
data/lib/pubid/jis/identifier.rb
CHANGED
|
@@ -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