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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e2467bc86d0b4ee3b8938c6374c1b4dfa5a92574ccd27e9187c5a5951566ca8
4
- data.tar.gz: 9f4f82420b1d26f627c5c7401d35ebc09b16476e8ceb1cbdb808bf43cdbc4969
3
+ metadata.gz: 4f24251c31a635bac9aff04c0f4ae8027c9badf52acc0547f4dc463515b3eba7
4
+ data.tar.gz: dd7e0050d647a2782a551d9266c96ff73a9a6d3c9405dc2eecb921a6359e5aff
5
5
  SHA512:
6
- metadata.gz: 05be762decfb25ecf649a04c50f1378e8af18094c2c17f042d26d912cfcf9d0e162758b4b67243393984138ce95420af8a9e2457e4e0987f7d6dc27aa9ac5fbc
7
- data.tar.gz: c04f540762ac4f1d9dca63fa47c613a4dcd6d0b9f69f758d81d2c3d6a34bc0c0c712e62f96559ceaaf3a84cb3e70d1d64e89af4a8fe0f6828118a7d2894303db
6
+ metadata.gz: ee2da87f8c6c1806541476ccd752750c7320561c1010373fb7a9f679d41a321642adc6f3833b8dd04a142088a47b0ed6e9a3df03b8e34bd3c7cd0d8a2789f016
7
+ data.tar.gz: 8d862e3f9d1709a09a49dc8a2523afd5b61241a2068d73a64b2aa7db5e2d6c04d0402318877e21c7f15f96d5146c4e060b5a5085bb4236f99999012757684e8e
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::RFC2396_PARSER.escape` when composing the 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::RFC2396_PARSER.unescape(uri.user) if uri.user && !uri.user.empty?
262
- result[:password] = URI::RFC2396_PARSER.unescape(uri.password) if uri.password && !uri.password.empty?
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Valkey
4
- VERSION = "1.0.0-rc6"
4
+ VERSION = "1.0.0"
5
5
  end
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::RFC2396_PARSER.escape`'s default set
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::RFC2396_PARSER.escape(options[:username], userinfo_unsafe)
99
+ uri_parts << URI::DEFAULT_PARSER.escape(options[:username], userinfo_unsafe)
100
100
  uri_parts << ":"
101
- uri_parts << URI::RFC2396_PARSER.escape(options[:password], userinfo_unsafe)
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::RFC2396_PARSER.escape(options[:password], userinfo_unsafe)
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.pre.rc6
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-12 00:00:00.000000000 Z
11
+ date: 2026-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi