protocol-redis 0.11.0 → 0.12.0

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: b39632c3f7210dd4eea7d4b561a74c94442434a3e9ae9220d44303ea51aba2af
4
- data.tar.gz: 6a930186fd89b24a6469a79025de532bd638a8e942228dffe25c4a4752561731
3
+ metadata.gz: 7e63a5453c8130c12c789c00649edc0108ebfba308085df2802f92cec2f43028
4
+ data.tar.gz: 8dd7a1c74365983b6e393039493b97c150eb5c188339d7202e72afbeaa1b6e54
5
5
  SHA512:
6
- metadata.gz: cdeeba41310895026b7e5f7c0f79c382ab91d63a4a27a3e3131adb593f71b2bf780a4974b6b08a9c7fa163f1223acadece21a8d08bc652d45962269226958c94
7
- data.tar.gz: 53859905dfad6b1b1e4944aff3357c13ec1fdcd0e1635962ce5d83811d7c625b08efa5da46c5eef76c22f0cf66cf5ac477a01796fff47499b6849a1fb3118fe2
6
+ metadata.gz: b6856f8a48b5dca486bf09aac258841b4a27a87dcfaa91fdd68a82a3a8040319d018e1d91a7a93a8b804c85dba08f3af301429a03c8b308efa940f08371f34f9
7
+ data.tar.gz: 39577c159ef6276b4502c976547453a44477617916d63a5687a62e94d3a6557b31d5d695399d5b7cd5513b6071537f48837a1fdeb35b2a725896ff4be08277a0
checksums.yaml.gz.sig CHANGED
Binary file
@@ -15,6 +15,14 @@ module Protocol
15
15
  def publish(channel, message)
16
16
  call("PUBLISH", channel, message)
17
17
  end
18
+
19
+ # Post a message to a shard channel.
20
+ # See <https://redis.io/commands/spublish> for more details.
21
+ # @parameter channel [String]
22
+ # @parameter message [String]
23
+ def spublish(channel, message)
24
+ call("SPUBLISH", channel, message)
25
+ end
18
26
  end
19
27
  end
20
28
  end
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Protocol
7
7
  module Redis
8
- VERSION = "0.11.0"
8
+ VERSION = "0.12.0"
9
9
  end
10
10
  end
data/readme.md CHANGED
@@ -14,6 +14,10 @@ Please see the [project documentation](https://socketry.github.io/protocol-redis
14
14
 
15
15
  Please see the [project releases](https://socketry.github.io/protocol-redis/releases/index) for all releases.
16
16
 
17
+ ### v0.12.0
18
+
19
+ - Introduce `Pubsub#spublish` method for shard channels.
20
+
17
21
  ### v0.11.0
18
22
 
19
23
  - Introduce cluster methods, including `Strings`, `Streams`, `Scripting` and `Pubsub`.
@@ -59,14 +63,6 @@ Please see the [project releases](https://socketry.github.io/protocol-redis/rele
59
63
  - Use correct CRLF constant in server methods.
60
64
  - Modernize gem configuration.
61
65
 
62
- ### v0.5.0
63
-
64
- - Add incomplete implementations of scripting, sets and streams.
65
- - Merge existing sorted set implementations.
66
- - Add `zrangebyscore` method.
67
- - Improve argument management.
68
- - Modernize testing infrastructure.
69
-
70
66
  ## Contributing
71
67
 
72
68
  We welcome contributions to this project.
data/releases.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Releases
2
2
 
3
+ ## v0.12.0
4
+
5
+ - Introduce `Pubsub#spublish` method for shard channels.
6
+
3
7
  ## v0.11.0
4
8
 
5
9
  - Introduce cluster methods, including `Strings`, `Streams`, `Scripting` and `Pubsub`.
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protocol-redis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file