plate_id 0.0.9 → 0.0.13

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: 8b8d3dabbaefa7c9ee8a0deae52e407cd1ab16da2155412ef675357cd9d9f70c
4
- data.tar.gz: 7551903ea1563796779fd1d009a5ebbe545a270e77224505a20c94b758d5b3dd
3
+ metadata.gz: fae28568a46ef65beba86308c2b3f1c3227bcfceb593662d02dadcc642c2fcf6
4
+ data.tar.gz: 709f624d12bb80bb4715b7203a626798e420d243725b2c8ee0e42494fdc671be
5
5
  SHA512:
6
- metadata.gz: afcd7d4e1dc7a155bca5c2d38ab156862788faca0a4b261aee352984f969c518ab63a62b4374b0b001cf9a58fd2f871e9502b716510c8208901bb0dc72c59472
7
- data.tar.gz: 4cd51908239399a521f6585c9aae06b49ea2491dd14f059f0e1d765b68848abdfa00a677fe001f5e14df298fa8be121d290b0a47a21dad0912f89d045f8d9b2d
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/lib/uri/plate_id.rb CHANGED
@@ -16,9 +16,12 @@ module URI
16
16
  "Ngn::Site" => { host: "Base", base_class: "Site" },
17
17
  "Org::Site" => { host: "Base", base_class: "Site" },
18
18
  "Ngn::Attachment" => { host: "Base", base_class: "Attachment" },
19
+ "Ngn::AttachmentSetting" => { host: "Base", base_class: "AttachmentSetting" },
20
+ "Ngn::AttachmentFolder" => { host: "Base", base_class: "AttachmentFolder" },
19
21
  "Ngn::Domain" => { host: "Base", base_class: "Domain" },
20
22
  "Ngn::ClipboardItem" => { host: "Base", base_class: "ClipboardItem" },
21
23
  "Ngn::VersionControl::Actions::Action" => { host: "Base", base_class: "VersionControl" },
24
+ "Ngn::Redirect" => { host: "Base", base_class: "Redirect" },
22
25
 
23
26
  "Ngn::Content::Post" => { host: "Content", base_class: "Post" },
24
27
  "Ngn::Content::Section" => { host: "Content", base_class: "Section" },
@@ -39,7 +42,7 @@ module URI
39
42
  "Ngn::ContentModel::TrayType" => { host: "ContentModel", base_class: "TrayType" },
40
43
  "Ngn::ContentModel::AuthenticationType" => { host: "ContentModel", base_class: "AuthenticationType" },
41
44
 
42
- "Ngn::Theming::SiteTheme" => { host: "Theming", base_class: "Theme" },
45
+ "Ngn::Theming::Theme" => { host: "Theming", base_class: "Theme" },
43
46
  "Ngn::Theming::ThemeFile" => { host: "Theming", base_class: "ThemeFile" },
44
47
  "Ngn::Theming::Prerender" => { host: "Theming", base_class: "Prerender" },
45
48
 
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.9"
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.9
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-04-08 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.