vng 0.1.15 → 0.1.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/lib/vng/availability.rb +1 -1
- data/lib/vng/lock.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: 151dfd76cad24aec1874237ce91d55347fb02a80514775184d36dd13982b0cf5
|
4
|
+
data.tar.gz: 71044094cc3ff08ba6293b76b6c90a4396b45e25595dc33701260a47faf046af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85a83c23434b23423675b35cae76107db4cbafc6d3c6511515c40a25b0eab74f0adea860e8590fdb1bb208095988b5a49d86e9c33f358500b087edcccf163174
|
7
|
+
data.tar.gz: 94e0965205d433bae8bf4db0ab0ff3ea9e777c8b15f55f4435d5baa7cae9adc121d5a9e02eceb424b03b978e5bb12c6377f2b39d1c7a4486c440b7075447f7e7
|
data/CHANGELOG.md
CHANGED
data/lib/vng/availability.rb
CHANGED
@@ -18,7 +18,7 @@ module Vng
|
|
18
18
|
method: '0',
|
19
19
|
serviceTypeID: '14', # only return items of serviceType 'Pet Grooming'
|
20
20
|
locationID: location_id,
|
21
|
-
duration: [duration.to_i, 30].
|
21
|
+
duration: [duration.to_i, 30].max, # or 'duration is not provided'
|
22
22
|
dateStart: from_time.to_i,
|
23
23
|
dateEnd: to_time.to_i,
|
24
24
|
}
|
data/lib/vng/lock.rb
CHANGED
@@ -15,7 +15,7 @@ module Vng
|
|
15
15
|
body = {
|
16
16
|
method: '2',
|
17
17
|
serviceTypeID: '14', # only create items of serviceType 'Pet Grooming'
|
18
|
-
duration: duration.to_i,
|
18
|
+
duration: [duration.to_i, 30].max, # or 'duration is not supplied'
|
19
19
|
locationID: location_id,
|
20
20
|
dayID: date.strftime('%Y%m%d'),
|
21
21
|
routeID: route_id,
|
data/lib/vng/version.rb
CHANGED