pubid-core 1.12.8 → 1.12.9

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: bed399c7017bc24dfde32d04b76eef0b0a5d363fa7c6e8d4a52cda4323d68711
4
- data.tar.gz: 7b0e566fbdecd88f9243f9f18fb1e03f6b0d63d73a1211474dddfbcf1bf0d129
3
+ metadata.gz: ba717230345d92e43034c9974356212aadeb287ef99055dbcaee652f127db2be
4
+ data.tar.gz: 72a1c56945dbb8ed8ad1749ac34bae5b998d10919dabf61cb2e0463102ea0534
5
5
  SHA512:
6
- metadata.gz: 74e66447a935858d57b395b2324dbc2b1b250f0c8ecb45d3fb009fc82c8546bc2efb55fb0a9379c78f5c8a8d1da5c86adb8e50d8f2238edf5f92064d4a692bf2
7
- data.tar.gz: e0b4714e2936ab20d7666c9fcdd1efc4a967f627071753c2bb65e4c48deacfa9f41b1b5c5092e2cff25458bdccc849e28bfc8ba89b480f4e489c36e3c7f0873f
6
+ metadata.gz: 7c8175936737bf172e01bd39934f70286af0c009f37e1faf44dfb884f4ce3e29fa0aab33dce2ebb5d65899169be19a912dc0e173f3b215b7331fe0970bb0d550
7
+ data.tar.gz: f9103ba46e39e0b9f797a4cc831c7811d215266fe3b0afcf7c178ddb176c82bba83a2edd15b034aa1ffab8ac0e6d8ec5fcad976e4b79997c6a60ef8dd54373ca
@@ -89,10 +89,13 @@ module Pubid::Core
89
89
  end
90
90
 
91
91
  def ==(other)
92
- if other.is_a?(String)
92
+ case other
93
+ when String
93
94
  to_s == other
94
- elsif other.is_a?(Identifier::Base)
95
+ when Identifier::Base
95
96
  to_h == other.to_h
97
+ when Hash
98
+ to_h == other
96
99
  else
97
100
  raise Errors::WrongTypeError, "cannot compare with #{other.class} type"
98
101
  end
@@ -1,5 +1,5 @@
1
1
  module Pubid
2
2
  module Core
3
- VERSION = "1.12.8".freeze
3
+ VERSION = "1.12.9".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pubid-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.8
4
+ version: 1.12.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-07-07 00:00:00.000000000 Z
11
+ date: 2024-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake