plate_id 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/plate_id.rb +2 -1
- data/lib/uri/plate_id.rb +4 -0
- data/plate_id.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a739c97b4695a5e4215733bf61da11d9a062f4efad404f6457f3af84297076d
|
4
|
+
data.tar.gz: 554eb95e24f95a830446d45c404677d47f86986d2d593aae9caa7f38be932e2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a74bde97760d74f9bb9ac4a172423eaec845a8c55cbe528154b6a130c968b02cb8e14124cfdff70f4d71cc259152450489c2290b7f57c8192634371891c8fac
|
7
|
+
data.tar.gz: 6a0022c025bd6916448f2bee27c9a372ab49e9e737d8a5c55fa0009359dcd35599d7743bc6d95f8acc5856264efa8f406d72146bfbe2372d46e01b43f3090004
|
data/lib/plate_id.rb
CHANGED
data/lib/uri/plate_id.rb
CHANGED
@@ -87,7 +87,11 @@ module URI
|
|
87
87
|
# )
|
88
88
|
def build(args)
|
89
89
|
comps = Util.make_components_hash(self, args)
|
90
|
+
return unless comps
|
91
|
+
|
90
92
|
parts = MAPPING[comps[:model_name]].dup
|
93
|
+
return unless parts
|
94
|
+
|
91
95
|
parts[:scheme] = comps[:scheme]
|
92
96
|
parts[:id] = comps[:model_id]
|
93
97
|
parts[:path] = "/#{parts[:base_class]}/#{CGI.escape(parts[:id].to_s)}"
|
data/plate_id.gemspec
CHANGED
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.
|
4
|
+
version: 0.0.7
|
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-
|
11
|
+
date: 2021-04-08 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.
|