plate_id 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 181a22aff751916e466a2a130eba6962b573866c6af2ec27eda43133a1560f4d
4
- data.tar.gz: f2ebaa9a10793b74b30aa4b6add79513c76099a675f96cb736f960d319c3ed5f
3
+ metadata.gz: adf5abc029fc6ad7fbdab71a5fd2f933d1dabc8b24e87931fb6122a2b03269d3
4
+ data.tar.gz: 57c472817a704de57ec1eb5227ce231b6bdee8c16bc93c782cde4959c87f7579
5
5
  SHA512:
6
- metadata.gz: 35e1344db5692a9ff86b5d53919bfcd79a574465518ab2d06245026b1e692a30d4675c02bec1d61b62df760501830d6554d1d6efa38fd58da516156950ba6eb7
7
- data.tar.gz: 01a1f5577e469b07722d64f44e61a3d12b33f8776fe0f31edf82d1c925c1d7c50c7b115e756c515e8a1a0d35b25446f383d6f92b474ae692352b4f95898cc7b6
6
+ metadata.gz: be634f68e2d205e453b1445adcdb722187a3641356399d516b30e72c1d00609a6a22f760f2e15f5d19c3d82c730a65126607d7a9ee65cb8711ab0f0904058e2d
7
+ data.tar.gz: f86089d0089d685f4270722421014d7cbe5cdfa7132accefc11e6473a3e2e2bc32ac9b9d7086c66e7c4b2db0b58c55741ce985db7a007d102503aaad5a3b5c37
data/lib/plate_id.rb CHANGED
@@ -33,6 +33,10 @@ class PlateID
33
33
  uri.id
34
34
  end
35
35
 
36
+ def id=(id)
37
+ uri.id = id
38
+ end
39
+
36
40
  def to_s
37
41
  uri.to_s
38
42
  end
data/lib/uri/plate_id.rb CHANGED
@@ -9,6 +9,8 @@ module URI
9
9
  #
10
10
  # The URI format looks like "plateid://group_name/base_class/id".
11
11
 
12
+ attr_writer :id
13
+
12
14
  MAPPING = {
13
15
  "Site" => { host: "Base", base_class: "Site" },
14
16
  "Ngn::Attachment" => { host: "Base", base_class: "Attachment" },
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.2"
5
+ spec.version = "0.0.3"
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.2
4
+ version: 0.0.3
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-02-17 00:00:00.000000000 Z
11
+ date: 2021-02-24 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.