break from the block of Listen::to, guard/listen

23 views
Skip to first unread message

kyoma...@gmail.com

unread,
Mar 5, 2013, 3:15:57 AM3/5/13
to guar...@googlegroups.com, kyoma...@gmail.com
Dear all,

FYI, when listening by using the Listen gem as the followings, it does not break from the block even when something added to the directory. I am not sure if it is expected behaviour or not.

  Listen.to('.',:relative_paths => true) do |m,a,r|
    break unless a.empty?
  end

Instead, the followings stop listening when something added to the directory.

  l = Listen.to('.',:relative_paths => true)
  l.change do |m,a,r|
    l.stop unless a.empty?
  end
  l.start

Cheers,

Kyoma

Thibaud Guillaume-Gentil

unread,
Mar 5, 2013, 4:08:17 AM3/5/13
to guar...@googlegroups.com
Hi Kyoma, Please open an issue on Listen for that. Thanks!
> --
> You received this message because you are subscribed to the Google Groups "guard-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to guard-dev+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

kyoma...@gmail.com

unread,
Mar 5, 2013, 7:08:13 PM3/5/13
to guar...@googlegroups.com
Thanks thibaudgg for instructing! I'v posted an issue https://github.com/guard/listen/issues/90

Kyoma

2013年3月5日火曜日 18時08分17秒 UTC+9 thibaudgg:
Reply all
Reply to author
Forward
0 new messages