urbanairship 10.0.2 → 10.0.3

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: 599f8e6c8b0eb1a8c50a9e9c397ccfa8e47e86e0eab9b9bfe35e0987ae1cef72
4
- data.tar.gz: 070e8a804a7bdaa4dd0d052598f7e747463d937a2f2a755a6bebe95f403fb37b
3
+ metadata.gz: d761534806908577acf807f6be5526c2ca79cfacc274c078de65327d36a1621d
4
+ data.tar.gz: 5379e02eb5b3b043dcdb2d7c576352ab7fb8c166e41b708c843d15b9f44c9cf9
5
5
  SHA512:
6
- metadata.gz: bd6fb64d29d4be182417382e46edb002544f8b301c1b46fce26dc88d35196fac76a0cc785848d310eaf9a69a2cd52a5d2d4fd02c0143fbb865cd2237629b86b4
7
- data.tar.gz: 69e41ed9a1bad0fa40d85653123b861651852996d0406e7c3b3b96b124da7156f2cf581b4e0e090904caf5d24c9338ee88c0fe3d58e583819aac948ba84e1b64
6
+ metadata.gz: 63fe618fc69d71d2574c8d367796933028d419ea843a08054cc6a961df6689ead9e0f5fd153893cfa31f8bc7f67424ed2bfab6510f2f2048b132a5280912e61f
7
+ data.tar.gz: 9a5ac11d38eb21558cf6bdfe03080218800c56718ec28aed25a6d2d1f36ca1185aa69abf8c701d971afa54e5b3ef03dd604a12da88787bbb7ea77d0a0d00e31e
@@ -15,8 +15,8 @@ Please include link to open issue if applicable.
15
15
 
16
16
  * I've tested for Ruby versions:
17
17
 
18
- - [ ] 3.3.7
19
- - [ ] 3.4.2
18
+ - [ ] 3.3
19
+ - [ ] 3.4
20
20
 
21
21
  ### Airship Contribution Agreement
22
22
  [Link here](https://docs.google.com/forms/d/e/1FAIpQLScErfiz-fXSPpVZ9r8Di2Tr2xDFxt5MgzUel0__9vqUgvko7Q/viewform)
@@ -9,7 +9,7 @@ jobs:
9
9
 
10
10
  strategy:
11
11
  matrix:
12
- ruby-version: [3.3.7, 3.4.2]
12
+ ruby-version: ['3.3', '3.4']
13
13
 
14
14
  steps:
15
15
  - uses: actions/checkout@v2
@@ -10,7 +10,7 @@ jobs:
10
10
 
11
11
  strategy:
12
12
  matrix:
13
- ruby-version: [3.3.7, 3.4.2]
13
+ ruby-version: ['3.3', '3.4']
14
14
 
15
15
  steps:
16
16
  - uses: actions/checkout@v2
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ ## 10.0.3
2
+
3
+ - Fixes UUID, device token, and custom event name validation to reject multi-line strings, closing a path to CVE-2026-132825 on unpatched Ruby versions
4
+ - Updates tested Ruby versions to the latest 3.3 and 3.4 patch releases
5
+
1
6
  ## 10.0.2
2
7
 
3
8
  - Updates JWT dependency to < 4.0
data/README.rst CHANGED
@@ -13,8 +13,8 @@ Requirements
13
13
 
14
14
  We officially support the following Ruby versions::
15
15
 
16
- 3.3.7
17
- 3.4.2
16
+ 3.3
17
+ 3.4
18
18
 
19
19
  Newer 3.x versions should work as well.
20
20
 
@@ -71,7 +71,7 @@ module Urbanairship
71
71
  # Validators
72
72
  # ------------------------------------------------------------------------
73
73
 
74
- NAME_REGEX = /^[a-z0-9_\-]+$/
74
+ NAME_REGEX = /\A[a-z0-9_\-]+\z/
75
75
  def validates_name_format(name)
76
76
  return if name =~ NAME_REGEX
77
77
 
@@ -6,8 +6,11 @@ module Urbanairship
6
6
  module Push
7
7
  module Audience
8
8
  include Urbanairship::Common
9
- UUID_PATTERN = /^\h{8}-\h{4}-\h{4}-\h{4}-\h{12}$/
10
- DEVICE_TOKEN_PATTERN = /^\h{64}$/
9
+ # \A and \Z anchor the whole string; ^ and $ match per line, which let
10
+ # multi-line input past validation. \Z still tolerates one trailing
11
+ # newline, which the callers strip.
12
+ UUID_PATTERN = /\A\h{8}-\h{4}-\h{4}-\h{4}-\h{12}\Z/
13
+ DEVICE_TOKEN_PATTERN = /\A\h{64}\Z/
11
14
  DATE_TERMS = %i(minutes hours days weeks months years)
12
15
 
13
16
 
@@ -1,3 +1,3 @@
1
1
  module Urbanairship
2
- VERSION = '10.0.2'
2
+ VERSION = '10.0.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: urbanairship
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.0.2
4
+ version: 10.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Airship