pubid-core 1.12.8 → 1.12.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pubid/core/identifier/base.rb +5 -2
- data/lib/pubid/core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba717230345d92e43034c9974356212aadeb287ef99055dbcaee652f127db2be
|
4
|
+
data.tar.gz: 72a1c56945dbb8ed8ad1749ac34bae5b998d10919dabf61cb2e0463102ea0534
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
92
|
+
case other
|
93
|
+
when String
|
93
94
|
to_s == other
|
94
|
-
|
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
|
data/lib/pubid/core/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2024-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|