Blob Blame History Raw
From ddddedc487912e33edb7d78aec6bcf99b1312c6d Mon Sep 17 00:00:00 2001
From: Esteban Santana Santana <sesteban@amazon.com>
Date: Mon, 3 Oct 2016 16:58:17 +0530
Subject: [PATCH] Allow the use of listen's 3.1.x branch.

When the initial evented monitor feature was written, the latest version of listen
was the 3.0.x series. Since then the listen project has moved on to the 3.1.x series.
This patch allows the use of the new versions.
---
 .../rails/generators/rails/app/templates/Gemfile   |  2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/railties/lib/rails/generators/rails/app/templates/Gemfile b/railties/lib/rails/generators/rails/app/templates/Gemfile
index 7af5fcd..4222172 100644
--- a/railties/lib/rails/generators/rails/app/templates/Gemfile
+++ b/railties/lib/rails/generators/rails/app/templates/Gemfile
@@ -44,7 +44,7 @@ group :development do
   <%- end -%>
 <%- end -%>
 <% if depend_on_listen? -%>
-  gem 'listen', '~> 3.0.5'
+  gem 'listen', '>= 3.0.5', '< 3.2'
 <% end -%>
 <% if spring_install? -%>
   # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring