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
- if response.body.downcase.index("rate limit") or response.body.downcase.index("captcha")
29
- if sleep_time
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
@@ -1,5 +1,5 @@
1
1
  module Mobilize
2
2
  module Base
3
- VERSION = "1.1.05"
3
+ VERSION = "1.1.06"
4
4
  end
5
5
  end
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.05
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: -938171999002513852
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: -938171999002513852
251
+ hash: -2443012398121616343
252
252
  requirements: []
253
253
  rubyforge_project: mobilize-base
254
254
  rubygems_version: 1.8.24