synsbasen_api 1.0.3 → 1.0.4
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 +4 -4
- data/lib/synsbasen_api/resources/vehicle.rb +4 -1
- data/lib/synsbasen_api/version.rb +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: 99ac1f53e97c96f3f21e0ad5b3144df4c2afbaaee5b8af8a42e04e24d23e6b8c
|
4
|
+
data.tar.gz: 6196d8929394e6b7a6271783ac34811f643a825c9db5852ef43fbba657ca6c70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8add0e93e0efe3572e05d2704f90b5b45ae4b55091f5b609a9851fcb5645b4c20916691cf81e82d64b110dbfc5789e1b40d763044ff056a1774543ed1db5041e
|
7
|
+
data.tar.gz: 0405b1d7b20293f55251956d6e70af0ef6450709c086c1e20b6dfdc9cea4ff107354b9a0967cf6dc18b9efab981e239cd8be3ab7408a1db33c654879ce5b5aa8
|
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'cgi/escape'
|
4
|
+
|
3
5
|
module SynsbasenApi
|
4
6
|
# The `Vehicle` class provides methods for interacting with vehicle-related
|
5
7
|
# endpoints in the Synsbasen API. It extends the `Client` class.
|
@@ -20,7 +22,8 @@ module SynsbasenApi
|
|
20
22
|
# @return [ApiResponse] An instance of `ApiResponse` containing details
|
21
23
|
# of the specified vehicle.
|
22
24
|
def find_by_registration(registration, expand: [])
|
23
|
-
|
25
|
+
escaped_registration = CGI.escape(registration)
|
26
|
+
get("/v1/vehicles/registration/#{escaped_registration}", expand: expand)
|
24
27
|
end
|
25
28
|
|
26
29
|
# Retrieves information about a vehicle based on its VIN (Vehicle Identification Number).
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: synsbasen_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jimmy Poulsen
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2024-01-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|