autobuild 1.5.16 → 1.5.17
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 +22 -1
- metadata +3 -3
data/Changes.txt
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
== Version 1.5.17
|
2
|
+
* add a way to specify global ignores for listing files in source directories
|
3
|
+
|
1
4
|
== Version 1.5.16
|
2
5
|
* update the TYPELIB_RUBY_PLUGIN_PATH and OROCOS_ROBY_PLUGIN_PATH environment
|
3
6
|
variables, as oroGen now installs plugin files from the oroGen project into
|
data/lib/autobuild.rb
CHANGED
data/lib/autobuild/timestamps.rb
CHANGED
@@ -6,6 +6,27 @@ require 'fileutils'
|
|
6
6
|
STAMPFILE = "autobuild-stamp"
|
7
7
|
|
8
8
|
module Autobuild
|
9
|
+
class << self
|
10
|
+
# The set of global ignores for SourceTreeTask
|
11
|
+
#
|
12
|
+
# Regular expressions added to this set will be used to determine if a
|
13
|
+
# source tree has or has not changed
|
14
|
+
attr_reader :ignored_files
|
15
|
+
end
|
16
|
+
@ignored_files = Array.new
|
17
|
+
|
18
|
+
# Add a file and/or a regular expression to the ignore list
|
19
|
+
#
|
20
|
+
# The matching paths will not be considered when looking if a source tree
|
21
|
+
# has been updated or not.
|
22
|
+
def self.ignore(path)
|
23
|
+
if path.kind_of?(Regexp)
|
24
|
+
ignored_files << path
|
25
|
+
else
|
26
|
+
ignored_files << Regexp.new("^#{Regexp.quote(path)}")
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
9
30
|
def self.tree_timestamp(path, *exclude)
|
10
31
|
# Exclude autobuild timestamps
|
11
32
|
exclude.each { |rx| raise unless Regexp === rx }
|
@@ -39,7 +60,7 @@ module Autobuild
|
|
39
60
|
class SourceTreeTask < Rake::Task
|
40
61
|
attr_accessor :exclude
|
41
62
|
def initialize(*args, &block)
|
42
|
-
@exclude =
|
63
|
+
@exclude = Autobuild.ignored_files.dup
|
43
64
|
super
|
44
65
|
end
|
45
66
|
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 5
|
8
|
-
-
|
9
|
-
version: 1.5.
|
8
|
+
- 17
|
9
|
+
version: 1.5.17
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Sylvain Joyeux
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-07-
|
17
|
+
date: 2010-07-15 00:00:00 +02:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|