vng 1.4.1 → 1.4.2
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 +8 -0
- data/lib/vng/mock_request.rb +1 -1
- data/lib/vng/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0781c7c52c5481bf8199382df9e8567571e04e101ebefe00d313827009967954'
|
4
|
+
data.tar.gz: 9379c31ceff7d05ead68cbcd844c04ef5b44f6543c16852dbf0412f417c46812
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa6f6680041cd012ae6c6994c12e4b112ec6263cd3afad29efc64e5df40efa7c64a380ad745a7ec07150b02d7f62786f6ee3548df2ead54d5e9ce60f33024f53
|
7
|
+
data.tar.gz: 675eec6b8705c5516db5e8c140e5149f233a5114bf19d3639f4f5c3e129ce491b8e68ab80b2605adbed9d7a38806e1654bfa34a957ab817b1f3060c6efa96378
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -62,6 +62,14 @@ Vng.configure do |config|
|
|
62
62
|
end
|
63
63
|
```
|
64
64
|
|
65
|
+
Mocking the Vonigo API
|
66
|
+
======================
|
67
|
+
|
68
|
+
Sometimes you want to mock the API requests to Vonigo and obtain results that
|
69
|
+
are equivalent to the original API calls. This can be useful to test your flow
|
70
|
+
without hitting the API.
|
71
|
+
|
72
|
+
|
65
73
|
Configuring with environment variables
|
66
74
|
--------------------------------------
|
67
75
|
|
data/lib/vng/mock_request.rb
CHANGED
@@ -65,7 +65,7 @@ module Vng
|
|
65
65
|
{ "Ids"=>{ "franchiseID"=>"172" } }
|
66
66
|
elsif @body[:method] == '2'
|
67
67
|
{ "Ids"=>{ "lockID"=>"1406328" } }
|
68
|
-
elsif @body[:dateStart] ==
|
68
|
+
elsif @body[:dateStart] == 2110060800 # 11/12/2036
|
69
69
|
{ "Availability"=> [] }
|
70
70
|
else
|
71
71
|
{ "Availability"=> [
|
data/lib/vng/version.rb
CHANGED