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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rake-compile/target.rb +4 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0036efaeb212cf1c71a2631abdc54efab53b3ca8
4
- data.tar.gz: d654ceaac62dbd9426f5446bda5e17c1cd3f9c92
3
+ metadata.gz: ad1b47296c0fc5ba599bf7c15800d3fd8c10d894
4
+ data.tar.gz: 97e998cc559855c4fc4eb6049cfd4019abe62543
5
5
  SHA512:
6
- metadata.gz: 67bd80ef8d6ea1256fcd07dd0ef591194294246973b92412f33875a1b678686ded5d9c4a3389631a40a6ce82e32865435e76637aac036c182156bf7663c7846f
7
- data.tar.gz: d86d3446b1d8020a0e84a8c8bdc7769b06a866b932ecda48e035ab3c1e25278753ec06376b9bff3a57e372b8acdf9d86d9b7f0faf6c11894f03c383a9a473201
6
+ metadata.gz: a23d0d7795b7333b00131b0bd4d0e6da301401127af8ebbb98793f5d7447b7cabf4ba3499661190ca62ed3e2621a84c8f7b2362db6296c316f4aa875549e416e
7
+ data.tar.gz: a7bf422ada12ba39609aab37132bc8992d03498049e10a0342620dc85854bde8bc3970e4a2e566f0cc013844b9fa2f034be46c8d58aef144e969295129dbe166
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake-compile
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Massicotte