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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/History.rdoc +8 -0
- data/lib/rake.rb +1 -1
- data/lib/rake/clean.rb +11 -2
- data/test/test_rake_clean.rb +1 -1
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7fb874143d83d469b8c5f9e4fc8ff79f736a89ef
|
4
|
+
data.tar.gz: 0a9bf5d92a94e2183b7887415732521b293c5750
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fde0747e99905b6fb93b4d9fd788cdcf6e751966a9b7cf10ddefcfd109e78dff5d87841194c81cd8cd4b9f069f61386e845130ee338b157ddf378936c40a3326
|
7
|
+
data.tar.gz: 632c9e14454097041663c31d2aa689114c9335add9efe4965d3aad67694247af90c194613ab3f8a07197b171aa96b2a0781e6d282de59c87653067797e2ca951
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/History.rdoc
CHANGED
@@ -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:
|
data/lib/rake.rb
CHANGED
data/lib/rake/clean.rb
CHANGED
@@ -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
|
44
|
-
break if [
|
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
|
|
data/test/test_rake_clean.rb
CHANGED
@@ -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.
|
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-
|
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
|