rake-compile 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rake-compile/target.rb +4 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad1b47296c0fc5ba599bf7c15800d3fd8c10d894
|
4
|
+
data.tar.gz: 97e998cc559855c4fc4eb6049cfd4019abe62543
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a23d0d7795b7333b00131b0bd4d0e6da301401127af8ebbb98793f5d7447b7cabf4ba3499661190ca62ed3e2621a84c8f7b2362db6296c316f4aa875549e416e
|
7
|
+
data.tar.gz: a7bf422ada12ba39609aab37132bc8992d03498049e10a0342620dc85854bde8bc3970e4a2e566f0cc013844b9fa2f034be46c8d58aef144e969295129dbe166
|
data/lib/rake-compile/target.rb
CHANGED
@@ -128,6 +128,9 @@ module RakeCompile
|
|
128
128
|
deps = []
|
129
129
|
if File.exist?(dependency_file)
|
130
130
|
deps = dependencies_from_deps_file(dependency_file)
|
131
|
+
|
132
|
+
# if it came back empty, remove the file
|
133
|
+
FileUtils::rm(dependency_file) if deps.empty?
|
131
134
|
end
|
132
135
|
|
133
136
|
dir = File.dirname(dependency_file)
|
@@ -190,7 +193,7 @@ module RakeCompile
|
|
190
193
|
deps = file.readlines()
|
191
194
|
end
|
192
195
|
|
193
|
-
deps.collect {|x| x.chomp() }
|
196
|
+
deps.collect {|x| x.chomp() }.reject {|x| x.empty? }
|
194
197
|
end
|
195
198
|
end
|
196
199
|
end
|