vng 3.3.0 → 3.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +2 -0
- data/lib/vng/mock_request.rb +3 -3
- data/lib/vng/route.rb +5 -3
- data/lib/vng/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: 7c12edbb4518fc769872a46bb3060e6e88d8850c18e0c0eec6b9aea157bfcaa8
|
4
|
+
data.tar.gz: 1bb1e134d2bf6b1ab736fd9c342f594fd826b1de7b116f114113f383fc33d157
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61b780b5a55aa0c4cc87ee51ca4c9c9b1d850e4fb68bfae22939d95d4c5aef7315a79775c1be3ce37121ffbaff4400166693ec433eedd7a4ef6346d14766d120
|
7
|
+
data.tar.gz: 6f87f2b80d1d52c9aa7711556bc1ae211f2b330b2e612cff7d2f450b803dc21838c1880cbc255609f94ecf4bed1f63df8f783d5a0c5f18ab56be43fc8f1707ea
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -19,6 +19,8 @@ Vng::ServiceType.where zip:
|
|
19
19
|
Vng::SecurityToken.create host:, usename:, password:
|
20
20
|
Vng::Lead.create email:, phone:, name: full_name
|
21
21
|
Vng::Contact.create first_name:, last_name:, email:, phone:, client_id:
|
22
|
+
Vng::Contact.edited_since timestamp
|
23
|
+
Vng::Client.find contact_id
|
22
24
|
Vng::Location.create address:, city:, zip:, state: state, client_id:
|
23
25
|
Vng::Breed.all
|
24
26
|
Vng::Asset.create name:, weight:, breed_option_id:, client_id:
|
data/lib/vng/mock_request.rb
CHANGED
@@ -261,9 +261,9 @@ module Vng
|
|
261
261
|
end
|
262
262
|
when '/api/v1/resources/Routes/'
|
263
263
|
{"Routes" => [
|
264
|
-
{"routeID" => AVAILABLE_ROUTE_ID, "routeName" => "Route 1", "isActive" => true},
|
265
|
-
{"routeID" => 2, "routeName" => "Route 2", "isActive" => true},
|
266
|
-
{"routeID" => 3, "routeName" => "Route 3 (Inactive)", "isActive" => false},
|
264
|
+
{"routeID" => AVAILABLE_ROUTE_ID, "routeName" => "Route 1", "isActive" => true, "routeTypeID" => 106},
|
265
|
+
{"routeID" => 2, "routeName" => "Route 2", "isActive" => true, "routeTypeID" => 107},
|
266
|
+
{"routeID" => 3, "routeName" => "Route 3 (Inactive)", "isActive" => false, "routeTypeID" => 1},
|
267
267
|
]}
|
268
268
|
when '/api/v1/data/WorkOrders/'
|
269
269
|
if @body[:pageNo].eql? 1
|
data/lib/vng/route.rb
CHANGED
@@ -5,11 +5,12 @@ module Vng
|
|
5
5
|
class Route < Resource
|
6
6
|
PATH = '/api/v1/resources/Routes/'
|
7
7
|
|
8
|
-
attr_reader :id, :name
|
8
|
+
attr_reader :id, :name, :type_id
|
9
9
|
|
10
|
-
def initialize(id:, name:)
|
10
|
+
def initialize(id:, name:, type_id:)
|
11
11
|
@id = id
|
12
12
|
@name = name
|
13
|
+
@type_id = type_id
|
13
14
|
end
|
14
15
|
|
15
16
|
def self.all
|
@@ -20,8 +21,9 @@ module Vng
|
|
20
21
|
end.map do |body|
|
21
22
|
id = body['routeID']
|
22
23
|
name = body['routeName']
|
24
|
+
type_id = body['routeTypeID']
|
23
25
|
|
24
|
-
new id: id, name: name
|
26
|
+
new id: id, name: name, type_id: type_id
|
25
27
|
end
|
26
28
|
end
|
27
29
|
end
|
data/lib/vng/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vng
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- claudiob
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-01-
|
10
|
+
date: 2025-01-22 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: simplecov
|