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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 45be6a1ed824b8d412cc86c952369ef0dcf185dea10f6a38b47f4a48c7de9ec5
4
- data.tar.gz: 32593b8536d61a71093b236a3f6bf851f308a1bd4ae56853eeced0d81dac7569
3
+ metadata.gz: 151dfd76cad24aec1874237ce91d55347fb02a80514775184d36dd13982b0cf5
4
+ data.tar.gz: 71044094cc3ff08ba6293b76b6c90a4396b45e25595dc33701260a47faf046af
5
5
  SHA512:
6
- metadata.gz: d098e411909c4b37befb6de4b91c44f8d9747067207617965eb5a0f5ab9a86efad81042296fae8a6ea3132a57c7d60b94894df957e4a74cc52ba08b86f264216
7
- data.tar.gz: f5099a00b15c387d53a63d0fa3a9d116c68bac66af99a340a19804b6c980c327d1860f11687bfdd707d1787078df4f3c795e0d617ba8e5c4932614cbb2530aa8
6
+ metadata.gz: 85a83c23434b23423675b35cae76107db4cbafc6d3c6511515c40a25b0eab74f0adea860e8590fdb1bb208095988b5a49d86e9c33f358500b087edcccf163174
7
+ data.tar.gz: 94e0965205d433bae8bf4db0ab0ff3ea9e777c8b15f55f4435d5baa7cae9adc121d5a9e02eceb424b03b978e5bb12c6377f2b39d1c7a4486c440b7075447f7e7
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  ## [Unreleased]
2
2
 
3
- ## [0.1.15] - 2024-11-17
3
+ ## [0.1.17] - 2024-11-17
4
+
5
+ - Require at least 30 minutes for slot
6
+
7
+ ## [0.1.16] - 2024-11-17
4
8
 
5
9
  - Require at least 30 minutes for availability
6
10
 
@@ -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].min, # or 'duration is not provided'
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
@@ -1,3 +1,3 @@
1
1
  module Vng
2
- VERSION = '0.1.15'
2
+ VERSION = '0.1.17'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vng
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.15
4
+ version: 0.1.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - claudiob