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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d0040674685e7d8090bd5872e705ce17dd4fae6c16a4390522039719da756c39
4
- data.tar.gz: e78eeca80c62145b6e2c9f737b78b1cf971c6597d21fbce910a3981bb89a90c7
3
+ metadata.gz: 7c12edbb4518fc769872a46bb3060e6e88d8850c18e0c0eec6b9aea157bfcaa8
4
+ data.tar.gz: 1bb1e134d2bf6b1ab736fd9c342f594fd826b1de7b116f114113f383fc33d157
5
5
  SHA512:
6
- metadata.gz: 1235ebc7d60b12babbfe060ead7aa92905423d87939b48de7996567317ff4c3dbd16b218e803de22522a963fe52e1e22a186f99fe997998001ffb6b8dd778dce
7
- data.tar.gz: cf02b625c67a97bb01e670ff08f8026a7395531825db98bd958466d95a8736f23c16aa8cf7cd61122e3326e5d1a647a467484cf7a8925b37a11b8dbc43af45ab
6
+ metadata.gz: 61b780b5a55aa0c4cc87ee51ca4c9c9b1d850e4fb68bfae22939d95d4c5aef7315a79775c1be3ce37121ffbaff4400166693ec433eedd7a4ef6346d14766d120
7
+ data.tar.gz: 6f87f2b80d1d52c9aa7711556bc1ae211f2b330b2e612cff7d2f450b803dc21838c1880cbc255609f94ecf4bed1f63df8f783d5a0c5f18ab56be43fc8f1707ea
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [3.3.1] - 2025-01-22
2
+
3
+ - Add Route#type_id
4
+
1
5
  ## [3.3.0] - 2025-01-15
2
6
 
3
7
  - Add SystemObject.find_by(name:)
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:
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Vng
2
- VERSION = '3.3.0'
2
+ VERSION = '3.3.1'
3
3
  end
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.0
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-16 00:00:00.000000000 Z
10
+ date: 2025-01-22 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: simplecov