laneful-ruby 1.3.0 → 1.3.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae0fefd1de5f15988a54f6d158b70bb9037a7879d344ce217066347bec84dbd0
4
- data.tar.gz: 5c4f9702e0fa83de52b7bbe040700817bbcabeabed1d753951cdaed0a6ea831f
3
+ metadata.gz: 3ebb676795d8c7c6b9f26ed1387e0420234f835ab57987deac701ab5cb1bef46
4
+ data.tar.gz: f75807a039ecf0b68ae2ad01ad6d6c613dc5986bec1543cdcda811ee270186f1
5
5
  SHA512:
6
- metadata.gz: bb8596d2eccaac4b25963ef3bfa5dc0eff89bd3884d5a44fa61b10892aad841d342d06f303918e68e3a49cf17509519fa3bcf3a577c2672cb2cf4c82dbb8182c
7
- data.tar.gz: 7012812bed4f9c9c217d1aa6299c76eeb43c29cc8c4effe3cf0b78aaae6340992483b05ed58e1e975d95e98f11029f76f813e0c0775345150062a3dab15dcc8c
6
+ metadata.gz: ffe6cbc2e0438a8100b61d8a206d088161617d1664126ec7bfe646d2523a033ec580055011cb7b17de4bea39a4e61ce152dda004dabd2d9f036a7ca3c970b5da
7
+ data.tar.gz: fd6c6e8c27c2b712fcae84ab1c424598949259c7c1a13fb80bbb40466e8d67e21d7824d20c7da5c9af0c480d1e756b8e7f7a55fb9b6e0fda8a8933a4ec2f61a0
@@ -421,9 +421,10 @@ module Laneful
421
421
  if webhook_data
422
422
  raise ValidationException, 'Webhook data cannot have more than 20 keys' if webhook_data.size > 20
423
423
 
424
+ # The send API counts UTF-8 bytes, so "é" counts as 2.
424
425
  webhook_data.each do |key, value|
425
- raise ValidationException, 'Webhook data keys cannot exceed 50 characters' if key.to_s.length > 50
426
- raise ValidationException, 'Webhook data values cannot exceed 100 characters' if value.to_s.length > 100
426
+ raise ValidationException, 'Webhook data keys cannot exceed 50 bytes (UTF-8)' if key.to_s.bytesize > 50
427
+ raise ValidationException, 'Webhook data values cannot exceed 100 bytes (UTF-8)' if value.to_s.bytesize > 100
427
428
  end
428
429
  end
429
430
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Laneful
4
- VERSION = '1.3.0'
4
+ VERSION = '1.3.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: laneful-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Laneful Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-10-14 00:00:00.000000000 Z
11
+ date: 2026-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty