valkey-objects 0.1.7 → 0.1.8

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: b2d76e237c36d52756f924cce5766312f630e6ae7c4a378aa7c0850fa945ed58
4
+ data.tar.gz: 3a320e4c5278fe4974b4749f4788c9eedc7b984a7d1949ff39ab22be3bedfe2b
5
5
  SHA512:
6
- metadata.gz: 2ddfff4e132c17f2a325b2bf0df69a58fcb4ebf4de8317b01c8b4a01e3eec469551467c0134a817f8731c9e69b9fd40d1e7fdcb9b2037759eed66f719d5b378c
7
- data.tar.gz: b736aee121f99a64302832116f0cecefb402b7d0f1443dbc3957d9df0856b7140aeab396343bd6f29778dfeb955dd7cc56991f984c1552a1412aa64c6690cbf5
6
+ metadata.gz: 864a0c22c28689313528d526b1fd26cafc3957df0a75f7a72cfcc30b87860233a7d9e2c440bbd4e95af1e87777aa589fe075d8da350400c17290321762596695
7
+ data.tar.gz: a9554e5a2e77b8420c9df3a0b15031237c1d1f6e1f6844c14bc510117e3755a83483f4c26a30a6744124314062bb27fef5dbd35d8c75483fddabf81bdd021584
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Valkey
4
4
  module Objects
5
- VERSION = "0.1.7"
5
+ VERSION = "0.1.8"
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,7 +1,7 @@
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.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erik Olson