rake 10.3.0 → 10.3.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rake might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7e051b1f1a97aa88b0d3436bbb7ac9878d51b94c
4
- data.tar.gz: e0065135845a6d264193616f9c686fc2661960e5
3
+ metadata.gz: 7fb874143d83d469b8c5f9e4fc8ff79f736a89ef
4
+ data.tar.gz: 0a9bf5d92a94e2183b7887415732521b293c5750
5
5
  SHA512:
6
- metadata.gz: 7ee50f4cb44444171b20ce5f5359152d874f600fca75467f92d3aa8da69b275177a7752ab8b9a6ccea86186616c180e06ba1c6ad67a06334b6a1c11de50436bc
7
- data.tar.gz: 20c3f24c190b6cc1230bfe92d4ece47ece4cd2c5dcf007fb7e94ac7cfec28372862a2b02c0a39f71a0400ed52480b54e4c221edd75f4bf50a199a09a534b53e4
6
+ metadata.gz: fde0747e99905b6fb93b4d9fd788cdcf6e751966a9b7cf10ddefcfd109e78dff5d87841194c81cd8cd4b9f069f61386e845130ee338b157ddf378936c40a3326
7
+ data.tar.gz: 632c9e14454097041663c31d2aa689114c9335add9efe4965d3aad67694247af90c194613ab3f8a07197b171aa96b2a0781e6d282de59c87653067797e2ca951
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,11 @@
1
+ === 10.3.1 / 2014-04-17
2
+
3
+ Bug fixes:
4
+
5
+ * Really stop reporting an error when cleaning already-deleted files. Pull
6
+ request #269 by Randy Coulman
7
+ * Fixed infinite loop when cleaning already-deleted files on windows.
8
+
1
9
  === 10.3 / 2014-04-15
2
10
 
3
11
  Enhancements:
@@ -21,7 +21,7 @@
21
21
  #++
22
22
 
23
23
  module Rake
24
- VERSION = '10.3.0'
24
+ VERSION = '10.3.1'
25
25
  end
26
26
 
27
27
  require 'rake/version'
@@ -39,13 +39,22 @@ module Rake
39
39
  return false if File.exist?(file_name)
40
40
 
41
41
  path = file_name
42
+ prev = nil
43
+
42
44
  while path = File.dirname(path)
43
- return false unless File.readable?(path) && File.executable?(path)
44
- break if ["/", "."].include?(path)
45
+ return false if cant_be_deleted?(path)
46
+ break if [prev, "."].include?(path)
47
+ prev = path
45
48
  end
46
49
  true
47
50
  end
48
51
  private_class_method :file_already_gone?
52
+
53
+ def cant_be_deleted?(path_name)
54
+ File.exist?(path_name) &&
55
+ (!File.readable?(path_name) || !File.executable?(path_name))
56
+ end
57
+ private_class_method :cant_be_deleted?
49
58
  end
50
59
  end
51
60
 
@@ -24,7 +24,7 @@ class TestRakeClean < Rake::TestCase
24
24
  end
25
25
 
26
26
  def test_cleanup_ignores_missing_files
27
- file_name = File.join(@tempdir, "missing_directory" "no_such_file")
27
+ file_name = File.join(@tempdir, "missing_directory", "no_such_file")
28
28
 
29
29
  out, _ = capture_io do
30
30
  Rake::Cleaner.cleanup(file_name, :verbose => false)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.3.0
4
+ version: 10.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Hodel
@@ -30,7 +30,7 @@ cert_chain:
30
30
  pfkQPF5Ezsi73pEpFN93Fy21NKCYQH1jCwWeKUF29MIMGd6kE3ZmHW/7fz5GwKIM
31
31
  Ls5SgY48a0l7Hw==
32
32
  -----END CERTIFICATE-----
33
- date: 2014-04-15 00:00:00.000000000 Z
33
+ date: 2014-04-17 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: minitest
metadata.gz.sig CHANGED
Binary file