DEV: pin redis to version 4.0.1

Version 4.1.0 returns frozen hashes which conflict with our monkey patch

We will follow up unpinning this later
This commit is contained in:
Sam 2019-02-05 09:08:44 +11:00
parent 8b88c738cf
commit 635bc72ec5
2 changed files with 11 additions and 3 deletions

10
Gemfile
View File

@ -31,7 +31,15 @@ gem 'mini_mime'
gem 'mini_suffix'
gem 'hiredis'
gem 'redis', require: ["redis", "redis/connection/hiredis"]
# holding off redis upgrade temporarily as it is having issues with our current
# freedom patch, we will follow this up.
#
# FrozenError: can't modify frozen Hash
# /var/www/discourse/vendor/bundle/ruby/2.5.0/gems/redis-4.1.0/lib/redis/client.rb:93:in `delete'
# /var/www/discourse/vendor/bundle/ruby/2.5.0/gems/redis-4.1.0/lib/redis/client.rb:93:in `initialize'
# /var/www/discourse/lib/freedom_patches/redis.rb:7:in `initialize'
gem 'redis', '4.0.1', require: ["redis", "redis/connection/hiredis"]
gem 'redis-namespace'
gem 'active_model_serializers', '~> 0.8.3'

View File

@ -323,7 +323,7 @@ GEM
msgpack (>= 0.4.3)
trollop (>= 1.16.2)
rchardet (1.8.0)
redis (4.1.0)
redis (4.0.1)
redis-namespace (1.6.0)
redis (>= 3.0.4)
request_store (1.4.1)
@ -527,7 +527,7 @@ DEPENDENCIES
rb-inotify (~> 0.9)
rbtrace
rchardet
redis
redis (= 4.0.1)
redis-namespace
rinku
rotp