autobuild 1.5.17 → 1.5.18

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,6 @@
1
+ == Version 1.5.18
2
+ * minor addition to the API for autoproj
3
+
1
4
  == Version 1.5.17
2
5
  * add a way to specify global ignores for listing files in source directories
3
6
 
@@ -1,5 +1,5 @@
1
1
  module Autobuild
2
- VERSION = "1.5.17" unless defined? Autobuild::VERSION
2
+ VERSION = "1.5.18" unless defined? Autobuild::VERSION
3
3
  end
4
4
 
5
5
  require 'autobuild/config'
@@ -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
- Autobuild.tree_timestamp(name, %r#(?:^|/)(?:CVS|_darcs|\.svn)$#, *@exclude)
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)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 5
8
- - 17
9
- version: 1.5.17
8
+ - 18
9
+ version: 1.5.18
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sylvain Joyeux