vng 0.1.16 → 0.1.18

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: 3721a9dbb46d865be94b25ba536bb21379e60f42e384a63c57b069f59bc1b548
4
- data.tar.gz: 1422d5704c9b4d65268384132b841673f6a000ca3ee5622faf8ac5639d8dffed
3
+ metadata.gz: a5a0ac30382d544a23cf237ceaed3b8d1ca72a91c1886126d007475bf8b5ee2b
4
+ data.tar.gz: 62843a64cc58e6b21788d5fc87969fad1335e89740cd564247920df83620058c
5
5
  SHA512:
6
- metadata.gz: 21df6673d3c1aa2adeb86382fa70f5cbe000c02c815bf22ab1891040acf48466d5a28720c1c0fea2ea0d1441a044c2b173173a6d47f1e4ce053dcaa6a280128c
7
- data.tar.gz: f1b6877ab9afad5f43b10cd25a0d3b27513dad31f3e4edf57bdf914b4ec28611986649cdd4c7f6977307cc2d2964931bd3775d7ef06d8872d24fe6e328bb2fad
6
+ metadata.gz: e516c0ab8fa41d444e923227ac3c2c4393a1451710e8ff10ac02dd2444c67c0423b3125471b290aa6b68b8a5e63c618c323df8ba41272e48361bf8e9c66151c2
7
+ data.tar.gz: 8b236c7ad8f41302f1d5ff6de2ed222e1780217942c4bbdfdc441ecc3cbf2d43ed4ed8014946a7b200eef9e612affd77bfff4d3358211905eef3dd6caae8dd15
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.18] - 2024-11-19
4
+
5
+ - Ensure a plus sign in the email is not translated into a space
6
+
7
+ ## [0.1.17] - 2024-11-17
8
+
9
+ - Require at least 30 minutes for slot
10
+
3
11
  ## [0.1.16] - 2024-11-17
4
12
 
5
13
  - Require at least 30 minutes for availability
data/lib/vng/contact.rb CHANGED
@@ -22,7 +22,7 @@ module Vng
22
22
  Fields: [
23
23
  {fieldID: 127, fieldValue: first_name},
24
24
  {fieldID: 128, fieldValue: last_name},
25
- {fieldID: 97, fieldValue: email},
25
+ {fieldID: 97, fieldValue: URI.encode_uri_component(email)},
26
26
  {fieldID: 96, fieldValue: phone},
27
27
  ]
28
28
  }
data/lib/vng/lead.rb CHANGED
@@ -20,7 +20,7 @@ module Vng
20
20
  Fields: [
21
21
  {fieldID: 121, optionID: '59'},
22
22
  {fieldID: 126, fieldValue: name},
23
- {fieldID: 238, fieldValue: email},
23
+ {fieldID: 238, fieldValue: URI.encode_uri_component(email)},
24
24
  {fieldID: 1024, fieldValue: phone},
25
25
  ]
26
26
  }
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.16'
2
+ VERSION = '0.1.18'
3
3
  end
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: 0.1.16
4
+ version: 0.1.18
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-18 00:00:00.000000000 Z
11
+ date: 2024-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simplecov