plate_id 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/plate_id.rb +4 -0
  3. data/plate_id.gemspec +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7eb7c5597adcc23dd5ed9b52ccba9c60b13114f57d91021632a96861f8e0e004
4
- data.tar.gz: 32ae6fb755fc9e59e90b73da758b06ab1644f48841583ab5a6401b56e23d43a8
3
+ metadata.gz: fae28568a46ef65beba86308c2b3f1c3227bcfceb593662d02dadcc642c2fcf6
4
+ data.tar.gz: 709f624d12bb80bb4715b7203a626798e420d243725b2c8ee0e42494fdc671be
5
5
  SHA512:
6
- metadata.gz: f25b9d041ce5a9dd21cbde0095b3f7fd84b9f2a9d7cf6ece09db8d1f81699b8c7c7b6458b6fb832ee0b408415e898e89b69909a8672744dbb4f8fe67870322e7
7
- data.tar.gz: f62f1d99d6e491c9f99e44ecedeaf74f407c0bdffa1cd5b477ad280b2866b985f296439b1e436fbd7aa9b8fa62822451a85ce2080f2b3bc2acff561e1b6824f3
6
+ metadata.gz: 6412d536d3f0481c69379734f1da1c900d44f4e01deb8eefe24764e83afe86ef044d100e0ba137db8b36015bc31938dddc4f0eea6153dbd1f2291161bd427b91
7
+ data.tar.gz: f91bae8fad50e55e4806e3604aad13c5fe2e329993df24ca76e4ab5ba0bb6c2ff9a21ae017af35d7afa8201c29e719f7c40be14e0bf1bd388b05bf484d462e4d
data/lib/plate_id.rb CHANGED
@@ -56,6 +56,10 @@ class PlateID
56
56
  plate_class&.find_by(id: uri.id)
57
57
  end
58
58
 
59
+ def ==(other)
60
+ to_s == other.to_s
61
+ end
62
+
59
63
  private
60
64
 
61
65
  def fetch_uri(plate_id)
data/plate_id.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "plate_id"
5
- spec.version = "0.0.12"
5
+ spec.version = "0.0.13"
6
6
  spec.authors = ["Kobus Post"]
7
7
  spec.email = ["kobus@getplate.com"]
8
8
  spec.homepage = "https://www.getplate.com"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plate_id
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kobus Post
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-10-14 00:00:00.000000000 Z
11
+ date: 2021-12-01 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Identify any Plate record or class with URIs. Somewhat based on Rails's
14
14
  GlobalID gem.