valkey-objects 0.1.7 → 0.1.9

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: 01e5229bd508fec6e3a97e55d1dc84ca3e80bbce262eeb93acd7e72a6040bc33
4
- data.tar.gz: 669be360de85ad18b935cf072fbb0b93249425bb12953526f5045dfd06cfb63b
3
+ metadata.gz: cd818b1fec7663dd86f7fe4242f3087a12cec34a66636e7778a1962d89a5b36b
4
+ data.tar.gz: c5f94e9df1a9c8a7cf18b630084e723961a07132e4b2220a73c46b07347af95b
5
5
  SHA512:
6
- metadata.gz: 2ddfff4e132c17f2a325b2bf0df69a58fcb4ebf4de8317b01c8b4a01e3eec469551467c0134a817f8731c9e69b9fd40d1e7fdcb9b2037759eed66f719d5b378c
7
- data.tar.gz: b736aee121f99a64302832116f0cecefb402b7d0f1443dbc3957d9df0856b7140aeab396343bd6f29778dfeb955dd7cc56991f984c1552a1412aa64c6690cbf5
6
+ metadata.gz: 925b6628e084463efcd12e62910a18c51e54a023ebd71fec4971ad446a0cd8f61e029ae518512dec20d6ba1b0cef1425f85165d9a91234151458e93b7c19ffbb
7
+ data.tar.gz: 05aa6bd931bb40bae5749cdfd3d18dee3df39669db0efcbb77f51da761e522f2b690be7a37503e7cf100366d0f6610af49bcfa468d4ad84436139f77ecce8541
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Valkey
4
4
  module Objects
5
- VERSION = "0.1.7"
5
+ VERSION = "0.1.9"
6
6
  end
7
7
  end
@@ -242,6 +242,14 @@ module VK
242
242
  def value= x
243
243
  VK.redis.call("SET", key, x)
244
244
  end
245
+ def match r, &b
246
+ m = Regexp.new(r).match(value)
247
+ if block_given?
248
+ b.call(m)
249
+ else
250
+ return m
251
+ end
252
+ end
245
253
  end
246
254
 
247
255
  class C < O
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: valkey-objects
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erik Olson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-12-23 00:00:00.000000000 Z
11
+ date: 2024-12-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis-client