io-watch 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: acb60fab33220f774934fac55057df2ecbcdb5227b9014313d9c541d23642cdd
4
- data.tar.gz: ac530c9cd6e504669a07f96e21515ad968504fa89783e19d49bc250774db30c8
3
+ metadata.gz: '099aa403649b5214390198ad846a1d16819133b59b89389ef0a794641cf25c7a'
4
+ data.tar.gz: e39d0a107c35541524a0288334308292d09ed241a308db8afb9871ec5e696294
5
5
  SHA512:
6
- metadata.gz: 256a699bc203c6e0036a54c15ec914f4b197016d0ee35b31cdc160ddecc2ef334e176fefdf4cd4402f817c42994342b66f0e127da19aa0436285b4628c3bce36
7
- data.tar.gz: 159434b858a76c0825207d438a408d45a5013733a83283213a97721769582407c18fd81482f7efca1fe5492d6ae11cf377355c4f4ea20c93ddf8501d55df291b
6
+ metadata.gz: 72ee830e50e5f1475017af8e812c01ae3090a88c24c8628bdd06a2e5349dd24026f2ca0aef3c6212facc4f1e42b4fb31ad515024f2368fcbe2d7cc7f48aeed1a
7
+ data.tar.gz: 7c2132304930f5a1a7b403ae94ce41e8dc0993fedecb797b6e7d9fce3316b1846ecad15f8ecdaa166a360973e527155dcb87f37f7f3a809f8d3f9550bac023ac
checksums.yaml.gz.sig CHANGED
Binary file
data/bin/io-watch CHANGED
@@ -3,7 +3,6 @@
3
3
  require 'console'
4
4
  require 'io/watch'
5
5
 
6
- root = Dir.pwd
7
6
  command = ARGV
8
7
  pid = nil
9
8
  signal = :INT
@@ -12,7 +11,14 @@ if command.first =~ /TERM|INT|KILL|QUIT|HUP/
12
11
  signal = command.shift
13
12
  end
14
13
 
15
- monitor = IO::Watch::Monitor.new([root])
14
+ if split = command.index('--')
15
+ roots = command.pop(split)
16
+ command.pop
17
+ else
18
+ roots = [Dir.pwd]
19
+ end
20
+
21
+ monitor = IO::Watch::Monitor.new(roots)
16
22
 
17
23
  monitor.run do
18
24
  if pid
@@ -5,6 +5,6 @@
5
5
 
6
6
  class IO
7
7
  module Watch
8
- VERSION = '0.3.0'
8
+ VERSION = '0.4.0'
9
9
  end
10
10
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: io-watch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file