diff options
author | Jeremy Daer <jeremydaer@gmail.com> | 2017-09-28 21:54:00 -0700 |
---|---|---|
committer | Jeremy Daer <jeremydaer@gmail.com> | 2017-10-08 15:37:54 -0700 |
commit | 53c516d88d48bafee5bd125a368352dd94f5fdad (patch) | |
tree | fcf21f1bd6ef63146964fbb530cc7700d0176e75 /railties | |
parent | f165628cdf9a6d857ea6eeca02ed6c950b250df5 (diff) | |
download | rails-53c516d88d48bafee5bd125a368352dd94f5fdad.tar.gz rails-53c516d88d48bafee5bd125a368352dd94f5fdad.tar.bz2 rails-53c516d88d48bafee5bd125a368352dd94f5fdad.zip |
redis-rb 4.0 support
* 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`
Diffstat (limited to 'railties')
-rw-r--r-- | railties/CHANGELOG.md | 4 | ||||
-rw-r--r-- | railties/lib/rails/generators/app_base.rb | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md index ff440b7939..20603dedaf 100644 --- a/railties/CHANGELOG.md +++ b/railties/CHANGELOG.md @@ -1,3 +1,7 @@ +* Gemfile for new apps: upgrade redis-rb from ~> 3.0 to 4.0. + + *Jeremy Daer* + * Add `mini_magick` to default `Gemfile` as comment. *Yoshiyuki Hirano* diff --git a/railties/lib/rails/generators/app_base.rb b/railties/lib/rails/generators/app_base.rb index c8688fb7f3..6fb4ea52b3 100644 --- a/railties/lib/rails/generators/app_base.rb +++ b/railties/lib/rails/generators/app_base.rb @@ -369,7 +369,7 @@ module Rails return [] if options[:skip_action_cable] comment = "Use Redis adapter to run Action Cable in production" gems = [] - gems << GemfileEntry.new("redis", "~> 3.0", comment, {}, true) + gems << GemfileEntry.new("redis", "~> 4.0", comment, {}, true) gems end |