autobuild 1.10.0.rc21 → 1.10.0.rc22

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a24414c9ff5b3377a5a8438a11684c3bb9ab0d9f
4
- data.tar.gz: 8017397fe427de78d2e465e5e1fb4308114879fd
3
+ metadata.gz: aabf4386c24d662b956a991ecfb6438c81ab93cc
4
+ data.tar.gz: 00dc4688a63ab182242fee2c311f3fbedf26c6fc
5
5
  SHA512:
6
- metadata.gz: 0f06dd6f2869c9478ac2eeceac5ed24633293bfdd91f19e8d47917145fdc8565b1d8a5fb4cae84b3c35af2fd109310f6657f3bb8f6318a77f0849d4783a73154
7
- data.tar.gz: 655745169510960573c119ac72d9f64af255f4223e79f509f98e809b2906e270500ada724bb7f8c5ce7c940beefc79c4151650d488adb6cc679bcee02258ba5e
6
+ metadata.gz: 5defe2636898bc9aaa563b14e8b6889e218e83fa1359afa39108b2ab5d34d1a4f5e35260321bfcf9fcfe00d0a315c6672a82500c7b727da49df953f2f5989ccc
7
+ data.tar.gz: 6da7eef76e7d4e8a2fbe4d07a89c0e93be60c45a5ae2dd1a7be750b91c2933801154b2ec09963cb216e04b25197825045ebf91bc0f2e1e1467145f45bafc419a
@@ -24,7 +24,6 @@ def self.ignore(path)
24
24
 
25
25
  def self.tree_timestamp(path, *exclude)
26
26
  # Exclude autobuild timestamps
27
- exclude.each { |rx| raise unless Regexp === rx }
28
27
  exclude << (/#{Regexp.quote(STAMPFILE)}$/)
29
28
  exclude << (/\.autobuild-patches$/)
30
29
 
@@ -32,14 +31,14 @@ def self.tree_timestamp(path, *exclude)
32
31
  latest = Time.at(0)
33
32
  latest_file = ""
34
33
 
35
- Find.find(path) { |p|
34
+ Find.find(path) do |p|
36
35
  Find.prune if File.basename(p) =~ /^\./
37
- exclude.each { |pattern|
38
- if p =~ pattern
36
+ exclude.each do |pattern|
37
+ if pattern === p
39
38
  Autobuild.message " excluding #{p}" if Autobuild.debug
40
39
  Find.prune
41
40
  end
42
- }
41
+ end
43
42
  next if !File.file?(p)
44
43
 
45
44
  p_time = File.mtime(p)
@@ -47,7 +46,7 @@ def self.tree_timestamp(path, *exclude)
47
46
  latest = p_time
48
47
  latest_file = p
49
48
  end
50
- }
49
+ end
51
50
 
52
51
  Autobuild.message " newest file: #{latest_file} at #{latest}" if Autobuild.debug
53
52
  return latest_file, latest
@@ -1,5 +1,5 @@
1
1
  module Autobuild
2
- VERSION = "1.10.0.rc21" unless defined? Autobuild::VERSION
2
+ VERSION = "1.10.0.rc22" unless defined? Autobuild::VERSION
3
3
  end
4
4
 
5
5
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autobuild
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.0.rc21
4
+ version: 1.10.0.rc22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvain Joyeux
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-05 00:00:00.000000000 Z
11
+ date: 2016-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake