pubid-core 1.12.6 → 1.12.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e669a025185a33a0de2de0011d98e82646db6c6b38a05be0cfca6361c860a868
4
- data.tar.gz: 7a73c303c959f8bc8c0fc2ebc3146804f68ac4a821b40921a6498e30a52defb7
3
+ metadata.gz: 482446f44487266ec6eaba1d786cdd6598e544e23abc3e278351960a615738bd
4
+ data.tar.gz: a63ac5ceead17b50205ff1e3b98f1085643ee0001b7944e62fa7bbec66cae21d
5
5
  SHA512:
6
- metadata.gz: 17a75594c20895b3c69c2e4b240b2aabc5866df8ce580874575ae3b11c370307d6a06cc6e701e16730b060f2d402c19e112dea47dbc04fc66b91f9bdf3d53149
7
- data.tar.gz: 86ee39d91c73705fa32be75453e9d33b62674319f8b56833d8f433697f8407b8684e5fd168dbbfad65d553e78bb1a295e1eca705aade15b0bce6683736faa30a
6
+ metadata.gz: 39c079582f8e1ec2f8dcfa006a0c2ef4b7c3e059badbfff247d19d084d2eba7ec2b03da0001a346df19e3c852fad8af6db8d06249cabc219a05fdb3f52b41971
7
+ data.tar.gz: 05ef2151e01923b22a4882d2139b6bc283390b02ed9fc626290df82ab5188501889cfadb3d294cdfdad6b61629f6c5138f64fb584ccd3107cb4de2ff54ac4ada
@@ -84,7 +84,13 @@ module Pubid::Core
84
84
  end
85
85
 
86
86
  def ==(other)
87
- to_h == other.to_h
87
+ if other.is_a?(String)
88
+ to_s == other
89
+ elsif other.is_a?(Identifier::Base)
90
+ to_h == other.to_h
91
+ else
92
+ raise Errors::WrongTypeError, "cannot compare with #{other.class} type"
93
+ end
88
94
  end
89
95
 
90
96
  # Render identifier using default renderer
@@ -1,5 +1,5 @@
1
1
  module Pubid
2
2
  module Core
3
- VERSION = "1.12.6".freeze
3
+ VERSION = "1.12.7".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.6
4
+ version: 1.12.7
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-06-12 00:00:00.000000000 Z
11
+ date: 2024-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake