watch-paths 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ == 1.1.1 / 2007-09-05
2
+
3
+ * 1 bug fix
4
+ * flattened recursive paths array
5
+
1
6
  == 1.1.0 / 2007-09-05
2
7
 
3
8
  * 1 minor enhancement
data/bin/watch-paths CHANGED
@@ -11,7 +11,7 @@ if defined? $h then
11
11
  exit 0
12
12
  end
13
13
 
14
- changes = Watchpaths.new.watch ARGV
14
+ changes = WatchPaths.new.watch ARGV
15
15
 
16
16
  unless changes.empty?
17
17
  changes.each do |path,files|
data/lib/watch-paths.rb CHANGED
@@ -11,7 +11,7 @@ $r ||= false
11
11
 
12
12
  class WatchPaths
13
13
 
14
- VERSION = '1.1.0'
14
+ VERSION = '1.1.1'
15
15
 
16
16
  ##
17
17
  # File used to record checksums in each path scanned
@@ -23,7 +23,7 @@ class WatchPaths
23
23
 
24
24
  def watch( paths )
25
25
  chksum_errors = {}
26
- paths.map!{ |path| Dir["#{path}/**/*"] } if $r
26
+ paths.map!{ |path| Dir["#{path}/**/*"] }.flatten! if $r
27
27
  dirs = paths.select{ |path| File.directory? path }
28
28
  dirs.each do |dir|
29
29
  cd dir do
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: watch-paths
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.1.0
6
+ version: 1.1.1
7
7
  date: 2007-09-06 00:00:00 -04:00
8
8
  summary: "== FEATURES/PROBLEMS: * A poor man's configuration management * Does not report files added since last scan * Error handling is minimal"
9
9
  require_paths: