pubid 2.0.0.pre.alpha.25 → 2.0.0.pre.alpha.26

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.
@@ -1255,12 +1255,6 @@ module Pubid
1255
1255
  cleaned = cleaned.gsub(/\s+/, " ")
1256
1256
 
1257
1257
 
1258
- # NEW Session 171: CONSERVATIVE data quality fixes for TODO.IEEE-MUST-DO.txt
1259
- # Only fix clear typos: space before dash + 4-digit year, OR dash + space + 4-digit year
1260
- # Do NOT touch " - " (space-dash-space) which is valid formatting
1261
- cleaned = cleaned.gsub(/(\d)\s+-(\d{4})\b/, '\1-\2') # "C37.101 -2006" → "C37.101-2006"
1262
- cleaned = cleaned.gsub(/(\d)-\s+(\d{4})\b/, '\1-\2') # "C62.35- 2010" → "C62.35-2010"
1263
-
1264
1258
  # NEW Session 171: Remove wrong ! prefix
1265
1259
  cleaned = cleaned.gsub(/^!IEEE /, "IEEE ")
1266
1260
 
@@ -1270,10 +1264,6 @@ module Pubid
1270
1264
  cleaned = cleaned.gsub("&", "&") # Double-encoded ampersand
1271
1265
  cleaned = cleaned.gsub("&", "&") # Single-encoded ampersand
1272
1266
 
1273
- # NEW: Wrap P&V notation in parentheses (Paper & Video, etc.)
1274
- # Pattern: "IEEE Std 500-1984 P&V" → "IEEE Std 500-1984 (P&V)"
1275
- cleaned = cleaned.gsub(/\s+(P&V)\s*$/, ' (\1)')
1276
-
1277
1267
  # NEW Phase 1: Fix number spacing issues (e.g., "C57.1 2.25" → "C57.12.25")
1278
1268
  # This handles cases where a space appears in the middle of a number
1279
1269
  cleaned = cleaned.gsub(/(\d+\.\d+)\s+(\d+\.)/, '\1\2')
@@ -1282,16 +1272,6 @@ module Pubid
1282
1272
  # Remove spaces within 4-digit years
1283
1273
  cleaned = cleaned.gsub(/\b(1|2)\s+(\d{3})\b/, '\1\2')
1284
1274
 
1285
- # NEW: Fix month+year spacing (e.g., "March2016" → "March 2016")
1286
- # Add space between month name and 4-digit year when they're concatenated
1287
- cleaned = cleaned.gsub(
1288
- /\b(January|February|March|April|May|June|July|August|September|October|November|December)(\d{4})\b/, '\1 \2'
1289
- )
1290
- # Also handle abbreviated months
1291
- cleaned = cleaned.gsub(
1292
- /\b(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Sept|Oct|Nov|Dec)(\d{4})\b/, '\1 \2'
1293
- )
1294
-
1295
1275
  # NEW: Convert IEC/IEEE space-separated to semicolon format
1296
1276
  # Pattern: "IEC 61523-3 First edition 2004-09; IEEE 1497" → already semicolon
1297
1277
  # Pattern: "IEC 62539 First Edition 2007-07 IEEE 930" → needs semicolon
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.0.pre.alpha.25"
4
+ VERSION = "2.0.0.pre.alpha.26"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pubid
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.pre.alpha.25
4
+ version: 2.0.0.pre.alpha.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-10-03 00:00:00.000000000 Z
11
+ date: 2026-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lutaml-model