nesta-plugin-drop 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/nesta-plugin-drop/client.rb +5 -3
- data/lib/nesta-plugin-drop/version.rb +1 -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: e6ed0f5968113b2f0821b48b0fedefb084a2b1f6
|
|
4
|
+
data.tar.gz: a6b51d5dd2fe91c7a52c798edcb50535763dd37b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2db8c1d7878b399fb59e70924837a00f1f866e6a96070eff160720e8f511606545ea46ea365e5324064e57844f39ad178db005d9bd72c7d6ab7eff007fa2d82a
|
|
7
|
+
data.tar.gz: a78a59217af1bc3a56cbe75e0ab63eadc104b33fb49a073768f4ee7ed3af3d866ec6b9be8de4a7bb25caa270f3c412de220a0174dbdedcb95cb9c901bcccf674
|
|
@@ -105,10 +105,12 @@ module Nesta
|
|
|
105
105
|
threads << Thread.new do
|
|
106
106
|
Nesta::Plugin::Drop.logger.debug "NESTADROP: Creating worker thread to cache files..."
|
|
107
107
|
file = nil
|
|
108
|
-
|
|
109
|
-
|
|
108
|
+
while self.uncached_files.size > 0
|
|
109
|
+
lock.synchronize do
|
|
110
|
+
file = self.uncached_files.pop
|
|
111
|
+
end
|
|
112
|
+
cache_file(file) if file
|
|
110
113
|
end
|
|
111
|
-
cache_file(file) if file
|
|
112
114
|
end
|
|
113
115
|
Nesta::Plugin::Drop.logger.debug "NESTADROP: Worker thread complete."
|
|
114
116
|
end
|