vng 1.4.0 → 1.4.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: 7d0e9b73d6daf01fecd5b989986337da1a29c1d95980d6f13fcb67f1a63b0511
4
- data.tar.gz: f08205f3dbb85321b59811724f7795e85896e89b5f6709c1570b5ec80aeec591
3
+ metadata.gz: 97dee090c0490985cac6754f957d7831adeb992c63cbc8c83ffcb3ac89c8b3d3
4
+ data.tar.gz: 7b118838299f97868bf4b3f12302a4fd91d3d97ec2b687cb367b699b094638e3
5
5
  SHA512:
6
- metadata.gz: d60605d76c893a885144b8f17fbd69078f88134ec3603dca89aedeca9821a09a9defaebf7698835676e641054e9f694d0801d4042178c26b1dbb7d2bf2f48882
7
- data.tar.gz: b3d5d51fe500345f85d449c6794d3e59ea8cbf4a8d5d54d77a1ff612ae76772acf96ab042d4837a2c586c3244103b244243c43740634eecbc4baa56e78f051f1
6
+ metadata.gz: e1d5ce478a0d0a9d4349a3aabb1637e198d7e43cd2ff9cbb31cebbcad38cfffeccfa1ba323936f38f87120d58c04d536e4522db1f19300def4cc601fab336b63
7
+ data.tar.gz: 481bba75105401c09a756ceef6548e37c3f3487b62ea9160241d24d2eedb6df64647c5e64aa1ddf1b6eac79f1a062de37030db7cd9d34c12d3e3011d95a6da0b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased] -
2
2
 
3
+ ## [1.4.1] - 2024-11-22
4
+
5
+ - Return more routes and availabilities in MockRequest
6
+
3
7
  ## [1.4] - 2024-11-22
4
8
 
5
9
  - Change Availability#route_id from string to integer
@@ -23,7 +23,7 @@ module Vng
23
23
  @query = options.fetch :query, {}
24
24
  end
25
25
 
26
- ROUTE_ID = 1630
26
+ AVAILABLE_ROUTE_ID = 1630
27
27
  @@logged_out = false
28
28
 
29
29
  # Sends the request and returns the body parsed from the JSON response.
@@ -65,10 +65,12 @@ module Vng
65
65
  { "Ids"=>{ "franchiseID"=>"172" } }
66
66
  elsif @body[:method] == '2'
67
67
  { "Ids"=>{ "lockID"=>"1406328" } }
68
+ elsif @body[:dateStart] == 2110061220 # 11/12/2036
69
+ { "Availability"=> [] }
68
70
  else
69
71
  { "Availability"=> [
70
- { "dayID"=>"20281119", "routeID"=>"#{ROUTE_ID}", "startTime"=>"1080" },
71
- { "dayID"=>"20281119", "routeID"=>"#{ROUTE_ID}", "startTime"=>"1110" },
72
+ { "dayID"=>"20281119", "routeID"=>"#{AVAILABLE_ROUTE_ID}", "startTime"=>"1080" },
73
+ { "dayID"=>"20281119", "routeID"=>"#{AVAILABLE_ROUTE_ID}", "startTime"=>"1110" },
72
74
  ] }
73
75
  end
74
76
  when '/api/v1/resources/breeds/'
@@ -113,8 +115,9 @@ module Vng
113
115
  end
114
116
  when '/api/v1/resources/Routes/'
115
117
  {"Routes" => [
116
- {"routeID" => ROUTE_ID, "routeName" => "Route 1", "isActive" => true},
117
- {"routeID" => 2, "routeName" => "Inactive", "isActive" => false},
118
+ {"routeID" => AVAILABLE_ROUTE_ID, "routeName" => "Route 1", "isActive" => true},
119
+ {"routeID" => 2, "routeName" => "Route 2", "isActive" => true},
120
+ {"routeID" => 3, "routeName" => "Route 3 (Inactive)", "isActive" => false},
118
121
  ]}
119
122
  when '/api/v1/data/WorkOrders/'
120
123
  { "WorkOrder"=>{ "objectID"=>"4138030" } }
data/lib/vng/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Vng
2
- VERSION = '1.4.0'
2
+ VERSION = '1.4.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vng
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - claudiob
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-11-22 00:00:00.000000000 Z
11
+ date: 2024-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simplecov
@@ -111,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  - !ruby/object:Gem::Version
112
112
  version: '0'
113
113
  requirements: []
114
- rubygems_version: 3.5.16
114
+ rubygems_version: 3.5.23
115
115
  signing_key:
116
116
  specification_version: 4
117
117
  summary: A Ruby client for the Vonigo API.