nigel 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nigel/commands/flood.rb +4 -3
- data/lib/nigel/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: 956767d30f3b769109a9803e99381bcaf36dca8e
|
4
|
+
data.tar.gz: 98cc742fa8f061df29d300916687f330af0493d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 787d2f7382aa47ac78b7fa7788d132a8fccc690aa6efba419b34139adbb50137b23ee12c8e938a92716c366ed2ded21b86dc40d94c1fddd1145e19518cc6772f
|
7
|
+
data.tar.gz: af78b075addb2ebd0d45658baf3a67432573731d48acd7b157bec015160abc4273b03aecbf1a41274ef11049c5ddac9a45ba7012d92c1545262a9ba115ce172a
|
data/lib/nigel/commands/flood.rb
CHANGED
@@ -3,10 +3,11 @@ module Nigel
|
|
3
3
|
class Flood
|
4
4
|
def self.process(options)
|
5
5
|
|
6
|
+
threads = []
|
7
|
+
|
6
8
|
Google::Search::Image.new(
|
7
9
|
query: 'Nigel Thornberry').each_with_index do |image, i|
|
8
10
|
|
9
|
-
threads = []
|
10
11
|
|
11
12
|
if(image.uri.include? '.gif')
|
12
13
|
|
@@ -14,9 +15,9 @@ module Nigel
|
|
14
15
|
|
15
16
|
threads << self.fetch(image.uri, "#{ i }.gif")
|
16
17
|
end
|
17
|
-
|
18
|
-
threads.each(&:join)
|
19
18
|
end
|
19
|
+
|
20
|
+
threads.each(&:join)
|
20
21
|
end
|
21
22
|
|
22
23
|
private
|
data/lib/nigel/version.rb
CHANGED