aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/lib/action_cable/subscription_adapter/redis.rb
Commit message (Collapse)AuthorAgeFilesLines
* redis-rb 4.0 supportJeremy Daer2017-10-081-2/+2
| | | | | | | | * Use `gem 'redis', '~> 4.0'` for new app Gemfiles * Loosen Action Cable redis-rb dep to `>= 3.3, < 5` * Bump redis-namespace for looser Redis version dep * Avoid using the underlying `redis.client` directly * Use `Redis.new` instead of `Redis.connect`
* Capitalize RedisJon Moss2017-08-171-1/+1
| | | | [ci skip]
* Use frozen string literal in actioncable/Kir Shatrov2017-07-231-0/+2
|
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
| | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa.
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
|
* Allows for other common redis options to be in cable.yml, by defaultMarc Ignacio2017-06-221-1/+3
| | | | | | | | | | | | | | | | | | - Adds RedisAdapterTest::AlternateConfiguration to account for a relatively common alternative setup, as it’s used as the first example in the [Redis rubygem](https://github.com/redis/redis-rb#getting-started) - Supplies original RedisAdapterTest with more complete redis:// url format by adding a ‘userinfo’ (blank user), so that it resembles the alternate configuration - Supplies original EventedRedisAdapterTest with more complete redis:// url as well - Adds before_script to start redis-server with password as a daemon and with explicit defaults copied from the default redis.conf (Instead of using Travis' default init/upstart scripts for `redis` service)
* Use mattr_accessor default: option throughout the projectGenadi Samokovarov2017-06-031-1/+1
|
* Add channel_prefix support to ActionCable redis/evented_redis adapters.Chad Ingram2017-01-171-0/+2
|
* applies new string literal convention in actioncable/libXavier Noria2016-08-061-7/+7
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Support faye-websocket + EventMachine as an optionMatthew Draper2016-03-021-4/+5
|
* Use redis_connector to create redis connections for both subscriptions and ↵Pratik Naik2016-02-261-2/+6
| | | | broadcasts
* Allow for non-standard redis connectorsDavid Heinemeier Hansson2016-02-041-1/+5
|
* Switch the default redis adapter to a single-stream modelMatthew Draper2016-02-011-30/+126
| | | | | | This new adapter does get a little more intimate with the redis-rb gem's implementation than I would like, but it's the least bad of the approaches I've come up with.
* Synchronize the lazy setters in ServerMatthew Draper2016-01-301-4/+13
| | | | They're all at risk of races on the first requests.
* Revert "Revert "Eliminate the EventMachine dependency""Matthew Draper2016-01-301-0/+16
|
* Revert "Eliminate the EventMachine dependency"David Heinemeier Hansson2016-01-271-16/+0
|
* Using a hacked faye-websocket, drop EventMachineMatthew Draper2016-01-241-0/+16
|
* Allow subscription adapters to be shut downMatthew Draper2016-01-241-0/+5
|
* Normalize on no arguments for the success callbackMatthew Draper2016-01-241-1/+1
|
* Use the correct reference to the redis connectionBrit Gardner2016-01-221-1/+1
| | | | | Fixes #23193 This was throwing `There was an exception - NameError(undefined local variable or method `hi_redis_conn' for #<ActionCable::SubscriptionAdapter::Redis:0x007fb1449e2b70>)` on unsubscribe.
* Merge pull request #22950 from maclover7/adapterize-storage-actioncableMatthew Draper2016-01-201-7/+6
| | | | Adapterize storage for ActionCable
* Fix code review commentsJon Moss2016-01-181-24/+17
| | | | | | | - adapter -> pubsub (re)rename internally - Change variable names to match method names - Add EventMachine `~> 1.0` as a runtime dependency of ActionCable - Refactor dependency loading for adapters
* ActionCable::StorageAdapter ==> ActionCable::SubscriptionAdapterJon Moss2016-01-181-0/+45