plate_id 0.0.13 → 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 +35 -0
- data/Rakefile +0 -2
- data/lib/uri/plate_id.rb +10 -1
- data/plate_id.gemspec +2 -2
- metadata +7 -3
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
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
plate_id (0.1.0)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
diff-lcs (1.5.0)
|
10
|
+
rake (13.0.6)
|
11
|
+
rspec (3.11.0)
|
12
|
+
rspec-core (~> 3.11.0)
|
13
|
+
rspec-expectations (~> 3.11.0)
|
14
|
+
rspec-mocks (~> 3.11.0)
|
15
|
+
rspec-core (3.11.0)
|
16
|
+
rspec-support (~> 3.11.0)
|
17
|
+
rspec-expectations (3.11.0)
|
18
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
19
|
+
rspec-support (~> 3.11.0)
|
20
|
+
rspec-mocks (3.11.1)
|
21
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
22
|
+
rspec-support (~> 3.11.0)
|
23
|
+
rspec-support (3.11.0)
|
24
|
+
|
25
|
+
PLATFORMS
|
26
|
+
ruby
|
27
|
+
x86_64-linux
|
28
|
+
|
29
|
+
DEPENDENCIES
|
30
|
+
plate_id!
|
31
|
+
rake (~> 13.0)
|
32
|
+
rspec (~> 3.0)
|
33
|
+
|
34
|
+
BUNDLED WITH
|
35
|
+
2.3.4
|
data/Rakefile
CHANGED
data/lib/uri/plate_id.rb
CHANGED
@@ -42,10 +42,18 @@ module URI
|
|
42
42
|
"Ngn::ContentModel::TrayType" => { host: "ContentModel", base_class: "TrayType" },
|
43
43
|
"Ngn::ContentModel::AuthenticationType" => { host: "ContentModel", base_class: "AuthenticationType" },
|
44
44
|
|
45
|
+
"Ngn::ContentModel::ContentFieldDefinition" => { host: "ContentModel", base_class: "ContentFieldDefinition" },
|
46
|
+
"Ngn::ContentModel::ContentFieldDefinitionGroup" => { host: "ContentModel", base_class: "ContentFieldDefinitionGroup" },
|
47
|
+
"Ngn::ContentModel::ContentFieldDefinitionGroupAssignment" => { host: "ContentModel", base_class: "ContentFieldDefinitionGroupAssignment" },
|
48
|
+
|
45
49
|
"Ngn::Theming::Theme" => { host: "Theming", base_class: "Theme" },
|
46
50
|
"Ngn::Theming::ThemeFile" => { host: "Theming", base_class: "ThemeFile" },
|
47
51
|
"Ngn::Theming::Prerender" => { host: "Theming", base_class: "Prerender" },
|
48
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
|
+
|
49
57
|
"Org::Auth::User" => { host: "Auth", base_class: "User" },
|
50
58
|
"Api::Integration" => { host: "Auth", base_class: "ApiIntegration" },
|
51
59
|
|
@@ -96,7 +104,7 @@ module URI
|
|
96
104
|
return unless comps
|
97
105
|
|
98
106
|
parts = MAPPING[comps[:model_name]].dup
|
99
|
-
|
107
|
+
raise "There is no PlateID definition for this class: #{comps[:model_name]}" unless parts
|
100
108
|
|
101
109
|
parts[:scheme] = comps[:scheme]
|
102
110
|
parts[:id] = comps[:model_id]
|
@@ -175,5 +183,6 @@ module URI
|
|
175
183
|
end
|
176
184
|
end
|
177
185
|
|
186
|
+
@@schemes ||= {}
|
178
187
|
@@schemes["PlateID"] = PlateID
|
179
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
|
+
- David Kortleven
|
9
|
+
- Elena Freudenberg
|
8
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,7 +22,9 @@ extra_rdoc_files: []
|
|
20
22
|
files:
|
21
23
|
- ".gitignore"
|
22
24
|
- ".rspec"
|
25
|
+
- ".ruby-version"
|
23
26
|
- Gemfile
|
27
|
+
- Gemfile.lock
|
24
28
|
- LICENSE.txt
|
25
29
|
- Rakefile
|
26
30
|
- bin/console
|
@@ -47,7 +51,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
47
51
|
- !ruby/object:Gem::Version
|
48
52
|
version: '0'
|
49
53
|
requirements: []
|
50
|
-
rubygems_version: 3.
|
54
|
+
rubygems_version: 3.4.20
|
51
55
|
signing_key:
|
52
56
|
specification_version: 4
|
53
57
|
summary: 'Refer to any Plate object or class by using the URI syntax: plateid://Group/Class/id'
|