valkey-glide-rb 1.0.0.pre.rc6 → 1.0.0
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 +4 -4
- data/lib/valkey/native/aarch64-apple-darwin/libglide_ffi.dylib +0 -0
- data/lib/valkey/native/aarch64-unknown-linux-gnu/libglide_ffi.so +0 -0
- data/lib/valkey/native/aarch64-unknown-linux-musl/libglide_ffi.so +0 -0
- data/lib/valkey/native/x86_64-unknown-linux-gnu/libglide_ffi.so +0 -0
- data/lib/valkey/native/x86_64-unknown-linux-musl/libglide_ffi.so +0 -0
- data/lib/valkey/utils.rb +3 -3
- data/lib/valkey/version.rb +1 -1
- data/lib/valkey.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4f24251c31a635bac9aff04c0f4ae8027c9badf52acc0547f4dc463515b3eba7
|
|
4
|
+
data.tar.gz: dd7e0050d647a2782a551d9266c96ff73a9a6d3c9405dc2eecb921a6359e5aff
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ee2da87f8c6c1806541476ccd752750c7320561c1010373fb7a9f679d41a321642adc6f3833b8dd04a142088a47b0ed6e9a3df03b8e34bd3c7cd0d8a2789f016
|
|
7
|
+
data.tar.gz: 8d862e3f9d1709a09a49dc8a2523afd5b61241a2068d73a64b2aa7db5e2d6c04d0402318877e21c7f15f96d5146c4e060b5a5085bb4236f99999012757684e8e
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/lib/valkey/utils.rb
CHANGED
|
@@ -255,11 +255,11 @@ class Valkey
|
|
|
255
255
|
|
|
256
256
|
# `URI.parse` returns userinfo *percent-encoded* (RFC 3986 §3.2.1); we
|
|
257
257
|
# want the raw credential value. Callers (`Valkey#initialize`) will
|
|
258
|
-
# re-encode with `URI::
|
|
258
|
+
# re-encode with `URI::DEFAULT_PARSER.escape` when composing the URI
|
|
259
259
|
# they hand to the FFI, so leaving the encoded form here would
|
|
260
260
|
# double-encode (`p%40ss` → `p%2540ss`). See valkey-glide/issues/6659.
|
|
261
|
-
result[:username] = URI::
|
|
262
|
-
result[:password] = URI::
|
|
261
|
+
result[:username] = URI::DEFAULT_PARSER.unescape(uri.user) if uri.user && !uri.user.empty?
|
|
262
|
+
result[:password] = URI::DEFAULT_PARSER.unescape(uri.password) if uri.password && !uri.password.empty?
|
|
263
263
|
|
|
264
264
|
result
|
|
265
265
|
end
|
data/lib/valkey/version.rb
CHANGED
data/lib/valkey.rb
CHANGED
|
@@ -90,19 +90,19 @@ class Valkey
|
|
|
90
90
|
#
|
|
91
91
|
# We pass an explicit `unsafe` regex — anything outside RFC 3986 §2.3
|
|
92
92
|
# "unreserved" (`ALPHA / DIGIT / - . _ ~`) plus the RFC 2396 "mark" chars
|
|
93
|
-
# (`! ~ * ' ( )`) — because `URI::
|
|
93
|
+
# (`! ~ * ' ( )`) — because `URI::DEFAULT_PARSER.escape`'s default set
|
|
94
94
|
# leaves `/` and `?` raw in userinfo, which the Rust `url` crate on the
|
|
95
95
|
# FFI side then rejects with "Invalid connection URI". Encoding more is
|
|
96
96
|
# always safe because the FFI decodes uniformly.
|
|
97
97
|
userinfo_unsafe = /[^\-_.!~*'()a-zA-Z0-9]/
|
|
98
98
|
if options[:username] && options[:password]
|
|
99
|
-
uri_parts << URI::
|
|
99
|
+
uri_parts << URI::DEFAULT_PARSER.escape(options[:username], userinfo_unsafe)
|
|
100
100
|
uri_parts << ":"
|
|
101
|
-
uri_parts << URI::
|
|
101
|
+
uri_parts << URI::DEFAULT_PARSER.escape(options[:password], userinfo_unsafe)
|
|
102
102
|
uri_parts << "@"
|
|
103
103
|
elsif options[:password]
|
|
104
104
|
uri_parts << ":"
|
|
105
|
-
uri_parts << URI::
|
|
105
|
+
uri_parts << URI::DEFAULT_PARSER.escape(options[:password], userinfo_unsafe)
|
|
106
106
|
uri_parts << "@"
|
|
107
107
|
end
|
|
108
108
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: valkey-glide-rb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.0
|
|
4
|
+
version: 1.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Valkey GLIDE Maintainers
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-08-
|
|
11
|
+
date: 2026-08-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ffi
|