]> git.cworth.org Git - sup/blobdiff - lib/sup/util.rb
Merge branch 'logging' into next
[sup] / lib / sup / util.rb
index 9c1a84ad2077f8308f5e394e1430474eae6c493f..068ce6bad904c9012bdcd5d8883ac48a68e59976 100644 (file)
@@ -25,6 +25,7 @@ class Lockfile
   def lockinfo_on_disk
     h = load_lock_id IO.read(path)
     h['mtime'] = File.mtime path
+    h['path'] = path
     h
   end
 
@@ -91,7 +92,7 @@ end
 
 class Range
   ## only valid for integer ranges (unless I guess it's exclusive)
-  def size 
+  def size
     last - first + (exclude_end? ? 0 : 1)
   end
 end