canon 0.1.20 → 0.1.21

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: 5caff8b02e8a381d4febbcbce1b0eeb4000599385428db08b8292fb35b76cfd5
4
- data.tar.gz: ee62fd3b76217834e32c026bddcdf889ba9bad48772e5520b0bce7da4d3f982e
3
+ metadata.gz: c93345884c8bf0f6d5c4507415bb04fa991b8361eb9e38f10fddcbebb92b2370
4
+ data.tar.gz: d48eb18c21f562d7e0ff533507c56c6d264600a775f04b2adf2b267b9ce4de2a
5
5
  SHA512:
6
- metadata.gz: 3a317a23324d26f55980d532e07c4d67b1fdfe9cf9e62afdd59ed0381be1f2ebcc6a19da92c02ab9c3e336ec10eda7885dca78d8fbe6de3717876d84f65bc05a
7
- data.tar.gz: e38169560e771711fc1f79e60915e8412c0c8229244ac33f23107a87ede5e0f7fad87c47cf85a1519904256f985ed6abfb6d047d04e83c6865fc8ef23163a7d3
6
+ metadata.gz: 0cd5ed6a025b439ef76e347a8e223abcdf70c7524bc3e4e883297bfff35c68a30b0ca543c00a657c05714da9273e740c89e7cb34b3d4d0f5b9a3ea496f237530
7
+ data.tar.gz: a80515c239c74a58835ad6486e2fc02379166831e5555d4426607bf9b7e612e4047b50135e59caea25ed9d4c6809624a2f2a3b305f54c9c70899280f85d317dd
@@ -490,8 +490,8 @@ module Canon
490
490
  return Comparison::UNEQUAL_NODES_TYPES
491
491
  end
492
492
 
493
- content1 = n1.content.to_s.strip
494
- content2 = n2.content.to_s.strip
493
+ content1 = n1.respond_to?(:content) ? n1.content.to_s.strip : ""
494
+ content2 = n2.respond_to?(:content) ? n2.content.to_s.strip : ""
495
495
 
496
496
  if content1 == content2
497
497
  Comparison::EQUIVALENT
data/lib/canon/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Canon
4
- VERSION = "0.1.20"
4
+ VERSION = "0.1.21"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: canon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.20
4
+ version: 0.1.21
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-03-26 00:00:00.000000000 Z
11
+ date: 2026-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: diff-lcs