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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1e30fc65658e39f6b2d420929c6c5d068b6ee9cf470bf5ea9a528eb9cf8317c1
4
- data.tar.gz: 8c4a02b584b848d9f8276f4d881af29749e1b9d66be9fb9d7899ae58044a0bdc
3
+ metadata.gz: a6ce0b0cad5cb853e3e5214e65970c545164fa1408b2c4058b2a2779cd260272
4
+ data.tar.gz: 1063e5e8136262d5dedfc0ff7c89614e748478979e9afb0029f3b2bfb2dfcddb
5
5
  SHA512:
6
- metadata.gz: d8bc279eb2b127a38db39a4ab45fc8a580091f3e631eb24245f02d329581c0881e3c88793e84ba878513844f9bb89b788630029ab7e1e124d173f1772ba308bf
7
- data.tar.gz: 7cfe0f44c9a17c11352507ff308ff4a6495b02d3745d2b2ed71e04a712e3dddfd8d1578678321e34a61e29d605f2cc7d87c370fb6d982e2eb09581dcba77b13f
6
+ metadata.gz: 5c753679aa249858edec134385366a694c260a2f936f76735674e0163c94d18dcb4969cf63fb588d4c4598b078a59058c8469cb7814ac4662f5045ca074a1fd4
7
+ data.tar.gz: da16f5cfa736b8c96c8dda64cd06f97a0945739dd63e47527590a3cde44d2fe8cd20131bec8b7e1ecbc2181c2731c94f2b75b4cb1e9d276db76e93bda91f687a
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.0)
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
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,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
- return unless parts
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.0.14"
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.0.14
4
+ version: 0.1.1
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-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.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: []