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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rbbt/resource.rb +7 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 06dd3eb576050f8f635f49f02e4382ce2b65e23194fe3a5d601f2394c36941a0
4
- data.tar.gz: cba8da17adfd6716a7ba870d67779e9a0618662b6d1fafdc9088a8669dc90db7
3
+ metadata.gz: d2e19fbbde1862e9ee0c4758f0ed4fa4aaa74909454467409c298615b9d6db77
4
+ data.tar.gz: 4067a1b7bb47bb8f690f7b14a1db8222e46e0c43da4f4ba2497e4c265197d8fd
5
5
  SHA512:
6
- metadata.gz: 25f4d416e5d10f8e813f510278de8c510861e881027b4bef94125d33ce431f2613c4b535c7c75025eaf2b14c2315d50d3e78bf181c02cdb24ab72f80e3d1906f
7
- data.tar.gz: 9145fc107255622f68ae7e0b761d8f638bfb8dfeb4ef69205b74e3174ce190dd59bf4dcda85e090dc69bafc480dc302819d475b4685f6618975283f54ace870c
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-util
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.33.13
4
+ version: 5.33.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez