diff --git a/README.md b/README.md index 68c0387..5e02354 100644 --- a/README.md +++ b/README.md @@ -4,10 +4,6 @@ Automatically reload Hotwire Turbo when app files are modified. https://user-images.githubusercontent.com/839922/148676469-0acfa036-832e-4b40-aa05-1fdd945baa1f.mp4 -## Dependencies - -* [Redis](https://redis.io/) - ## Getting started Add `hotwire-livereload` to your Gemfile: diff --git a/lib/install/install.rb b/lib/install/install.rb index 2813c19..4b49f62 100644 --- a/lib/install/install.rb +++ b/lib/install/install.rb @@ -12,19 +12,3 @@ say %( Add <%= hotwire_livereload_tags %> within the tag in your custom layout.) say %( If using `config.hotwire_livereload.reload_method = :turbo_stream`, place *after* the `<%= action_cable_meta_tag %>`.) end - -if CABLE_CONFIG_PATH.exist? - gemfile = File.read(Rails.root.join("Gemfile")) - if gemfile.include?("redis") - say "Uncomment redis in Gemfile" - uncomment_lines "Gemfile", %r{gem ['"]redis['"]} - else - say "Add redis to Gemfile" - gem "redis" - end - - say "Switch development cable to use redis" - gsub_file CABLE_CONFIG_PATH.to_s, /development:\n\s+adapter: async/, "development:\n adapter: redis\n url: redis://localhost:6379/1" -else - say 'ActionCable config file (config/cable.yml) is missing. Uncomment "gem \'redis\'" in your Gemfile and create config/cable.yml to use Hotwire Livereload.' -end