redis-prescription 2.3.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: fd1b8f036fcc8230f39b8df81688c9026fd2e65d3e5a825d6d1233a9ba7b9093
4
- data.tar.gz: f60221b43f1ddbaa96d57212f8a1e849a94daa9c4d018c90aee7e68d6b9c7df4
3
+ metadata.gz: 354a94422396fda6136797808b779601e496bd65820569745c5394e6ae3da356
4
+ data.tar.gz: 19991740730012d7667f792e9c4324ae115fbe3e616d4295616b579cf2f8b7b5
5
5
  SHA512:
6
- metadata.gz: 11d25b6dc569ed64cab7d439b7688102549a20e714c8a6ff2abfe7a2ccdb91a0fce7097089fd08c196b36b53ca7bcaae149edb0fb3272ec210f95efbcc5134e8
7
- data.tar.gz: 386d2fbc0b0104e183c3c58ca871dd0120efe313ea7ece14904137c67139d97d82accc8b8537a0a9887e875596b2b08ec128ce52b73aca534387f873e73e4db9
6
+ metadata.gz: 3c10f0ee851f6e1b026d3d64b9903f140093b236e1964155bcef5e7c72417e5b68ae79cfc9b647a03c1ebd425d16772022ad2bb8175292e0a83c5231dd2a54e7
7
+ data.tar.gz: a605ed2d14492a8e638c16a38bafab2afc37d5cc731c59df65ed3cae067cfeb75d9848115d434a302d7852df78678faccd5646a82568c91d04d8c7be9c19b533
@@ -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"
@@ -2,5 +2,5 @@
2
2
 
3
3
  class RedisPrescription
4
4
  # Gem version.
5
- VERSION = "2.3.0"
5
+ VERSION = "2.4.0"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis-prescription
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexey Zapparov
@@ -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.3.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: []