redis-prescription 2.2.0 → 2.4.0

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: c503c680688ac288e5d3b9e59314c20055c10239b31733de6855f6a78ed90d3e
4
- data.tar.gz: f0a2373d51deb922ac02bb8283e05cb583dc3578f95ea8f4923bba2d1a3058e1
3
+ metadata.gz: 354a94422396fda6136797808b779601e496bd65820569745c5394e6ae3da356
4
+ data.tar.gz: 19991740730012d7667f792e9c4324ae115fbe3e616d4295616b579cf2f8b7b5
5
5
  SHA512:
6
- metadata.gz: 516e413b8da8d7dace049f9169c307d3a87b1ee52ecdc759368f3012d2d51e6b44732d38a2980635bc5acb1015436960c48fe17239edd734101feda83d18c503
7
- data.tar.gz: 2c07386fbc7fb53a0a8093df08a35ed6d366a37084df8823cc49685cf95034e5599f7aeacb2fd502ebef6d4f0654f244988e86bd7bd26bfd30c3f0f7741d079b
6
+ metadata.gz: 3c10f0ee851f6e1b026d3d64b9903f140093b236e1964155bcef5e7c72417e5b68ae79cfc9b647a03c1ebd425d16772022ad2bb8175292e0a83c5231dd2a54e7
7
+ data.tar.gz: a605ed2d14492a8e638c16a38bafab2afc37d5cc731c59df65ed3cae067cfeb75d9848115d434a302d7852df78678faccd5646a82568c91d04d8c7be9c19b533
data/README.adoc CHANGED
@@ -31,17 +31,25 @@ script.call(redis, keys: [:xxx]) # => 123
31
31
  ----
32
32
 
33
33
 
34
- == Supported Ruby Versions
34
+ == Compatibility
35
35
 
36
36
  This library aims to support and is tested against:
37
37
 
38
38
  * https://www.ruby-lang.org[Ruby]
39
+ ** MRI 2.7.x
39
40
  ** MRI 3.0.x
40
41
  ** MRI 3.1.x
42
+ ** MRI 3.2.x
41
43
  * https://redis.io[Redis Server]
42
44
  ** 6.2.x
43
45
  ** 7.0.x
44
46
  * https://github.com/redis/redis-rb[redis-rb]
47
+ ** 4.1.x
48
+ ** 4.2.x
49
+ ** 4.3.x
50
+ ** 4.4.x
51
+ ** 4.5.x
52
+ ** 4.6.x
45
53
  ** 4.7.x
46
54
  ** 4.8.x
47
55
  ** 5.0.x
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "../redis_prescription"
4
+
5
+ class Redis
6
+ # @deprecated
7
+ # @see RedisPrescription
8
+ class Prescription < RedisPrescription
9
+ class << self
10
+ attr_accessor :silence_deprecation_warning
11
+ end
12
+
13
+ self.silence_deprecation_warning = false
14
+
15
+ def initialize(*)
16
+ super
17
+
18
+ return if self.class.silence_deprecation_warning
19
+
20
+ warn "#{self.class} usage was deprecated, please use RedisPrescription instead"
21
+ end
22
+ end
23
+ end
@@ -1,3 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative "redis_prescription"
4
+ require_relative "redis/prescription"
@@ -33,7 +33,7 @@ class RedisPrescription
33
33
  (?::\s\h+,\son\s@[^:]+:\d+\.)? # Redis 7.0
34
34
  )
35
35
  \z
36
- }x
36
+ }x.freeze
37
37
  private_constant :LUA_ERROR_MESSAGE
38
38
  # rubocop:enable Layout/LineLength
39
39
 
@@ -2,5 +2,5 @@
2
2
 
3
3
  class RedisPrescription
4
4
  # Gem version.
5
- VERSION = "2.2.0"
5
+ VERSION = "2.4.0"
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis-prescription
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexey Zapparov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-04-05 00:00:00.000000000 Z
11
+ date: 2023-04-07 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |
14
14
  Preloads (and reloads when needed, e.g. when scripts were flushed away)
@@ -22,6 +22,7 @@ files:
22
22
  - LICENSE.txt
23
23
  - README.adoc
24
24
  - lib/redis-prescription.rb
25
+ - lib/redis/prescription.rb
25
26
  - lib/redis_prescription.rb
26
27
  - lib/redis_prescription/adapters.rb
27
28
  - lib/redis_prescription/adapters/redis.rb
@@ -36,7 +37,7 @@ metadata:
36
37
  homepage_uri: https://gitlab.com/ixti/redis-prescription
37
38
  source_code_uri: https://gitlab.com/ixti/redis-prescription
38
39
  bug_tracker_uri: https://gitlab.com/ixti/redis-prescription/issues
39
- changelog_uri: https://gitlab.com/ixti/redis-prescription/blob/v2.2.0/CHANGES.md
40
+ changelog_uri: https://gitlab.com/ixti/redis-prescription/blob/v2.4.0/CHANGES.md
40
41
  rubygems_mfa_required: 'true'
41
42
  post_install_message:
42
43
  rdoc_options: []
@@ -46,7 +47,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
46
47
  requirements:
47
48
  - - ">="
48
49
  - !ruby/object:Gem::Version
49
- version: '3.0'
50
+ version: '2.7'
50
51
  required_rubygems_version: !ruby/object:Gem::Requirement
51
52
  requirements:
52
53
  - - ">="