mobilize-base 1.1.05 → 1.1.06
Sign up to get free protection for your applications and to get access to all the features.
@@ -25,15 +25,8 @@ module GoogleDrive
|
|
25
25
|
attempts +=1
|
26
26
|
else
|
27
27
|
if response.code.ie{|rcode| rcode.starts_with?("4") or rcode.starts_with?("5")}
|
28
|
-
|
29
|
-
|
30
|
-
sleep_time = sleep_time * attempts
|
31
|
-
else
|
32
|
-
sleep_time = (rand*100).to_i
|
33
|
-
end
|
34
|
-
else
|
35
|
-
sleep_time = 10
|
36
|
-
end
|
28
|
+
#wait 10 seconds times number of attempts squared in case of error
|
29
|
+
sleep_time = 10 * (attempts*attempts)
|
37
30
|
attempts += 1
|
38
31
|
puts "Sleeping for #{sleep_time.to_s} due to #{response.body}"
|
39
32
|
sleep sleep_time
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mobilize-base
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.06
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -239,7 +239,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
239
239
|
version: '0'
|
240
240
|
segments:
|
241
241
|
- 0
|
242
|
-
hash: -
|
242
|
+
hash: -2443012398121616343
|
243
243
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
244
244
|
none: false
|
245
245
|
requirements:
|
@@ -248,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
248
248
|
version: '0'
|
249
249
|
segments:
|
250
250
|
- 0
|
251
|
-
hash: -
|
251
|
+
hash: -2443012398121616343
|
252
252
|
requirements: []
|
253
253
|
rubyforge_project: mobilize-base
|
254
254
|
rubygems_version: 1.8.24
|