Skip to content

Commit

Permalink
Listen version must be ~> 1.0
Browse files Browse the repository at this point in the history
Pre-1.0 support was broken anyway, and I don't want to maintain it.
  • Loading branch information
jonleighton committed Jun 14, 2013
1 parent 20adbef commit 4b141f1
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/spring/watcher/listen.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
gem "listen", "~> 1.0"

This comment has been minimized.

Copy link
@rymai

rymai Oct 10, 2013

Contributor

Hi Jon, Listen 2.x is out and users that are depending on it cannot use Spring with the Listen watcher anymore. Would you be ok to change this line to gem "listen", ">= 1.0"?

This comment has been minimized.

Copy link
@jonleighton

jonleighton Oct 11, 2013

Author Member

Listen 2 support is still a WIP, see #194.

This comment has been minimized.

Copy link
@rymai

rymai Oct 11, 2013

Contributor

Oooops!! My bad, I'm really sorry! :)

require "listen"
require "listen/version"

Expand All @@ -11,12 +12,7 @@ def start
@listener = ::Listen.to(*base_directories, relative_paths: false)
@listener.latency(latency)
@listener.change(&method(:changed))

if ::Listen::VERSION >= "1.0.0"
@listener.start
else
@listener.start(false)
end
@listener.start
end
end

Expand Down

0 comments on commit 4b141f1

Please sign in to comment.