rbbt-util 5.33.13 → 5.33.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rbbt/resource.rb +7 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2e19fbbde1862e9ee0c4758f0ed4fa4aaa74909454467409c298615b9d6db77
|
4
|
+
data.tar.gz: 4067a1b7bb47bb8f690f7b14a1db8222e46e0c43da4f4ba2497e4c265197d8fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0aa8a4d7ba684aa381bb1ca9492b1b2a788bfec05f85c72e7a508000087db169fe8a7d03de2b356a927a8f15518e21c0c070facf0937a92ee361cdb27a013fa5
|
7
|
+
data.tar.gz: 4adf8ee16df7927701bff0aa342a3efef5c98c6e98ae556d6ebbda8dabba15a627f856fa6ddd3649b067d0c066bb1faa72ae2163c96512bc704d1628731aa58d
|
data/lib/rbbt/resource.rb
CHANGED
@@ -155,6 +155,8 @@ module Resource
|
|
155
155
|
FileUtils.rm_rf final_path if File.exist? final_path
|
156
156
|
return false
|
157
157
|
end
|
158
|
+
|
159
|
+
final_path
|
158
160
|
end
|
159
161
|
|
160
162
|
def produce(path, force = false)
|
@@ -326,11 +328,15 @@ url='#{url}'
|
|
326
328
|
rescue
|
327
329
|
FileUtils.rm_rf final_path if File.exist? final_path
|
328
330
|
raise $!
|
329
|
-
end unless (remote_server && get_from_server(path, final_path))
|
331
|
+
end unless (remote_server && final_path = get_from_server(path, final_path))
|
330
332
|
end
|
331
333
|
end
|
332
334
|
end
|
333
335
|
|
336
|
+
# After producing a file, make sure we recheck all locations, the file
|
337
|
+
# might have appeared with '.gz' extension for instance
|
338
|
+
path.instance_variable_set("@path", {})
|
339
|
+
|
334
340
|
path
|
335
341
|
end
|
336
342
|
|