plate_id 0.0.14 → 0.1.2

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: 1e30fc65658e39f6b2d420929c6c5d068b6ee9cf470bf5ea9a528eb9cf8317c1
4
- data.tar.gz: 8c4a02b584b848d9f8276f4d881af29749e1b9d66be9fb9d7899ae58044a0bdc
3
+ metadata.gz: 3cb295266e73472893ff42991ef71040177953618ec7f2d61cd5d22d4b3d0844
4
+ data.tar.gz: f61de1f752c0a5b19ad71f801dbb07c398cd9981b9591473eda9aff1034005ab
5
5
  SHA512:
6
- metadata.gz: d8bc279eb2b127a38db39a4ab45fc8a580091f3e631eb24245f02d329581c0881e3c88793e84ba878513844f9bb89b788630029ab7e1e124d173f1772ba308bf
7
- data.tar.gz: 7cfe0f44c9a17c11352507ff308ff4a6495b02d3745d2b2ed71e04a712e3dddfd8d1578678321e34a61e29d605f2cc7d87c370fb6d982e2eb09581dcba77b13f
6
+ metadata.gz: ff2bc9c53e87be52afd9f60c503b46c3c05fac40db34b4fa21b6cd77420c0a5dadb689799924cb1be35690eb24b004a146e5d5a49aea947abdf1be9ddcf5700f
7
+ data.tar.gz: 7954caf12c489f6a9c876ff3ae3347bda4d6d4c29750437565e3b21c205d7f37a293e9dd452f661e5fb0519aa3a38a38a1b5f5a65df716c190073964c7efb357
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.7.7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- plate_id (0.0.14)
4
+ plate_id (0.1.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -23,6 +23,7 @@ GEM
23
23
  rspec-support (3.11.0)
24
24
 
25
25
  PLATFORMS
26
+ ruby
26
27
  x86_64-linux
27
28
 
28
29
  DEPENDENCIES
@@ -31,4 +32,4 @@ DEPENDENCIES
31
32
  rspec (~> 3.0)
32
33
 
33
34
  BUNDLED WITH
34
- 2.3.4
35
+ 2.4.20
data/Rakefile CHANGED
@@ -5,6 +5,4 @@ require "rspec/core/rake_task"
5
5
 
6
6
  RSpec::Core::RakeTask.new(:spec)
7
7
 
8
- RuboCop::RakeTask.new
9
-
10
8
  task default: %i[spec]
data/lib/uri/plate_id.rb CHANGED
@@ -50,6 +50,11 @@ 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
+ "Ngn::MultiContent::MultiContentRuleAssignment" => { host: "MultiContent", base_class: "MultiContentRuleAssignment" },
57
+
53
58
  "Org::Auth::User" => { host: "Auth", base_class: "User" },
54
59
  "Api::Integration" => { host: "Auth", base_class: "ApiIntegration" },
55
60
 
@@ -100,7 +105,7 @@ module URI
100
105
  return unless comps
101
106
 
102
107
  parts = MAPPING[comps[:model_name]].dup
103
- return unless parts
108
+ raise "There is no PlateID definition for this class: #{comps[:model_name]}" unless parts
104
109
 
105
110
  parts[:scheme] = comps[:scheme]
106
111
  parts[:id] = comps[:model_id]
@@ -179,5 +184,6 @@ module URI
179
184
  end
180
185
  end
181
186
 
187
+ @@schemes ||= {}
182
188
  @@schemes["PlateID"] = PlateID
183
189
  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.0.14"
6
- spec.authors = ["Kobus Post"]
5
+ spec.version = "0.1.2"
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.0.14
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kobus Post
8
- autorequire:
8
+ - David Kortleven
9
+ - Elena Freudenberg
10
+ autorequire:
9
11
  bindir: exe
10
12
  cert_chain: []
11
- date: 2022-12-22 00:00:00.000000000 Z
13
+ date: 2023-10-30 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.3.4
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: []