autobuild 1.5.17 → 1.5.18
Sign up to get free protection for your applications and to get access to all the features.
- data/Changes.txt +3 -0
- data/lib/autobuild.rb +1 -1
- data/lib/autobuild/timestamps.rb +8 -2
- metadata +2 -2
data/Changes.txt
CHANGED
data/lib/autobuild.rb
CHANGED
data/lib/autobuild/timestamps.rb
CHANGED
@@ -54,18 +54,24 @@ module Autobuild
|
|
54
54
|
}
|
55
55
|
|
56
56
|
puts " newest file: #{latest_file} at #{latest}" if Autobuild.debug
|
57
|
-
return latest
|
57
|
+
return latest_file, latest
|
58
58
|
end
|
59
59
|
|
60
60
|
class SourceTreeTask < Rake::Task
|
61
61
|
attr_accessor :exclude
|
62
|
+
|
63
|
+
attr_reader :newest_file
|
64
|
+
attr_reader :newest_time
|
65
|
+
|
62
66
|
def initialize(*args, &block)
|
63
67
|
@exclude = Autobuild.ignored_files.dup
|
64
68
|
super
|
65
69
|
end
|
66
70
|
|
67
71
|
def timestamp
|
68
|
-
|
72
|
+
@newest_file, @newest_time =
|
73
|
+
Autobuild.tree_timestamp(name, %r#(?:^|/)(?:CVS|_darcs|\.svn)$#, *@exclude)
|
74
|
+
@newest_time
|
69
75
|
end
|
70
76
|
end
|
71
77
|
def self.source_tree(path, &block)
|