index-tanked 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -51,13 +51,13 @@ module IndexTanked
|
|
51
51
|
fields.join(', ')
|
52
52
|
end
|
53
53
|
|
54
|
-
def retry_on_error(options={}
|
54
|
+
def retry_on_error(options={})
|
55
55
|
times = options[:times] || 3
|
56
56
|
delay_multiplier = options[:delay_multiplier] || 0
|
57
57
|
excepts = [options[:except]].compact.flatten
|
58
58
|
count = 0
|
59
59
|
begin
|
60
|
-
|
60
|
+
yield
|
61
61
|
rescue Timeout::Error, StandardError => e
|
62
62
|
if excepts.include?(e.class)
|
63
63
|
raise e
|
data/lib/index-tanked/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: index-tanked
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 6
|
10
|
+
version: 0.1.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Adam Kittelson
|