action_cable_subscription_adapter 0.1.1 → 0.1.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
  SHA1:
3
- metadata.gz: a21082ad56c100816a94a8372b270b5e93f466fd
4
- data.tar.gz: 558e5cf2ca40cfa1e97dd56bcf646fb8b1b3b343
3
+ metadata.gz: 3dc942b85ff9f632967e3964e9abbc30058197fa
4
+ data.tar.gz: 07aeab84e51126fb18bc6e332a5b3b40d9e5666b
5
5
  SHA512:
6
- metadata.gz: 74d135a770b5457c3be1595238726a5cf132194b72dec5faf5bfb94308e0fbb9850fa406379aeff621a65387688115ff54135bc9ec72711be273552e8262d2d5
7
- data.tar.gz: 568ddbd9285f811ce04be202b2ad1dfc98a37dbebb3db825b6c6fa0062ca25bdf757d9bed7f6bfd09b2c5b2a8ed47de082c217c0dcf381175a206b220d01a9f7
6
+ metadata.gz: 7c7946b4cf33e45da18dfdfdebbc7be24c1a37a1f09a5da3e65eb54fe3461bfa7ac47fd4460b083d0655003f201ce1f33be1feb8c9e671270e70f6647910f936
7
+ data.tar.gz: fd4d4d7d4b5bb140857936c879a81b8f94fa0dc988a1db945e9870b1a4fe513fab5db8c134849d93415e5196af4eac2c2a15a86689113f363dade43c365b9448
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Implements a configuration option that allows you to inject a custom configurable Redis client
4
4
  For ActionCable to use in its SubscriptionAdapter. This is useful if you use something like Redis::Namespace
5
- Which needs to be configured with a Redis URL and Namespace name usually coming from ENV vars. Rail's `cable.yml` is insufficient for this because it doesn't allow configuration of the Redis client.
5
+ Which needs to be configured with a Redis URL and Namespace name usually coming from ENV vars. Rail's `cable.yml` is insufficient for this because it only allows URL configuration of the Redis client. You can also use this gem to using distributed Redis with Makara.
6
6
 
7
7
  ## Installation
8
8
 
@@ -22,7 +22,22 @@ Or install it yourself as:
22
22
 
23
23
  ## Usage
24
24
 
25
- Inject a custom Redis client used by the ActionCable::SubscriptionAdapter
25
+ Set the adapter in `config/cable.yml`
26
+
27
+ ```
28
+ development:
29
+ adapter: custom_adapter
30
+
31
+ test:
32
+ adapter: async
33
+
34
+ production:
35
+ adapter: custom_adapter
36
+ ```
37
+
38
+ The `custom_adapter` will make ActionCable load this gem's SubscriptionAdapter rather than its built in one. Then...
39
+
40
+ Create an initializer and set your custom Redis client.
26
41
  Example:
27
42
 
28
43
  ```ruby
@@ -43,7 +58,7 @@ ActionCableSubscriptionAdapter.config do |c|
43
58
  end
44
59
  ```
45
60
 
46
- The custom Redis client needs to conform to the [Redis](https://github.com/redis/redis-rb) gem's API.
61
+ The custom Redis client needs to conform to the [redis-rb](https://github.com/redis/redis-rb) gem's API.
47
62
 
48
63
  ## Development
49
64
 
@@ -1,3 +1,3 @@
1
1
  module ActionCableSubscriptionAdapter
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: action_cable_subscription_adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Diego Salazar