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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/vng/mock_request.rb +8 -5
- data/lib/vng/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97dee090c0490985cac6754f957d7831adeb992c63cbc8c83ffcb3ac89c8b3d3
|
4
|
+
data.tar.gz: 7b118838299f97868bf4b3f12302a4fd91d3d97ec2b687cb367b699b094638e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1d5ce478a0d0a9d4349a3aabb1637e198d7e43cd2ff9cbb31cebbcad38cfffeccfa1ba323936f38f87120d58c04d536e4522db1f19300def4cc601fab336b63
|
7
|
+
data.tar.gz: 481bba75105401c09a756ceef6548e37c3f3487b62ea9160241d24d2eedb6df64647c5e64aa1ddf1b6eac79f1a062de37030db7cd9d34c12d3e3011d95a6da0b
|
data/CHANGELOG.md
CHANGED
data/lib/vng/mock_request.rb
CHANGED
@@ -23,7 +23,7 @@ module Vng
|
|
23
23
|
@query = options.fetch :query, {}
|
24
24
|
end
|
25
25
|
|
26
|
-
|
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"=>"#{
|
71
|
-
{ "dayID"=>"20281119", "routeID"=>"#{
|
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" =>
|
117
|
-
{"routeID" => 2, "routeName" => "
|
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
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.
|
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
|
+
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.
|
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.
|