vng 1.4.2 → 1.4.3
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/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/lib/vng/mock_request.rb +9 -5
- 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: 12b570e82c375b23a5e586a1e7fd65aca9581bfa9371d7d028b6f2bf328708d2
|
|
4
|
+
data.tar.gz: 2bb7fd4f3d25006a00b935f3a5fd56b079f5916812cfd11c32a0fe98ad2c45a0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 32d92b671d2073a771735b946215e6948dd2e3fa64818611e12e558e9bf7076a04248fe444139f43b0065c25e8d955353b9c8c79e4778b6ecde4f978fa7f3683
|
|
7
|
+
data.tar.gz: d133ebbc81c04bdef68270a01d76cde8fb10a160eefd01298df53ef89c4441f1305a3c7eb8304c2fda434033df05b84f2adc263778c045063cfe4ee29be9775f
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -23,7 +23,7 @@ Vng::Location.create address:, city:, zip:, state: state, client_id:
|
|
|
23
23
|
Vng::Breed.all
|
|
24
24
|
Vng::Asset.create name:, weight:, breed_option_id:, client_id:
|
|
25
25
|
Vng::PriceItem.where location_id:, asset_id:
|
|
26
|
-
Vng::Availability.where
|
|
26
|
+
Vng::Availability.where location_id:, duration:, from_time:, to_time:
|
|
27
27
|
Vng::Lock.create date:, duration: location_id:
|
|
28
28
|
Vng::WorkOrder.create lock_id:, client_id:, contact_id:, location_id:, duration:, summary:, line_items:
|
|
29
29
|
Vng::Case.create client_id:, summary:, comments:
|
data/lib/vng/mock_request.rb
CHANGED
|
@@ -76,11 +76,15 @@ module Vng
|
|
|
76
76
|
when '/api/v1/resources/breeds/'
|
|
77
77
|
{ "Breeds"=>[{ "breedID"=>2, "breed"=>"Bulldog", "species"=>"Dog", "optionID"=>303, "breedLowWeight"=>30, "breedHighWeight"=>50 }] }
|
|
78
78
|
when '/api/v1/data/Leads/'
|
|
79
|
-
|
|
80
|
-
{
|
|
81
|
-
|
|
82
|
-
{ "
|
|
83
|
-
|
|
79
|
+
if @body[:Fields].find{|field| field[:fieldID] == 1024}[:fieldValue] == 'invalid-phone'
|
|
80
|
+
raise Error.new '[{"fieldID"=>1024, "fieldName"=>"Phone # to Reach You", "errNo"=>-602, "errMsg"=>"Field data is in incorrect format."}]'
|
|
81
|
+
else
|
|
82
|
+
{ "Client"=>{ "objectID"=>"916347" }, "Fields"=> [
|
|
83
|
+
{ "fieldID"=>126, "fieldValue"=>"Vng Example" },
|
|
84
|
+
{ "fieldID"=>238, "fieldValue"=>"vng@example.com" },
|
|
85
|
+
{ "fieldID"=>1024, "fieldValue"=>"8648648640" },
|
|
86
|
+
] }
|
|
87
|
+
end
|
|
84
88
|
when '/api/v1/data/Contacts/'
|
|
85
89
|
{ "Contact"=>{ "objectID"=>"2201007" }, "Fields"=>[
|
|
86
90
|
{ "fieldID"=>127, "fieldValue"=>"Vng" },
|
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.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- claudiob
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-12-
|
|
11
|
+
date: 2024-12-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: simplecov
|