redis-json 1.0.1 → 1.0.2

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: f62b79d920fff44b30233d3d9723fe413dfd316f9cb94fd7f0cde4602a6f9e30
4
- data.tar.gz: a5e6c5603730c4f863ef60b066776f7a9820bc9f460b1fdcdda5f0eefaa39195
3
+ metadata.gz: 6f21dfc2993ab2cb612487b693250acd7b6b6abbe7383750034493293cac4d31
4
+ data.tar.gz: c4c954ed2dba4b22c2bd33f7a7ccb861c465ba387aa2ca29db1ae62d6f516bd6
5
5
  SHA512:
6
- metadata.gz: 4e02f20f232fe10431536b216d1dc8c560163be952b9900e605f0a14bcf22a2d2e39aee4bb577e1d459b5f679d32ead3a28a1d863afc5f5119111e82f80b1981
7
- data.tar.gz: e203b86be101dfef7ec5b57dba5b34b981b794167742f0f8c1440f898f66ce39042d31112f97c34f79a6fde3124f4c5e84af8b6a7f3e6ec6d61c344dc1d694d7
6
+ metadata.gz: e52b5e03f9662cb0fdb05f5fa751a3022bd7b76cb816d2aa317ecc54a505868f63bad7edf15c0968ae8aa2ca848d95c01196250218b9a95d05567480007d5740
7
+ data.tar.gz: 75fef9d0d2fbb4c6fdfb14458c3e0f7f9e149e19c0ac870b739d6652c42849cf7cd5418377ce5a4e5bad60acdc91e52753225266f0e35c57bff99390857a3c22
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.2 2023-06-06
4
+
5
+ ### Bug fixes
6
+
7
+ - Added check to allow compatibility with versions of redis-rb earlier than 4.6.0
8
+
3
9
  ## 1.0.1 2023-06-06
4
10
 
5
11
  ### New features
@@ -1,7 +1,15 @@
1
1
  require_relative 'client'
2
2
 
3
- class Redis
4
- module Commands
3
+ if defined?(Redis::Commands)
4
+ class Redis
5
+ module Commands
6
+ def json
7
+ JSON::Client.new self
8
+ end
9
+ end
10
+ end
11
+ else
12
+ class Redis
5
13
  def json
6
14
  JSON::Client.new self
7
15
  end
@@ -1,5 +1,5 @@
1
1
  class Redis
2
2
  module JSON
3
- VERSION = '1.0.1'.freeze
3
+ VERSION = '1.0.2'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis-json
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Moku S.r.l.