plate_id 0.0.14 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -0
- data/Gemfile.lock +2 -1
- data/Rakefile +0 -2
- data/lib/uri/plate_id.rb +6 -1
- data/plate_id.gemspec +2 -2
- metadata +9 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6ce0b0cad5cb853e3e5214e65970c545164fa1408b2c4058b2a2779cd260272
|
4
|
+
data.tar.gz: 1063e5e8136262d5dedfc0ff7c89614e748478979e9afb0029f3b2bfb2dfcddb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c753679aa249858edec134385366a694c260a2f936f76735674e0163c94d18dcb4969cf63fb588d4c4598b078a59058c8469cb7814ac4662f5045ca074a1fd4
|
7
|
+
data.tar.gz: da16f5cfa736b8c96c8dda64cd06f97a0945739dd63e47527590a3cde44d2fe8cd20131bec8b7e1ecbc2181c2731c94f2b75b4cb1e9d276db76e93bda91f687a
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.7.7
|
data/Gemfile.lock
CHANGED
data/Rakefile
CHANGED
data/lib/uri/plate_id.rb
CHANGED
@@ -50,6 +50,10 @@ module URI
|
|
50
50
|
"Ngn::Theming::ThemeFile" => { host: "Theming", base_class: "ThemeFile" },
|
51
51
|
"Ngn::Theming::Prerender" => { host: "Theming", base_class: "Prerender" },
|
52
52
|
|
53
|
+
"Ngn::MultiContent::MultiSiteConnection" => { host: "MultiContent", base_class: "MultiSiteConnection" },
|
54
|
+
"Ngn::MultiContent::MultiContentConnection" => { host: "MultiContent", base_class: "MultiContentConnection" },
|
55
|
+
"Ngn::MultiContent::MultiContentRule" => { host: "MultiContent", base_class: "MultiContentRule" },
|
56
|
+
|
53
57
|
"Org::Auth::User" => { host: "Auth", base_class: "User" },
|
54
58
|
"Api::Integration" => { host: "Auth", base_class: "ApiIntegration" },
|
55
59
|
|
@@ -100,7 +104,7 @@ module URI
|
|
100
104
|
return unless comps
|
101
105
|
|
102
106
|
parts = MAPPING[comps[:model_name]].dup
|
103
|
-
|
107
|
+
raise "There is no PlateID definition for this class: #{comps[:model_name]}" unless parts
|
104
108
|
|
105
109
|
parts[:scheme] = comps[:scheme]
|
106
110
|
parts[:id] = comps[:model_id]
|
@@ -179,5 +183,6 @@ module URI
|
|
179
183
|
end
|
180
184
|
end
|
181
185
|
|
186
|
+
@@schemes ||= {}
|
182
187
|
@@schemes["PlateID"] = PlateID
|
183
188
|
end
|
data/plate_id.gemspec
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "plate_id"
|
5
|
-
spec.version = "0.
|
6
|
-
spec.authors = ["Kobus Post"]
|
5
|
+
spec.version = "0.1.1"
|
6
|
+
spec.authors = ["Kobus Post", "David Kortleven", "Elena Freudenberg"]
|
7
7
|
spec.email = ["kobus@getplate.com"]
|
8
8
|
spec.homepage = "https://www.getplate.com"
|
9
9
|
|
metadata
CHANGED
@@ -1,14 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plate_id
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kobus Post
|
8
|
-
|
8
|
+
- David Kortleven
|
9
|
+
- Elena Freudenberg
|
10
|
+
autorequire:
|
9
11
|
bindir: exe
|
10
12
|
cert_chain: []
|
11
|
-
date:
|
13
|
+
date: 2023-10-17 00:00:00.000000000 Z
|
12
14
|
dependencies: []
|
13
15
|
description: Identify any Plate record or class with URIs. Somewhat based on Rails's
|
14
16
|
GlobalID gem.
|
@@ -20,6 +22,7 @@ extra_rdoc_files: []
|
|
20
22
|
files:
|
21
23
|
- ".gitignore"
|
22
24
|
- ".rspec"
|
25
|
+
- ".ruby-version"
|
23
26
|
- Gemfile
|
24
27
|
- Gemfile.lock
|
25
28
|
- LICENSE.txt
|
@@ -33,7 +36,7 @@ homepage: https://www.getplate.com
|
|
33
36
|
licenses:
|
34
37
|
- MIT
|
35
38
|
metadata: {}
|
36
|
-
post_install_message:
|
39
|
+
post_install_message:
|
37
40
|
rdoc_options: []
|
38
41
|
require_paths:
|
39
42
|
- lib
|
@@ -48,8 +51,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
48
51
|
- !ruby/object:Gem::Version
|
49
52
|
version: '0'
|
50
53
|
requirements: []
|
51
|
-
rubygems_version: 3.
|
52
|
-
signing_key:
|
54
|
+
rubygems_version: 3.4.20
|
55
|
+
signing_key:
|
53
56
|
specification_version: 4
|
54
57
|
summary: 'Refer to any Plate object or class by using the URI syntax: plateid://Group/Class/id'
|
55
58
|
test_files: []
|